X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=tcl%2Ftarget%2Fstm32f0x_stlink.cfg;h=a9b200ed4aa9a3b78f20ad5ed2dd4d800c2597de;hb=ba66b4c594e12e4b1dd37168376ded95a8ae4e89;hp=3a007d415270cc8d5ade17c689ec51cd8f9dad00;hpb=b0ef9cf1171c2decd6c12536b8ae61e64f8931b7;p=openocd.git diff --git a/tcl/target/stm32f0x_stlink.cfg b/tcl/target/stm32f0x_stlink.cfg index 3a007d4152..a9b200ed4a 100644 --- a/tcl/target/stm32f0x_stlink.cfg +++ b/tcl/target/stm32f0x_stlink.cfg @@ -1,10 +1,18 @@ # -# STM32f1x stlink pseudo target +# 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]