tcl/target/stm32f4x: fix hardcoded chip name
[fw/openocd] / tcl / target / stm32f4x.cfg
index e94837f83775a64089a1b1ea8d220845206b12fd..2228de72fc917586592903d59e13f0123f7e52c7 100644 (file)
@@ -38,7 +38,7 @@ if { [info exists CPUTAPID] } {
 swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
 
-tpiu create $_CHIPNAME.tpiu -dap stm32f4x.dap -ap-num 0 -baseaddr 0xE0040000
+tpiu create $_CHIPNAME.tpiu -dap $_CHIPNAME.dap -ap-num 0 -baseaddr 0xE0040000
 
 if {[using_jtag]} {
    jtag newtap $_CHIPNAME bs -irlen 5