From: Uwe Bonnes Date: Wed, 11 Nov 2015 11:54:19 +0000 (+0100) Subject: stm32xxx.cfg: Only touch IWDG and WWDG in DBGMCU_APB1_FZ. X-Git-Tag: v0.10.0-rc1~374 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c4b8c74140bc03d376efe919d8b81231dc5a0700;p=openocd stm32xxx.cfg: Only touch IWDG and WWDG in DBGMCU_APB1_FZ. Change-Id: Ie0298c8e73bebeccc9346534d63aab4cae49e4f7 Signed-off-by: Uwe Bonnes Reviewed-on: http://openocd.zylin.com/3104 Tested-by: jenkins Reviewed-by: Andreas Färber Reviewed-by: Freddie Chopin --- diff --git a/tcl/target/stm32f2x.cfg b/tcl/target/stm32f2x.cfg index 0095615d..0e734deb 100644 --- a/tcl/target/stm32f2x.cfg +++ b/tcl/target/stm32f2x.cfg @@ -84,8 +84,8 @@ $_TARGETNAME configure -event examine-end { mmw 0xE0042004 0x00000007 0 # Stop watchdog counters during halt - # DBGMCU_APB1_FZ = DBG_IWDG_STOP | DBG_WWDG_STOP - mww 0xE0042008 0x00001800 + # DBGMCU_APB1_FZ |= DBG_IWDG_STOP | DBG_WWDG_STOP + mmw 0xE0042008 0x00001800 0 } $_TARGETNAME configure -event trace-config { diff --git a/tcl/target/stm32f3x.cfg b/tcl/target/stm32f3x.cfg index ca8e6e1d..f3ea40ba 100644 --- a/tcl/target/stm32f3x.cfg +++ b/tcl/target/stm32f3x.cfg @@ -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 {} { diff --git a/tcl/target/stm32f4x.cfg b/tcl/target/stm32f4x.cfg index 51d76e7e..9aadf627 100644 --- a/tcl/target/stm32f4x.cfg +++ b/tcl/target/stm32f4x.cfg @@ -96,8 +96,8 @@ $_TARGETNAME configure -event examine-end { mmw 0xE0042004 0x00000007 0 # Stop watchdog counters during halt - # DBGMCU_APB1_FZ = DBG_IWDG_STOP | DBG_WWDG_STOP - mww 0xE0042008 0x00001800 + # DBGMCU_APB1_FZ |= DBG_IWDG_STOP | DBG_WWDG_STOP + mmw 0xE0042008 0x00001800 0 } $_TARGETNAME configure -event trace-config { diff --git a/tcl/target/stm32f7x.cfg b/tcl/target/stm32f7x.cfg index 833ef948..16624670 100755 --- a/tcl/target/stm32f7x.cfg +++ b/tcl/target/stm32f7x.cfg @@ -80,8 +80,8 @@ $_TARGETNAME configure -event examine-end { mmw 0xE0042004 0x00000007 0 # Stop watchdog counters during halt - # DBGMCU_APB1_FZ = DBG_IWDG_STOP | DBG_WWDG_STOP - mww 0xE0042008 0x00001800 + # DBGMCU_APB1_FZ |= DBG_IWDG_STOP | DBG_WWDG_STOP + mmw 0xE0042008 0x00001800 0 } $_TARGETNAME configure -event trace-config { diff --git a/tcl/target/stm32l1.cfg b/tcl/target/stm32l1.cfg index 7754c849..790c495b 100644 --- a/tcl/target/stm32l1.cfg +++ b/tcl/target/stm32l1.cfg @@ -114,8 +114,8 @@ $_TARGETNAME configure -event examine-end { mmw 0xE0042004 0x00000007 0 # Stop watchdog counters during halt - # DBGMCU_APB1_FZ = DBG_IWDG_STOP | DBG_WWDG_STOP - mww 0xE0042008 0x00001800 + # DBGMCU_APB1_FZ |= DBG_IWDG_STOP | DBG_WWDG_STOP + mmw 0xE0042008 0x00001800 0 } $_TARGETNAME configure -event trace-config {