Skip to content
Snippets Groups Projects
Commit 319f1b25 authored by Thomas Eichinger's avatar Thomas Eichinger
Browse files

Merge pull request #2343 from thomaseichinger/nucleo-l1_openocd_futureproof

boards/nucleo-l1: check presence of stm32l.cfg
parents f71f8322 4b7cc955
No related branches found
No related tags found
No related merge requests found
......@@ -3,4 +3,16 @@ source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32l.cfg]
# during development of openocd the existing configuration
# for this board's MCU got renamed. This tries to test against
# the different versions.
# See https://github.com/RIOT-OS/RIOT/pull/2343
# Should be obsolete with http://openocd.zylin.com/#/c/2489/
if [catch {find target/stm32l.cfg}] {
source [find target/stm32l1.cfg]
reset_config srst_only
} else {
source [find target/stm32l.cfg]
reset_config srst_only srst_nogate
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment