CAN FD bus off state S32k146

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

CAN FD bus off state S32k146

Jump to solution
372 Views
12914A
Contributor II

Hi,

We need to implement a CAN FD communication with 1Mb/s as bitrate.
Unfortunately it's not working. The data would be written correct in the RAM, but in Canoe there is no message incomming. I've attached the ESR1, the CAN_init and a function to send a message.

Hope you can help me.

 

Sandra

0 Kudos
Reply
1 Solution
227 Views
12914A
Contributor II

Hi Petr,

thx for your reply. We tested the FlexCAN example, but with the same failures.
We detect, that our controller has some issues with the soldering pads.

 

Best regards

Sandra

View solution in original post

0 Kudos
Reply
2 Replies
326 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

seems you are detecting bit errors during transmission which leads to entering bus off state and recovering and so on. A cause of bit error detection can be various, most often inactive CAN transceiver, incorrect bit rate setting, etc. 
It would be great to measure TX/RX and CAN line with scope-analyzer to see real signal as well.

For your code, seems you have wrong setting for CBT register. I can recommend to use below tool which helps you with calculation
https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5xxx-S32Kxx-LPCxxxx-CAN-CAN-FD-bit-timing-cal...

BR, Petr

0 Kudos
Reply
228 Views
12914A
Contributor II

Hi Petr,

thx for your reply. We tested the FlexCAN example, but with the same failures.
We detect, that our controller has some issues with the soldering pads.

 

Best regards

Sandra

0 Kudos
Reply