Full CAN linked mailboxes example

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

Looking into how to use linked mailboxes with Full CAN communication I find that the documentation is not very clear and the answers to the questions on the topic are a bit vague.

Could someone please provide a code example on how to use Full CAN linked mailboxes? It would be awesome if the example could include the following cases:

  • Using the linked mailboxes as a buffer, that is, checking the linked mailboxes from time to time to retrieve messages even if the buffer is not full (not having to wait for an interrupt in the last linked mailbox to retrieve the messages that have arrived). Is there a way to know, be it by interruption or any other method, how many messages have arrived?
  • Using the linked mailboxes as a FIFO buffer. Does this have to be done manually?
0 Likes
1 Solution
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

Hello,

To link mailboxes, you can refer to Controller Area network (CAN) linked mailbox

You could enable the linking checkbox in CAN component configuration window and they are linked as FIFO buffer.

You can check the status of the mailbox using CAN_BUF_SR_REG status register, by polling in firmware.

I hope this helps.

Thanks,
Shanmathi

View solution in original post

0 Likes
1 Reply