diff options
Diffstat (limited to 'tcl/target/stm32f4x_stlink.cfg')
-rw-r--r-- | tcl/target/stm32f4x_stlink.cfg | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tcl/target/stm32f4x_stlink.cfg b/tcl/target/stm32f4x_stlink.cfg index ec5fb9e4..2308c51c 100644 --- a/tcl/target/stm32f4x_stlink.cfg +++ b/tcl/target/stm32f4x_stlink.cfg @@ -2,9 +2,17 @@ # STM32f4x stlink pseudo target # -set CHIPNAME stm32f4x -set CPUTAPID 0x2ba01477 -set WORKAREASIZE 0x10000 +if { [info exists CHIPNAME] == 0 } { + set CHIPNAME stm32f4x +} + +if { [info exists CPUTAPID] == 0 } { + set CPUTAPID 0x2ba01477 +} + +if { [info exists WORKAREASIZE] == 0 } { + set WORKAREASIZE 0x10000 +} source [find target/stm32_stlink.cfg] |