2020-12-01 12:10:43 +01:00
|
|
|
FLASHER ?= mspdebug
|
|
|
|
FLASHFILE ?= $(HEXFILE)
|
2023-05-06 23:26:00 +02:00
|
|
|
MSPDEBUG_PROGRAMMER ?= olimex
|
|
|
|
|
|
|
|
DEBUGSERVER_PORT ?= 2000
|
|
|
|
DEBUGGER := $(RIOTTOOLS)/mspdebug/debug.sh
|
|
|
|
MSPDEBUG_PROTOCOL ?= JTAG
|
|
|
|
MSPDEBUG_TTY ?=
|
|
|
|
|
|
|
|
ifeq (JTAG,$(strip $(MSPDEBUG_PROTOCOL)))
|
|
|
|
FFLAGS += -j
|
|
|
|
endif
|
|
|
|
ifneq (,$(strip $(MSPDEBUG_TTY)))
|
|
|
|
FFLAGS += -d "$(MSPDEBUG_TTY)"
|
|
|
|
endif
|
|
|
|
ifneq (,$(strip $(DEBUG_ADAPTER_ID)))
|
|
|
|
FFLAGS += -s "$(DEBUG_ADAPTER_ID)"
|
|
|
|
endif
|
|
|
|
FFLAGS += $(MSPDEBUG_PROGRAMMER) "prog $(FLASHFILE)"
|
2020-12-01 12:10:43 +01:00
|
|
|
|
2023-05-06 23:26:00 +02:00
|
|
|
DEBUGGER_FLAGS = $(FLASHER) $(MSPDEBUG_PROGRAMMER) $(MSPDEBUG_PROTOCOL) "$(MSPDEBUG_TTY)" "$(DEBUG_ADAPTER_ID)" $(DEBUGSERVER_PORT) $(ELFFILE) $(PREFIX) $(RIOTBASE)
|
|
|
|
DEBUGSERVER := $(RIOTTOOLS)/mspdebug/debug_srv.sh
|
|
|
|
DEBUGSERVER_FLAGS = $(FLASHER) $(MSPDEBUG_PROGRAMMER) $(MSPDEBUG_PROTOCOL) "$(MSPDEBUG_TTY)" "$(DEBUG_ADAPTER_ID)" $(DEBUGSERVER_PORT)
|
2020-12-01 12:10:43 +01:00
|
|
|
|
|
|
|
# setup reset tool
|
|
|
|
RESET ?= mspdebug
|
2023-05-06 23:26:00 +02:00
|
|
|
RESET_FLAGS ?= -j $(MSPDEBUG_PROGRAMMER) reset
|