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.

CCS: AM437x ISDK 2.1.0.1 DCAN example fails

Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

437x  sysbios_ind_sdk_2.1.0.1  dcan example  fail,loop is in SOCDcanMessageRamInit function. I am sure core is sys mode.

void SOCDcanMessageRamInit(uint32_t instance)
{
    uint32_t regVal = HW_RD_REG32(SOC_CONTROL_MODULE_REG + CTRL_DCAN_RAMINIT);
    uint32_t status = 0U;

    switch(instance)
    {
         case 0U:
            regVal |= CTRL_DCAN_RAMINIT_DCAN0_START_MASK;
            status = CTRL_DCAN_RAMINIT_DCAN0_DONE_MASK;
            break;

         case 1U:
            regVal |= CTRL_DCAN_RAMINIT_DCAN1_START_MASK;
            status = CTRL_DCAN_RAMINIT_DCAN1_DONE_MASK;
            break;

         default:
         break;
    }

    HW_WR_REG32((SOC_CONTROL_MODULE_REG + CTRL_DCAN_RAMINIT), regVal);

    while(status !=
         ((status & HW_RD_REG32(SOC_CONTROL_MODULE_REG + CTRL_DCAN_RAMINIT))));
}