CAN FD NACK Error S32k144

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

CAN FD NACK Error S32k144

2,306 Views
marwanibrahim
Contributor II

Hello,

I am using S32k144 evaluation board and i am trying to establish CAN FD communication between it and Canoe environment.

I configured S32k144 with arbitration phase bit rate 500kb/s and data phase bit rate 1Mb/s

When i start canoe, it gives me not acknowledge error:

pastedImage_1.png

So, i want to ask you if NACK error can happen because of clock settings issues in both sides?

S32k144 parameters:

Clock 80Mhz

Arbitration phase params:

  • BR: 500k
  • BR prescaler: 16
  • Prop Seg: 5
  • Seg1: 2
  • Seg2: 2
  • Sjw: 1

Data phase params:

  • BR: 1M
  • BR prescaler: 4
  • Prop Seg: 11
  • Seg1: 4
  • Seg2: 4
  • Sjw: 2
  • Trcv delay compensation offset: 300
  • BRS is enabled

And Canoe settings:

pastedImage_5.png

pastedImage_3.png

pastedImage_4.png

Appreciate your kind support,

Thank you.

2 Replies

2,212 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

be sure FlexCAN operates using the ISO CAN FD protocol so you have CTRL2[ISOCANFDEN] bit set.

Or configure it according the CAN tool setting, but this appears using ISO CAN FD.

For the CAN bit setting configure it to have the same sample point as CAN tool. It is recommended to have same prescaler and TDC is not needed for this rates. You can use e.g.

CANx_CBT = 0x806B29EB;  // bitrate=500kbps, CPI clk=80 MHz; Prescaler= 4, PROPSEG=11, PSEG1=16, PSEG2=12, RJW=12, smp=70%

CANx_FDCBT = 0x003514E5;  // bitrateFD=1000kbps, CPI clk=80 MHz; fPrescaler= 4, fPROPSEG=5, fPSEG1=8, fPSEG2=6, fRJW=6, smp=70% 

BR, Petr

2,212 Views
marwanibrahim
Contributor II

Thank you for your reply, Petr.

Yes, i can confirm that the problem was in ISO CAN FD enable bit, it wasn't set so i was wrongly working on NON ISO CAN FD.

Thank you again. 

0 Kudos
Reply