S32K144 FlexCAN stop to send message once stop at break point when debug

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

S32K144 FlexCAN stop to send message once stop at break point when debug

668 Views
xiaoyuwang
Contributor II

I am using S32K144, peripheral CAN. I met a problem these days. 

Problem Description: For my CAN communication SW, I set several breakpoints in my source code and debug with MicroPE, but I found that once it stops at any break point, my SW will stop to send CAN messages even if SW runs again.

I wonder the root cause and solution for this problem. Looking forward to your answer~~~ Thank you very much!

Labels (1)
0 Kudos
1 Reply

544 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,
Please see Section 53.5.11.1 RM rev.8 Freeze mode.
“This mode is requested either by the CPU through the assertion of the HALT bit in the CAN_MCR Register or when the chip is put into Debug mode. In both cases it is also necessary that the FRZ bit is asserted in the CAN_MCR Register and the module is not in a low-power mode.”

Freeze Enable is enabled by default MCR[FRZ] = 1.
And it will be disabled if you clear that bit.

Regards,
Daniel

0 Kudos