Question:Why s12x cop reset do not work?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Question:Why s12x cop reset do not work?

919件の閲覧回数
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 返答(返信)

637件の閲覧回数
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 件の賞賛
返信

637件の閲覧回数
MikeRC
Contributor III

    ARMCOP = 0x55;
    ARMCOP = 0xAA;

0 件の賞賛
返信