CAN receive frame is missing in s32k1

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

CAN receive frame is missing in s32k1

175 Views
KKumar
Contributor II

Hi Team,

We have observed that sometimes microcontroller is not able to receive external CAN frame.

Suppose I am sending externally CAN ID 0x001 1000 times to the microcontroller, then I am receiving back 996 times. It means a four-time CAN frame is missing.

i have attached project file. 

Thanks in advance

0 Kudos
Reply
1 Reply

136 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

hard to suggest here. Code looks quite normal. Below is some hint for that...
- try to increase CAN interrupt priority. 
- sometimes you clear IFLAG two times in MB reading
- do you see OVERRUN for CODE field read? This may indicate message is received but not read in time.

BR, Petr

0 Kudos
Reply