boards/stm32lx: use openocd dual bank if possible

This commit is contained in:
francisco 2019-03-14 10:16:34 +01:00
parent e3b10e3d7d
commit 026f7dc4a4

View File

@ -1,3 +1,9 @@
# 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] 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