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.

MSPM0G3507: MCAN reset cause MCU reset

Part Number: MSPM0G3507


Tool/software:

Hi,

I was trying to restart the MCAN module when the MCAN is in the Bus_off status.

I followed the example in SLAAET4(Getting Started with the MCAN (CAN FD) Module on MSPM0 MCUs).

Below is my code

 

DL_MCAN_getProtocolStatus(MCAN0_INST, &ProS);
if(Pros.busOffStatus)
{
    DL_MCAN_reset(MCAN0_INST);
    delay_cycles(16);
    DL_MCAN_disablePower(MCAN0_INST);
    delay_cycles(32);
    DL_MCAN_enablePower(MCAN0_INST);
    delay_cycles(4000);
    SYSCFG_DL_MCAN0_init();
}

In the beginning, restarting the MCAN always succeeds and does not cause the MCU to reset. However, after some time (which could be ten minutes or even an hour), the MCU resets.

I try to extend the delay cycles, but it still can not solve the problem.

I am not sure why restarting the MCAN will cause the MCU to reset. Can someone help me?

Best Regards,

Andy