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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

628件の閲覧回数
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 返信

499件の閲覧回数
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 件の賞賛
返信