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
but this line occurs syntex error.