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.

TMS320F2800156-Q1: CAN commutaion

Part Number: TMS320F2800156-Q1


Tool/software:

hi expert

i see in the datasheet as follows:

Messages can be updated or set to "not valid" at any time, even if a requested transmission is still pending. However, the data bytes are discarded if a message is updated before a pending transmission has started

how to discard the pending message?

can you give a methord?

  • Hi Youjun,

    Typically, the message ready/new data flag gets active when CPU detects an updated data, ID or mask value in the message object.  Not sure if user can set a message to be discarded or tag as not valid.  There is bit in the arbitration register CAN_IFxARB called MsgVal.  You can manually clear this to 0 so the mailbox will be disabled.  I think it will have the same effect as discardin the message.

    Regards,

    Joseph