S32K314 CAN issue

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

S32K314 CAN issue

69 Views
KidhRobin
Contributor II

 

I am using S32K314  , and recently I got a issue about CAN when I doing  the test by short-circuiting of the oscillator ;

after recovery  ,I monitored  SPI ,ADC ,these modules works OK, but CAN module can not work normally,

the debuger show these information,  in this status, CAN can not receive or send any fram,

how could this happened, and how to recover this fault by sw?

Snipaste_2026-08-04_13-32-47.jpg

Tags (1)
0 Kudos
Reply
2 Replies

43 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

From the provided screenshot, the receive error counter (RXERRCNT) is increasing while TXERRCNT remains 0, which does not fully match a typical transmit-related issue even though ESR1 indicates a transmission attempt is ongoing.

The oscillator short-circuit could potentially have affected the clocking, resulting e.g. in incorrect CAN bit timing after recovery. However, the current information is not sufficient to confirm this.

Could you please provide:

  • a wider view of the FlexCAN registers (including MCR/CTRL1/CBT/FDCBT, ECR and ESR1),
  • the module and CAN protocol clock configuration after recovery,
  • TX, RX and CAN bus measurements captured during the failure?

If the FlexCAN module clock and the CAN protocol clock are running and have the expected frequency, you can also try performing a FlexCAN module software reset followed by a complete module reinitialization and check whether communication is restored.

BR, Petr

0 Kudos
Reply

13 Views
KidhRobin
Contributor II

Hi, 

Thanks for your  reply .

I try to add some test code in "Mcu_ClockSourceFailure_Notification" , but this notification do not be trigged;

so from software side , how can we notice this issue happened then reset CAN Module?

thanks

Below is the value of the registers you mentioned:

 

MCR

KidhRobin_0-1785975444257.png

CTRL1

KidhRobin_1-1785975470032.png

CBT:

KidhRobin_2-1785975496485.png

FDCBT:

KidhRobin_6-1785975801928.png

ECR

KidhRobin_4-1785975599003.png

ESR1

KidhRobin_5-1785975618985.png

 

 

 

0 Kudos
Reply