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
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