FLEXCAN-TransferReceiveNonBlocking quickly fails sending data in the CAN bus

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

FLEXCAN-TransferReceiveNonBlocking quickly fails sending data in the CAN bus

243 Views
rithic
Contributor I

Hello community,

I am using i.MXRT1176 processor and I am using MATLAB 2021b with NXP MBDT version 1.3 for RT MCU. I am working with the CAN bus in transfer mode. I am having a callback function that works perfectly fine until I send a packet in the CAN using a PCAN. When I send the CAN message the CAN bus freezes and in the CAN bus I see an OVERRUN status. I have attached the code and the image of the PCAN window as well

0 Kudos
Reply
3 Replies

195 Views
mayliu1
NXP Employee
NXP Employee

Hi @rithic ,

Thank you so much for your interest in our products and for using our community.

From your PCAN window, we can see PCAN just send 1 CAN frame data to MIMXRT1176-EVKB board, then MIMXRT1176 project got OVERRUN status.

mayliu1_0-1732522206268.png

1: I suggest you check whether your  flexcan_callback  function responds and processes the received CAN frame data promptly and efficiently. I think it is very important.

2:I also suggest you to check whether there are other tasks or interrupts in your project that are consuming a large of CPU time, It  may prevent the CAN receive interrupt from responding promptly.  Please try to optimize the processing time.

3: I think you can do validation on your side, set MIMXRT1176 project only receive CAN frame data , do not send CAN frame data, then check whether the project still got overrun error. 

 

Wish it helps you.
If you still have question about it, please kindly let me know.

 

Best Regards

mayliu

0 Kudos
Reply

99 Views
rithic
Contributor I

Hi @mayliu1 


Thanks for your message. The Issue I identified was with the timing configured in the BUS. Now its working fine without any issues

0 Kudos
Reply

71 Views
mayliu1
NXP Employee
NXP Employee

Hi @rithic ,

Thanks for your update information.

I'm very happy that your problem is solved.

If you have any new issues, welcome to create new case.

I  will close this case, Thanks for  your interest in the NXP MIMXRT product.

Wish you a nice day!

 

BR

mayliu

0 Kudos
Reply