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:Unexpected CAN Message Output During DL_MCAN_setOpMode()

Part Number: MSPM0G3507


Tool/software:

I am currently implementing Fast/Slow Recovery functionality after a CAN bus off condition. When Bus Off occurs, MCAN_CCCR.INIT is set to 1, and I use the DL_MCAN_setOpMode() function to restore the MCAN to Normal mode.

However, I observed a CAN message transmitted on the bus immediately after calling DL_MCAN_setOpMode().

During the bus off state, I also noticed that the MCAN_TXBRP register indicates a request pending, and this request pending status is cleared after DL_MCAN_setOpMode() finishes executing.

Is it possible that DL_MCAN_setOpMode() automatically sends the CAN message if it detects a pending transmission request?

If so, how can I prevent this behavior from occurring?

Before calling DL_MCAN_setOpMode():

After calling DL_MCAN_setOpMode():