S32K344 CAN Fd stuff error at baud rate 500k/5M bit/s

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

S32K344 CAN Fd stuff error at baud rate 500k/5M bit/s

Jump to solution
2,226 Views
lluo
Contributor III

Hi,

I see the following error when trying to use the CAN fd feature of S32K3X4 EVB - Q257. When I try to set the CAN nominal baud rate to be 500kbit/s and CAN fd baud rate to be  2M bit/s, I can receive and send CAN fd messages from PCAN-View. When I try to  use CAN nominal baud rate to be 500kbit/s and  the CAN fd baud rate to be 5M bit/s, the  "CAN stuff error"  occurs as shown in the screenshot. Is the 5Mbit/s CAN fd baud rate supported by S32K344 or the TJA1153 transceiver? Do you probably know why the CAN communication fails when the CAN fd rate increases to 5M bit/s? Thank you in advance.

Tags (1)
0 Kudos
Reply
1 Solution
2,097 Views
PetrS
NXP TechSupport
NXP TechSupport
Hi,
 
I used below one...
PetrS_0-1704703125223.pngPetrS_1-1704703136517.png

 

and added and set TDC as well..

PetrS_6-1704703035409.png

 

BR,
Petr

View solution in original post

0 Kudos
Reply
7 Replies
2,191 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

below is given in the device App hint document...

PetrS_0-1704194436831.png

So assuming all secure features are disabled, a 5Mbit would be possible, I think, but you should properly set bit timing at both nodes.

BR, Petr

0 Kudos
Reply
2,176 Views
lluo
Contributor III

Hi, @PetrS ,

Thanks a lot for your reply. May I know how to disable all secure features of TJA115x? Is there an example? 

0 Kudos
Reply
2,155 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I reused below one;
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-test...
With modified timing for FlexCAN module, I was able to communicate with 500/5000 kbps bitrate using PCAN.

BR, Petr

0 Kudos
Reply
2,141 Views
lluo
Contributor III

@PetrS ,

May I know your bit timing setting and clock source used? Could you please attach a screeshot? By the way, I tried to send CAN fd(500k/2M) message with BRS(bit rate switch) enabled from PCAN, but kept getting ack error. When I send CAN fd(500k/2M) message without BRS(bit rate switch), it works properly. Do you probably know the reason? Thank you in advance.

Thank you in advance.

0 Kudos
Reply
2,098 Views
PetrS
NXP TechSupport
NXP TechSupport
Hi,
 
I used below one...
PetrS_0-1704703125223.pngPetrS_1-1704703136517.png

 

and added and set TDC as well..

PetrS_6-1704703035409.png

 

BR,
Petr

0 Kudos
Reply
1,662 Views
RBSamuel
Contributor III

Hello Petr!

Are you able to run this configuration with BRS enabled? I tried here and I'm only able to run in loopback mode. When I try in normal mode with another node I can't send any message.

Thank you!!

0 Kudos
Reply
2,091 Views
lluo
Contributor III

Hi @PetrS :

It works with the configuration you provided. Thank you.

0 Kudos
Reply