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

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

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

557 Views
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 Kudos
2 Replies

503 Views
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

503 Views
kun_zeng
Contributor I

Hi,

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

0 Kudos