X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=tcl%2Ftarget%2Fstm32lx_stlink.cfg;h=f9211d23d2338088d5a557585b59e2b222fa2d30;hp=e28818f36b6f71e3d08b661a3f177a8510328e14;hb=8002ed268d5936fbf024b09b60eecae00d058bc4;hpb=ff6c3dd13cf6d2cd25e55638ded3b1683958d752 diff --git a/tcl/target/stm32lx_stlink.cfg b/tcl/target/stm32lx_stlink.cfg index e28818f36b..f9211d23d2 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]