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.

RM57L843: CAN - MsgLst (Message Lost) bit of the IFxMCTL register

Part Number: RM57L843
Other Parts Discussed in Thread: HALCOGEN

Tool/software:

Hello,

The 'canGetData' function created by HALCOGEN verifies the MsgLst (Message Lost) bit of the IF2MCTL register.The description of this bit is as follows: 'The Message Handler stored a new message into this object when NewDat was still set, so the previous message has been overwritten.' The function returns 3 when RX data is stored in the data buffer and a message was lost.

Does the current message is valid despite a previous message being lost?

Best regards,

Marcio

  • Hi Marcio,

    Does the current message is valid despite a previous message being lost?

    Yes, the current message is valid even though the last message was lost.

    That is the reason this bit is checking at the end of copying the new arrived message into data buffer. That means the data in the data buffer is still valid which is new message.

    --
    Thanks & regards,
    Jagadish.