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.
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.
Retrieving data ...