S32K144 FlexCAN Stop to Send Messages

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K144 FlexCAN Stop to Send Messages

1,756 次查看
xiaoyuwang
Contributor II

I am using S32K144 FlexCAN module. I met a problem now:

When I debug my source code, I set several break points. Every time when I start to run the SW after it stopped at a break point, then it will stop to send CAN messages. I want to know the root cause and how to avoid this case.

Thank you very much~~

标签 (1)
标记 (1)
0 项奖励
回复
3 回复数

1,412 次查看
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 项奖励
回复

1,412 次查看
xiaoyuwang
Contributor II

hi Daniel,

I have tried to enable Freeze Mode, it works. 

But I met another problem now: My ECU will receive 24 messages from vehicle and 3 messages for transmission. 2 messages are 20ms period(ID: 0x190, 0x191),the third one is 500ms period(ID: 0x390). Sometimes when I start ECU, message 0x390 cannot be sent, but sometimes it is OK. Do you have any idea about this?

ps: Current BusLoad is 25.9%.

0 项奖励
回复

1,412 次查看
pritampatil
Contributor III

Check for NOSTALL bit. 

make it high.

Hope it helps..

Regards,

Pritam.

0 项奖励
回复