boards/stm32lx: use openocd dual bank if possible
This commit is contained in:
parent
e3b10e3d7d
commit
026f7dc4a4
8
boards/common/stm32/dist/stm32l0.cfg
vendored
8
boards/common/stm32/dist/stm32l0.cfg
vendored
@ -1,3 +1,9 @@
|
|||||||
source [find target/stm32l0.cfg]
|
# Try to use dual bank if available and supported
|
||||||
|
try {
|
||||||
|
source [find target/stm32l0_dual_bank.cfg]
|
||||||
|
} on error {} {
|
||||||
|
puts "WARNING: Your Openocd version does not support dual bank flash on your board. Falling back to single bank flashing."
|
||||||
|
source [find target/stm32l0.cfg]
|
||||||
|
}
|
||||||
reset_config srst_only connect_assert_srst
|
reset_config srst_only connect_assert_srst
|
||||||
$_TARGETNAME configure -rtos auto
|
$_TARGETNAME configure -rtos auto
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user