]> git.sur5r.net Git - openocd/blobdiff - tcl/target/stm32f7x.cfg
cfg: Don't check BS TAP IDCODE in STM32 configs
[openocd] / tcl / target / stm32f7x.cfg
index 833ef9482c98f2d4e30765b94495ca4489d63635..4065e2a07335eb6a232604e2bcd9da760ab80b51 100755 (executable)
@@ -37,17 +37,8 @@ if { [info exists CPUTAPID] } {
 
 swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
-if { [info exists BSTAPID] } {
-   set _BSTAPID $BSTAPID
-} else {
-  # See STM Document RM0385
-  # Section 40.6.1
-  # STM32F75xxG
-  set _BSTAPID1 0x06449071
-}
-
 if {[using_jtag]} {
- swj_newdap $_CHIPNAME bs -irlen 5 -expected-id $_BSTAPID1
+   jtag newtap $_CHIPNAME bs -irlen 5
 }
 
 set _TARGETNAME $_CHIPNAME.cpu
@@ -80,8 +71,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 {