File tree Expand file tree Collapse file tree 4 files changed +31
-3
lines changed Expand file tree Collapse file tree 4 files changed +31
-3
lines changed Original file line number Diff line number Diff line change 28
28
endif
29
29
export FLASHER
30
30
export PORT
31
+ export DIST_PATH = $(RIOTBOARD)/$(BOARD)/dist
32
+ export DEBUGSERVER_PORT = 4242
33
+ export DEBUGSERVER = $(DIST_PATH)/debug_srv.sh
34
+ export DEBUGSERVER_FLAGS = "-g -j usb :$(DEBUGSERVER_PORT)"
35
+ export DEBUGGER_FLAGS = "-x $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE)"
36
+ export DEBUGGER = $(DIST_PATH)/debug.sh $(DEBUGSERVER_FLAGS) $(DIST_PATH) $(DEBUGSERVER_PORT)
37
+
38
+ # PROGRAMMER defaults to stk500v2 which is the internal flasher via USB. Can be
39
+ # overridden for debugging (which requires changes that require to use an ISP)
40
+ export PROGRAMMER ?= stk500v2
41
+
42
+ ifeq ($(PROGRAMMER), stk500v2)
43
+ export PROGRAMMER_FLAGS = -P $(PORT) -b 115200
44
+ endif
31
45
32
46
# define build specific options
33
47
export CPU_USAGE = -mmcu=atmega2560
34
48
export CFLAGS += -ggdb -g3 -std=gnu99 -Os -Wall -Wstrict-prototypes $(CPU_USAGE)
35
49
export ASFLAGS += -ggdb -g3 $(CPU_USAGE) $(FPU_USAGE)
36
50
export LINKFLAGS += -g3 -ggdb -std=gnu99 $(CPU_USAGE) $(FPU_USAGE) -static -lgcc -e reset_handler
37
- # linkerscript specified in cpu/Makefile.include
38
- #export LINKFLAGS += -T$(LINKERSCRIPT)
39
51
export OFLAGS += -j .text -j .data -O ihex
40
- export FFLAGS += -p m2560 -c stk500v2 -P $(PORT) -b 115200 -F -U flash:w:bin/$(BOARD)/$(PROJECT)$(APPLICATION).hex
52
+ export FFLAGS += -p m2560 -c $(PROGRAMMER) $(PROGRAMMER_FLAGS) -F -U flash:w:bin/$(BOARD)/$(PROJECT)$(APPLICATION).hex
41
53
42
54
# export board specific includes to the global includes-listing
43
55
export INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ sleep 2
3
+ setsid -w avarice $1 &
4
+ # sleep 2 && $2/avr-gdb-wrapper -ex "target remote localhost:$3" $4
5
+ sleep 3 && avr-gdb -ex " target remote localhost:$3 " $4
6
+
7
+ # avarice exits with 1 if the connection is released, therefore we always exit with 0
8
+ exit 0
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ sleep 2
4
+ avarice $1
5
+
6
+ # avarice exits with 1 if the connection is released, therefore we always exit with 0
7
+ exit 0
Original file line number Diff line number Diff line change
1
+ set $pc=0x00
You can’t perform that action at this time.
0 commit comments