Ivan Grokhotkov 8e8cb1a139 panic: prevent INT WDT from re-triggering in OCD mode
When INT WDT fires, panicHandler is invoked. In OCD mode, panicHandler
sets a breakpoint on the PC from the exception frame and returns.
However in case of INT WDT, interrupt flag is still set in TIMERG1
peripheral, which causes INT WDT to trigger again. This causes an
endless stream of "Core  0 panic'ed (Interrupt wdt timeout on CPU1)"
messages. OpenOCD also gets terribly confused at this point.

Disable watchdogs when exiting panic handler in OCD mode.
Clear TIMERG1 WDT interrupt flag to prevent re-entry into panic handler.
2018-01-09 01:46:24 +08:00
..
2017-12-01 20:10:26 +08:00
2017-10-18 14:19:19 +08:00
2017-10-18 14:19:19 +08:00
2017-12-08 05:46:34 +03:00
2017-11-27 18:47:40 +08:00
2017-11-02 15:24:21 +08:00
2017-04-11 15:45:54 +08:00
2017-10-18 14:19:16 +08:00
2017-10-18 14:19:18 +08:00
2017-10-18 14:19:18 +08:00
2017-09-13 16:55:30 +08:00
2017-09-13 16:55:30 +08:00