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.

TDA4VM: Some Questions About MCAN Reset

Part Number: TDA4VM

Hi TI Experts,

Customer is working on SDK8.6.

In customer's use case, there is sometimes that they will run out of battery which may cause power off in MCAN. (The TDA4 SOC is still powered on)

The power off in MCAN will cause a busoff. After the battery is getting charged or renewed, they need to recover the MCAN. Hence, there are two questions below may need your help.

1: Is there a suggested way or sequence to recover the MCAN from busoff?

2: In the mcan_reset function in our RTOS SDK, may I know after mcan_reset, if we just use the default parameters would that be okay? Our concern is that we do not know the mcan_reset is actually clear all the registers in MCAN to 0 or it resets parameters to the default values which are the same as the the parameters in the first time mcan open.

Thanks a lot!

Kevin

  • Hello Kevin ,

    Thanks for writing E2E.

    If Bus off happens due to any reason , the CAN bus off status will be reported by SDK. There is no CAN bus off recovery process currently in our SDK and it is left to SW to write down the recovery in the SW.

    For instance In AUTOSAR OS , there is CANSM which will take care of bus off recovery process and then the driver can continue sending the messages once it is recovered from Bus off.

    The  mcan_reset  API is used to initiate reset for MCAN module. This triggers an reset signal to MCAN module , it doesn't clear the registers to Zero.

    Regards

    Tarun Mukesh