Other Parts Discussed in Thread: C2000WARE
Hello,
I am having an issue with CAN inbound mailboxes apparently overwriting other variables when a message is received.
In the reference guide , it is stated that
The message mailboxes are the RAM area where the CAN messages are actually stored after they are
received or before they are transmitted.
The CPU may use the RAM area of the message mailboxes that are not used for storing messages as
normal memory.
1. I was wondering under which conditions the CPU will attempt to use the mailboxes RAM area, especially if a mailbox is opened sometime during the execution of the program.
2. I am also wondering if there is a way to ensure that the mailbox RAM will not be used by the CPU in order to avoid conflicts.
I would be very grateful for any help with these issues.
Thank you.
Edit: we found a bug in a function that processes a particular CAN message, the problem was not due to misconfiguration of the CAN module.