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!
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.
ARMCOP = 0x55;
ARMCOP = 0xAA;