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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

626 次查看
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.

标记 (1)
0 项奖励
回复
1 回复

497 次查看
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 项奖励
回复