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:
parent
741536a82d
commit
8945768c91
@ -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)
|
||||
|
||||
20
boards/iot-lab_M3/dist/debug.sh
vendored
20
boards/iot-lab_M3/dist/debug.sh
vendored
@ -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
3
boards/iot-lab_M3/dist/gdb.conf
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
target remote localhost:3333
|
||||
monitor reset halt
|
||||
load
|
||||
Loading…
x
Reference in New Issue
Block a user