1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/nucleo-l1/dist/openocd.cfg
Thomas Eichinger 4b7cc95529 boards/nucleo-l1: check presence of stm32l.cfg
In current updates OpenOCD split up stm32l.cfg into stm32l1.cfg and
stm32l0.cfg. This provides a check in openocd.cfg for this file so
openocd doesn't fail.
2015-01-26 15:24:25 +01:00

19 lines
528 B
INI

# stml1 Target
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
# 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
}