cfg: allow stm32discovery parameter override
[openocd/jflash.git] / tcl / target / stm32f4x_stlink.cfg
blob2308c51c40aac12253fe510a71ba365c33eb8138
2 # STM32f4x stlink pseudo target
5 if { [info exists CHIPNAME] == 0 } {
6    set CHIPNAME stm32f4x
9 if { [info exists CPUTAPID] == 0 } {
10    set CPUTAPID 0x2ba01477
13 if { [info exists WORKAREASIZE] == 0 } {
14    set WORKAREASIZE 0x10000
17 source [find target/stm32_stlink.cfg]
19 # stm32f4x family uses stm32f2x driver
20 set _FLASHNAME $_CHIPNAME.flash
21 flash bank $_FLASHNAME stm32f2x 0 0 0 0 $_TARGETNAME