stuck in ResetHandler when activating Independant Watchdog
Posted: Thu Mar 14, 2013 4:11 pm
Hi,
When i enable Independant Watchdog via IWDG_Enable(),
if there is watchdog reset because of watchdog timer reaching 0,
reset occurs fine.
but if for some reasons, i fall in _unhandled_exception, the mcu remains stuck in
ResetHandler () at ../../ChibiOS/os/ports/GCC/ARMCMx/crt0.c:267
NRST pin has no more action, and only way to restart mcu is to unplug/plug it.
that does not occurs if IWDG is not activated, in this case, when in _unhandled_exception
if i use NRST pin, ResetHandler is called and it call main and mcu restart without the need
to unplug/plug it.
Is there a way to use Independant Watchdog without this behaviour ?
Alexandre
When i enable Independant Watchdog via IWDG_Enable(),
if there is watchdog reset because of watchdog timer reaching 0,
reset occurs fine.
but if for some reasons, i fall in _unhandled_exception, the mcu remains stuck in
ResetHandler () at ../../ChibiOS/os/ports/GCC/ARMCMx/crt0.c:267
NRST pin has no more action, and only way to restart mcu is to unplug/plug it.
that does not occurs if IWDG is not activated, in this case, when in _unhandled_exception
if i use NRST pin, ResetHandler is called and it call main and mcu restart without the need
to unplug/plug it.
Is there a way to use Independant Watchdog without this behaviour ?
Alexandre