diff options
Diffstat (limited to 'tcl/target/stm32f1x_stlink.cfg')
-rw-r--r-- | tcl/target/stm32f1x_stlink.cfg | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tcl/target/stm32f1x_stlink.cfg b/tcl/target/stm32f1x_stlink.cfg index 67dfb7bc..9faaf6a0 100644 --- a/tcl/target/stm32f1x_stlink.cfg +++ b/tcl/target/stm32f1x_stlink.cfg @@ -2,9 +2,17 @@ # STM32f1x stlink pseudo target # -set CHIPNAME stm32f1x -set CPUTAPID 0x1ba01477 -set WORKAREASIZE 0x4000 +if { [info exists CHIPNAME] == 0 } { + set CHIPNAME stm32f1x +} + +if { [info exists CPUTAPID] == 0 } { + set CPUTAPID 0x1ba01477 +} + +if { [info exists WORKAREASIZE] == 0 } { + set WORKAREASIZE 0x4000 +} source [find target/stm32_stlink.cfg] |