Buffering CAN RX Messages - Missing Messages When TX Flow Control(s32k142)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Buffering CAN RX Messages - Missing Messages When TX Flow Control(s32k142)

588 Views
ganeshvaka2
Contributor II

Hello NXP Community,
I am working on CAN Based Bootloader. The issue I run into is when I'm trying to handle multi-frame responses. When I receive the first frame 0x10 I send the flow control message 0x30 0x00 0x00, the issue though is the vehicle will then transmit the rest of the frames, but I only receive the send frame 0x22, I'm missing the first frame after the flow control message 0x21. Why? I even place break points in the RX to break upon receiving an 0x21 or 0x22 message and it never breaks on a 0x21 message. I'm missing data right after I transmit the flow message.

Any ideas as to solve this issue of missing messages?

ganeshvaka2_0-1630761230499.png

Thanks &Regards ,
Ganesh Babu Vaka

0 Kudos
1 Reply

568 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

how do you config MBs for reception and read those RX MBs? Are you sure you always read MB in time and have free MB so message can be moved to it?
Could a RXFIFO usage improve this?

BR, Petr

0 Kudos