X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=tcl%2Ftarget%2Fstm32f0x_stlink.cfg;h=a9b200ed4aa9a3b78f20ad5ed2dd4d800c2597de;hb=ba66b4c594e12e4b1dd37168376ded95a8ae4e89;hp=56da7ca6cbc4863aeddcafd19d06982b688af710;hpb=445770c0817bfc9e104203e0ee8a47ccc1394e04;p=openocd.git diff --git a/tcl/target/stm32f0x_stlink.cfg b/tcl/target/stm32f0x_stlink.cfg index 56da7ca6cb..a9b200ed4a 100644 --- a/tcl/target/stm32f0x_stlink.cfg +++ b/tcl/target/stm32f0x_stlink.cfg @@ -2,9 +2,17 @@ # STM32f0x stlink pseudo target # -set CHIPNAME stm32f0x -set CPUTAPID 0x0BB11477 -set WORKAREASIZE 0x400 +if { [info exists CHIPNAME] == 0 } { + set CHIPNAME stm32f0x +} + +if { [info exists CPUTAPID] == 0 } { + set CPUTAPID 0x0bb11477 +} + +if { [info exists WORKAREASIZE] == 0 } { + set WORKAREASIZE 0x1000 +} source [find target/stm32_stlink.cfg]