The MPC5741 chip's Flexcan module's MCR register's IRMQ was not written successfully

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

The MPC5741 chip's Flexcan module's MCR register's IRMQ was not written successfully

565 次查看
kun_zeng
Contributor I

According to the UM,This bit can be written only in Freeze mode。But I'm already in freeze mode,It's no use writing 1,The register value was found to be 0 when debugging with lauterbach,Before that,FRZ bir is 1, FRZACK bit is 1, and HALT bit is 0。Even if I don't set HALT to 0,When I've set up the MAXMB bit, HALT automatically goes to 0。

     Could you tell me the reason why I failed to write IRMQ?

0 项奖励
2 回复数

511 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the code is wrong, clearing HALT bit should be last instruction during initialization.

Anyway you should be able to set IMRQ using debugger in debug mode or not?

BR, Petr

511 次查看
kun_zeng
Contributor I

Hi,

  Petr, Thank you very much! You are right,clearing HALT bit should be last instruction during initialization.

0 项奖励