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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,288件の閲覧回数
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!

ラベル(1)
0 件の賞賛
返信
1 返信

1,164件の閲覧回数
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 件の賞賛
返信