Missing CAN messages during transmission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI,
In my application program, I am transmitting many CAN messages in different timings. I have 1ms, 10ms, 100ms and 1000ms timers. In each timing I am transmitting 5-6 CAN messages with different CAN Ids.
But while testing, I could see some messages are missing some times. For example, 100ms messages stops for 1-2 sec (Not all messages in 100ms, only 1 or 2 stops) and then it is starting again.
How can I resolve this issue? how to implement FIFO registers to solve this?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mansoor,
Are you using the same MB for sending all the CAN messages, our S32K chip has 16 or 32 MBs for each CAN instance. You can config more MBs for TX. CPU sending data to the MB is much faster than data sent from MB to the CAN bus.
Below is a reference code for using 10 MBs(MB0~MB9) for TX.
CAN_Send(&can_pal1_instance,CAN1_TxMB++%10, &sentMsg);
FIFO in our chip is used for RX only.
Best wishes.
Jeremy
