AnsweredAssumed Answered

Why target reset failed using COP reset on S12XHY128

Question asked by Kim Chan on Nov 13, 2017
Latest reply on Nov 16, 2017 by Kim Chan

I referred some questions and use COP reset to do my reset for bootloader like:

S12Z SW example of COP Watchdog Reset 

Causing an S12 Reset 

 

I just wrote like this:

COPCTL = 0x41U;
/* Create COP reset */
ARMCOP = 0x00U;

 

 

I also tried like this:

//in board.c

COPCTL = 0x41U;

while(1);

 

//in .prm

/* use these definitions in plane of the vector table ('vectors') above */
VECTOR 0 _Startup /* reset vector: this is the default entry point for a C/C++ application. */
VECTOR 1 _Startup
VECTOR 2 _Startup

 

 

But it always shows "target reset failed" 

And it didn't enter cop interrupt neither.

So any idea why it failed?

Thank you very much.

 

Kim

Outcomes