AnsweredAssumed Answered

SIM_COPC on KL16Z128

Question asked by Adrian Huerta on Jun 8, 2017
Latest reply on Jun 9, 2017 by Robin_Shen

Hello.
Why i cant change the value on the sim copc?.
I know this register is one write every reset. i try to modified this value in __init__ hardware and this value doesn't change.

 

void __init_hardware()
{
SCB_VTOR = (uint32_t)__vector_table; /* Set the interrupt vector table position */

// Disable the Watchdog because it may reset the core before entering main().
//SIM_COPC = KINETIS_WDOG_DISABLED_CTRL;
SIM_COPC = 0x0C;
}

Outcomes