kl25: the watchdog example "cop" doesn't reset cpu

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

kl25: the watchdog example "cop" doesn't reset cpu

518 Views
tuomasaaltio
Contributor II

Is this "cop" example supposed to work with emulator connected?

The code doesn't reset cpu.

I also tried writing wrong value to SRVCOP (SIM->SRVCOP = 0; ) which should cause reset but it doesn't.

Tags (1)
0 Kudos
1 Reply

389 Views
bobpaddock
Senior Contributor III

What platform are you running (IAR/GCC/ARM)?

In some of the start up files the COP disabled early on so that it does not fire while the startup code runs.
As the COP control register is a Write-Once-After-Reset that means the COP can not be used unless the startup code that disables it is found and changed.

0 Kudos