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