boards/atmega256rfr2-xpro: configure debug
This commit is contained in:
parent
1a16ee8215
commit
f24a3802c7
@ -9,6 +9,8 @@ PROGRAMMER ?= xplainedpro
|
||||
|
||||
# This board can be reset via avrdude
|
||||
RESET ?= avrdude -c $(PROGRAMMER) -p m256rfr2
|
||||
# Use edbg interface for debugging
|
||||
DEBUGSERVER_INTERFACE ?= --edbg
|
||||
|
||||
include $(RIOTMAKE)/tools/avrdude.inc.mk
|
||||
include $(RIOTBOARD)/common/atmega/Makefile.include
|
||||
|
||||
11
boards/atmega256rfr2-xpro/dist/debug.sh
vendored
Executable file
11
boards/atmega256rfr2-xpro/dist/debug.sh
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# The setsid command is needed so that Ctrl+C in GDB doesn't kill avarice
|
||||
: ${SETSID:=setsid}
|
||||
|
||||
sleep 2
|
||||
${SETSID} -w avarice $1 &
|
||||
sleep 3 && avr-gdb -ex "target remote localhost:$3" $4
|
||||
|
||||
# avarice exits with 1 if the connection is released, therefore we always exit with 0
|
||||
exit 0
|
||||
7
boards/atmega256rfr2-xpro/dist/debug_srv.sh
vendored
Executable file
7
boards/atmega256rfr2-xpro/dist/debug_srv.sh
vendored
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sleep 2
|
||||
avarice $1
|
||||
|
||||
# avarice exits with 1 if the connection is released, therefore we always exit with 0
|
||||
exit 0
|
||||
1
boards/atmega256rfr2-xpro/dist/gdb.conf
vendored
Normal file
1
boards/atmega256rfr2-xpro/dist/gdb.conf
vendored
Normal file
@ -0,0 +1 @@
|
||||
set $pc=0x00
|
||||
Loading…
x
Reference in New Issue
Block a user