This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA3XEVM: dcan1 interruption of tda3x evaluation board

Part Number: TDA3XEVM

software is PROCESSOR_SDK_RADAR_03_06_00_00,I want to read data from outside by the DCan1. Reference sample code,

PlatformDcanClkConfig(0);

HW_WR_REG32(DRM_SUSPEND_CTRL_DCAN1, ((DRM_SUSPEND_SRC_IPU1_C0 << 4) | 0x1));

DCANAppInitCfgParams(&appDcanCfgPrms);

DCANAppInitTxParams(&appDcanTxCfgPrms, &appDcanTxPrms, dataLength, dataBuffer, msgIdType, msgIdentifier);

DCANAppInitRxParams(&appDcanRxCfgPrms, expectedMsgIdType, expectedMsgIdentifier);

PlatformDCAN1PrcmEnable();

PlatformDCAN1RXSetPinMux();

PlatformDcanMessageRamInit(0);

PlatformDCAN1SetPinMux();

DCANAppConfigIntr();

retVal = DCANReset(DCAN_APP_INST, timeOut);

static void DCANAppConfigIntr()
{

IRQXBARConnect(SOC_IRQ_DMARQ_CROSSBAR_REGISTERS_BASE, CPU_IPU1, XBAR_INST_IPU1_IRQ_28, DCAN1_IRQ_INT0);

Intc_Init();

Intc_IntEnable(0);

Intc_IntRegister(gIntrNum, (IntrFuncPtr) DCANAppTxIntIsr, (void *) 0);
Intc_IntRegister(gIntrNum, (IntrFuncPtr) DCANAppRxIntIsr, (void *) 0);

Intc_IntPrioritySet(gIntrNum, 1, 0);
Intc_SystemEnable(gIntrNum);
}

In the function Intc_Init(), When setting registers HW_WR_REG32 (SOC_IPU1_C0_INTC_BASE+IPU_M4_NVIC_VECTOR_TABLE_OFFSET, vTableOffset), the system stops running and the initialization of dcan1 fails.

Anyone can tell me how to solve it. thanks.

  • software is PROCESSOR_SDK_RADAR_03_06_00_00;

    hardware is tda3x/dra78/dm50x evm;

    If I read and write data from outside through dcan1, what should I do? Can anybody help me, thank you.

  • Hi,

    You are running this example on IPU1_0, right? While stepping through 'Intc_Init()' function, please step through the assembly code for 'HW_WR_REG32 ()' API and make sure that values passed down to this function are proper(there are two parameters for this function). Can you please try to access this address(1st parameter) through memory browser in CCS and see what happens? See if it is accessible.

    Thanks & Regards,
    Vivek Dhande.

    Texas Instruments (India) Pvt Ltd

  • Hi, Dhande, Thanks

          We use the IPU1_0 core,My program is on the SD card.The code here is the original code provided by TI, and we haven't changed it. Why is the write operation of this register unsuccessful?

  • Hi,

    Can you please try stepping through 'Intc_Init()' function, please step through the assembly code for 'HW_WR_REG32 ()' API and make sure that values passed down to this function are proper(there are two parameters for this function). Can you please try to access this address(1st parameter) through memory browser in CCS and see what happens? See if it is accessible.

    Thanks & Regards,
    Vivek Dhande.

    Texas Instruments (India) Pvt Ltd

  • Hi,

        I haven't heard back from you, I'm assuming you were able to resolve your issue.
    If not, just post a reply below (or create a new thread if the thread has locked due to time-out).

    Thanks & Regards,
    Vivek Dhande.

    Texas Instruments (India) Pvt Ltd