1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

boards/nucleo-l1: use upstream openocd configuration

Configuration for the ST Nucleo L152RE board was merged into
OpenOCD upstream. This commit changes scripts for flashing,
debugging and reseting to use this and removes RIOT's configuration
file.
This commit is contained in:
Thomas Eichinger 2015-01-27 15:15:17 +01:00
parent 319f1b25ae
commit 7f05dc2725
4 changed files with 9 additions and 21 deletions

View File

@ -4,7 +4,9 @@ echo "##"
echo "## Starting debug server"
echo "##"
openocd -f "${RIOTBOARD}/${BOARD}/dist/openocd.cfg" \
# Needs OpenOCD version 0.9.0 built after Jan. 26th 2015
openocd -f "board/st_nucleo_l1.cfg" \
-c "init" \
-c "targets" \
-c "reset halt"

View File

@ -4,7 +4,9 @@ echo "##"
echo "## Flashing $1"
echo "##"
openocd -f "${RIOTBOARD}/${BOARD}/dist/openocd.cfg" \
# Needs OpenOCD version 0.9.0 built after Jan. 26th 2015
openocd -f "board/st_nucleo_l1.cfg" \
-c "init" \
-c "targets" \
-c "reset halt" \

View File

@ -1,18 +0,0 @@
# 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
}

View File

@ -4,7 +4,9 @@ echo "##"
echo "## Resetting $1"
echo "##"
openocd -f "${RIOTBOARD}/${BOARD}/dist/openocd.cfg" \
# Needs OpenOCD version 0.9.0 built after Jan. 26th 2015
openocd -f "board/st_nucleo_l1.cfg" \
-c "init" \
-c "reset run"\
-c "shutdown"