1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 23:11:19 +01:00

iot-lab_M3: extend debug target for iot-lab_M3

This commit is contained in:
Thomas Eichinger 2014-09-02 10:33:04 +02:00
parent 741536a82d
commit 8945768c91
3 changed files with 18 additions and 7 deletions

View File

@ -29,7 +29,7 @@ export LINKFLAGS += -ggdb -g3 -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -mlittle-endi
export LINKFLAGS += -T$(LINKERSCRIPT)
export OFLAGS = -O ihex
export FFLAGS = $(HEXFILE)
export DEBUGGER_FLAGS = $(ELFFILE)
export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE)
# use the nano-specs of the NewLib when available
ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)

View File

@ -9,9 +9,17 @@ fi
BIN_FOLDER=$(dirname "${FILE}")
openocd -f "${BIN_FOLDER}/${BOARD}_jtag.cfg" \
-f "target/stm32f1x.cfg" \
-c "tcl_port 6333" \
-c "telnet_port 4444" \
-c "init" \
-c "targets" \
-c "reset halt"
-f "target/stm32f1x.cfg" \
-c "tcl_port 6333" \
-c "telnet_port 4444" \
-c "init" \
-c "targets" \
-c "reset halt" \
-l /dev/null &
# needed for openocd to set up
sleep 5
arm-none-eabi-gdb -tui --command=${1} ${2}
killall openocd

3
boards/iot-lab_M3/dist/gdb.conf vendored Normal file
View File

@ -0,0 +1,3 @@
target remote localhost:3333
monitor reset halt
load