Question:Why s12x cop reset do not work?

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

Question:Why s12x cop reset do not work?

712 Views
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!

Labels (1)
0 Kudos
2 Replies

430 Views
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 Kudos

430 Views
MikeRC
Contributor III

    ARMCOP = 0x55;
    ARMCOP = 0xAA;

0 Kudos