S32K148 Soft Reset of CAN module

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

S32K148 Soft Reset of CAN module

1,309 次查看
DenisK
Contributor II

Hi all,

i am having the following issue:

While the CAN is active the physical connection is interrupted (TX and RX wiring). In that case i can see that fields ESR1(TXWRN) = 1b and ESR1(FLTCONF) = 1b are set. Reading that register is done by the "Read_Register" Block out of Simulink.

When TX and RX wires are connected aggain, the mentioned fields are still set and there are none CAN messages sendet by the controller.

I am trying to do an soft reset (set field MCR(SOFTRST) = 1b) of the CAN controller to delete the mentioned fields. Writing that register is done by "Write_Register" Block out of Simulink.

But somehow setting of MCR(SOFTRST) = 1b doesn't have any affect. The fields are still set and transmit of CAN messages is not working (receiving CAN messages seems to working).

Do anybody have an idea or any other solution to bring the CAN in normal mode aggain?

BR

Denis

 

 

 

0 项奖励
回复
1 回复

1,280 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @DenisK ,

The reported behavior looks to be similar to the one presented in this thread. https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Reset-CAN-Bus-Silence/m-p/1190321#M5426

Can you please give a try to this solution?

Hope this helps,

Marius

0 项奖励
回复