stm32xxx.cfg: Only touch IWDG and WWDG in DBGMCU_APB1_FZ.
[fw/openocd] / tcl / target / stm32f3x.cfg
index ca8e6e1d8cb9db92998c15539719d7d694e5bfc5..f3ea40bad029abe5eb708a5a7695e76ea70bce9e 100644 (file)
@@ -99,7 +99,7 @@ proc stm32f3x_default_examine_end {} {
        mmw 0xe0042004 0x00000007 0 ;# DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP
 
        # Stop watchdog counters during halt
-       mww 0xe0042008 0x00001800 ;# DBGMCU_APB1_FZ = DBG_IWDG_STOP | DBG_WWDG_STOP
+       mmw 0xe0042008 0x00001800 0 ;# DBGMCU_APB1_FZ |= DBG_IWDG_STOP | DBG_WWDG_STOP
 }
 
 proc stm32f3x_default_reset_init {} {