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.

CANRMP quick question

Hello everyone

I am trying to receive data via can from CANalyzer.

Is CANRMP has to cleared after each mailbox received?

 

 ECanaRegs.CANRMP.all |= 0xFFFFFFFF;

and also does it has to be in shadow?

Thanks

  • Yes, the CANRMP-bit of the mailbox must be cleared after the message has been copied from the mailbox. Otherwise the mailbox cannot receive a next message (assuming the OPC feature is used).  The clear command can be executed directly into the original register, no shadow is needed.

     

  • Hi Frank,

    Frank Bormann said:
    The clear command can be executed directly into the original register, no shadow is needed.

    Do you have a reference for this statement? (According to section 1.3.3 of spru074e.pdf CANRMP belongs to the group of Control and Status Registers.)

    Regards, Johannes