Hey all,
Could someone clarify the recommended behavior when it comes to the ECan module and the order of reading the mailbox contents and clearing the associated RMP bit? In SPRUH18D, pg. 1097, "16.11.4, receiving a message" the recommended method of reading a message is to first clear the RMP bit, read the message contents, and then verify the RMP bit hasn't been set again (which would signify a partially corrupted read, with some bytes from the initial frame and some from a frame that had just been received).
Though the described method may be useful if it's critical not to miss new messages, in my application I'm buffering messages with the OPC functionality over several mailboxes and I *really* don't want to risk corrupting occasional messages by clearing the RMP bit first, which leads to my question;
Is it safe to read the mailbox contents before clearing the associated RMP bit?
Thanks!