144
7.7.5.3 Hardware watchdog
The hardware watchdog of a STM32 device can be enabled by programming the
option bytes. If the hardware watchdog is enabled the device is reset periodically if
the watchdog timer is not refreshed and reaches 0. If the hardware watchdog is
enabled by an application which is located in flash and which does not refresh the
watchdog timer, the device can not be debugged anymore.
Disabling the hardware watchdog
In order to disable the hardware watchdog the option bytes have to be re-pro-
grammed. SEGGER offers a free command line tool which reprograms the option
bytes in order to disable the hardware watchdog. For more information about the
STM32 commander, please refer to J-Link STM32 Commander (Command line tool)
on page 60.
Note:
In order to re-program the option bytes they have to be erased first. Eras-
ing the option bytes will read-protect the flash of the STM32. The STM32 commander
will also override the read-protection of the STM32 device after disabling the watch-
dog. Please also note that unsecuring a read-protected device will cause a mass
erase of the flash memory.
J-Link / J-Trace (UM08001)
CHAPTER 7
© 2004-2009 SEGGER Microcontroller GmbH & Co. KG
Device specifics
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers