AnsweredAssumed Answered

How to enable COP reset for MC9S12ZVM?

Question asked by Young-kyun Park on Oct 16, 2014
Latest reply on Oct 20, 2014 by iggi

How can I enable COP for MC9S12ZVM? or How can I jump to reset vector address when I need It?

 

Here is my configuration for COPCTL ;

 

CPMUCLKS_COPOSCSEL0 = 0;

  CPMUCLKS_COPOSCSEL1 = 1;

  CPMUCLKS_CSAD = 1;

  CPMUCOP_WRTMASK = 0;

  CPMUCOP_CR = 0x01;

  CPMUCOP_WCOP = 0;

  CPMUCOP_RSBCK = 1;

 

but, MCU working without reset.

 

regarding calling reset vector,

someone reply about jump to reset vector as follow

((void (*__near)(void))0xFFFE)();

but this line occurs syntex error.

Outcomes