tcl/target/stm32f4x: add F401 and F411 IDs
[fw/openocd] / tcl / target / stm32f4x.cfg
index 7e593e626194c41b9f239642010f280dd25f04e6..ecd39de77ca5e82070364738007d4c26b7fb75bb 100644 (file)
@@ -49,11 +49,20 @@ if { [info exists BSTAPID] } {
   set _BSTAPID1 0x06413041
   # STM32F42xxx and STM32F43xxx
   set _BSTAPID2 0x06419041
+  # See STM Document RM0368 (Rev. 3)
+  # STM32F401B/C
+  set _BSTAPID3 0x06423041
+  # STM32F401D/E
+  set _BSTAPID4 0x06433041
+  # See STM Document RM0383 (Rev 2)
+  # STM32F411
+  set _BSTAPID5 0x06431041
 }
 
 if {[using_jtag]} {
  swj_newdap $_CHIPNAME bs -irlen 5 -expected-id $_BSTAPID1 \
-       -expected-id $_BSTAPID2
+     -expected-id $_BSTAPID2 -expected-id $_BSTAPID3 \
+     -expected-id $_BSTAPID4 -expected-id $_BSTAPID5
 }
 
 set _TARGETNAME $_CHIPNAME.cpu