]> git.sur5r.net Git - openocd/commitdiff
stm32xxx.cfg: Only touch IWDG and WWDG in DBGMCU_APB1_FZ.
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Wed, 11 Nov 2015 11:54:19 +0000 (12:54 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Thu, 12 Nov 2015 15:03:40 +0000 (15:03 +0000)
Change-Id: Ie0298c8e73bebeccc9346534d63aab4cae49e4f7
Signed-off-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Reviewed-on: http://openocd.zylin.com/3104
Tested-by: jenkins
Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
tcl/target/stm32f2x.cfg
tcl/target/stm32f3x.cfg
tcl/target/stm32f4x.cfg
tcl/target/stm32f7x.cfg
tcl/target/stm32l1.cfg

index 0095615d004362ca5a16d3ad04a9b351bb1e8650..0e734debbf153008d5994f2b214bfdf6d16aaece 100644 (file)
@@ -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 {
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 {} {
index 51d76e7e5be6382e7bfc6aefa59d3ec984c21141..9aadf627ac0ed234fb2943a39e1ddf7d7b702628 100644 (file)
@@ -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 {
index 833ef9482c98f2d4e30765b94495ca4489d63635..16624670116e69e467314f0a321e23fd0cc9b6fa 100755 (executable)
@@ -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 {
index 7754c84939e4b898aa9b54fa8508b0a7686ab980..790c495b3585ec368063daafe5e1bd251a809d0a 100644 (file)
@@ -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 {