FlexCAN receive issue

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

FlexCAN receive issue

708 Views
dsytj88
Contributor II

Hi

I use FIFO+DMA to receive CAN data,each CAN receive about 60 messages. The configutation for CAN and DMA is in attached file.

During testing,I see a lot of data is missing,as you can see the picture,the red curve the stand signal which will be received,the blue one is the data transmitted out,we can see a lot of data is missing. this could cause message timeout issue and the controller can't work normally,especially in the vehicle.

by the way,the 8 CAN channels working together,is there any method to meausure the chip load?

thank you for your reply.

CAN receive data missing.png

DMA con.pngFlexCAN_con.pngNo source.png

0 Kudos
Reply
1 Reply

671 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

 

to measure CPU load you should use some internal timer, start /stop it in your code and do necessary calculation.

If using the FreeRTOS you can use its statistic; see more e.g. in https://community.nxp.com/t5/S32-Design-Studio/How-to-view-the-heap-and-stack-informations-use-s32ds

 

BR, Petr

0 Kudos
Reply