Question:Why s12x cop reset do not work?

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

Question:Why s12x cop reset do not work?

722 次查看
FAW
Contributor I

Hi, I have a problem with s12x ep100 reset.

 

I use cop reset like below:

 

    COPCTL = 0x01;    

    ARMCOP = 0x00;

 

In s12x special mode ,the reset can work.

 

but in s12x normal mode, the reset can not work.

 

It's very strange.

 

Who can tell me the answers?

 

Thank you very much!

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

440 次查看
kef
Specialist I

FAW,

 

You must be writing COPCTL two or more times in your code. COPCTL CRx bits are write once in normal modes. After reset only one write is allowed in normal modes, all further writes are ignored.

0 项奖励

440 次查看
MikeRC
Contributor III

    ARMCOP = 0x55;
    ARMCOP = 0xAA;

0 项奖励