8002ed268d
This enable the user or board config to override the parameters passed to stm32_stlink.cfg. Required to fix a incorrect working area bug with the stm32vldiscovery. Change-Id: I40a4f7913ff37d577d44b1f23befccf0317080a1 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/597 Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
21 lines
361 B
INI
21 lines
361 B
INI
#
|
|
# STM32lx stlink pseudo target
|
|
#
|
|
|
|
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]
|
|
|
|
set _FLASHNAME $_CHIPNAME.flash
|
|
flash bank $_FLASHNAME stm32lx 0 0 0 0 $_TARGETNAME
|