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:
parent
319f1b25ae
commit
7f05dc2725
4
boards/nucleo-l1/dist/debug-server.sh
vendored
4
boards/nucleo-l1/dist/debug-server.sh
vendored
@ -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"
|
||||
|
||||
4
boards/nucleo-l1/dist/flash.sh
vendored
4
boards/nucleo-l1/dist/flash.sh
vendored
@ -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" \
|
||||
|
||||
18
boards/nucleo-l1/dist/openocd.cfg
vendored
18
boards/nucleo-l1/dist/openocd.cfg
vendored
@ -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
|
||||
}
|
||||
4
boards/nucleo-l1/dist/reset.sh
vendored
4
boards/nucleo-l1/dist/reset.sh
vendored
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user