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.

F29P329SM-Q1: f29 MCAN MCAL bus off recovery method

Part Number: F29P329SM-Q1

Hi team,

I ask this for my customer.

My customer is developing the f29 based on mcal(F29H85xMCAL-01.04.01.02

Now customer is debugging recovery process when the CAN in BusOff stage. They find if device enter the BusOff stage, even the hardware clear the Tx pending stage, the software isn’t clear the txPendingStatus because it isn’t generate the TCF ISR.

So they want to check if we can set the MCAN_TXBCIE to enable the TCF interrupt, then they can clear the txPendingStatus in the ISR.

Could you help to check if it can enable the MCAN_TXBCIE? If can’t, do we have the recommended operation to recovery from the BusOff stage?

BRs

Shuqing

  • Hi Shuqing, 

    This is a bug. I have raised a ticket internally. The fix will be part of the next release. 

    Meanwhile, as a temporary work around [separate work arounds, not sequential]: 

    • Use polling mode for transmission.
    • Try generating any other interrupt on Line 0 e.g. TC (by transmitting using any other buffer that is available for transmission).
    • In Can_SetupTxMailboxPriv function, similar to that of MCAN_TXBTIE, enable MCAN_TXBCIE bits for all used transmit buffers.
    • Configure mixed mode, continue to keep all HTH as interrupt and Schedule a Can_MainFunction_Write() after bus off recovery.

    Regards, 
    Pranav Siddappa

  • Hi Pranav,

    thanks for your confirm.

    Is it fixed in next version MCAL? 26.0 still not fix it?

    Can_SetupTxMailboxPriv function, similar to that of MCAN_TXBTIE, enable MCAN_TXBCIE bits

    do you means customer can write a function themselves and in the function to enable the MCAN_TXBCIE using MCAL_LIB_REG_WRITE32? 

    BRs

    Shuqing

  • Hi Shuqing, 

    do you means customer can write a function themselves and in the function to enable the MCAN_TXBCIE using MCAL_LIB_REG_WRITE32? 

    -> Yes customers can write a function themselves.

    Is it fixed in next version MCAL? 26.0 still not fix it?

    -> The bug is in 26.00.00 as well. It will be fixed in the upcoming release. 

    Regards, 
    Pranav Siddappa