2020-12-01 12:10:43 +01:00
|
|
|
MSPDEBUGFLAGS += -j $(MSPDEBUG_PROGRAMMER)
|
|
|
|
ifeq ($(strip $(MSPDEBUG_PROGRAMMER)),uif)
|
|
|
|
MSPDEBUGFLAGS += -d $(PROG_DEV)
|
|
|
|
endif
|
|
|
|
FLASHER ?= mspdebug
|
|
|
|
FLASHFILE ?= $(HEXFILE)
|
|
|
|
FFLAGS = $(MSPDEBUGFLAGS) "prog $(FLASHFILE)"
|
|
|
|
|
|
|
|
# setup debugger
|
|
|
|
DEBUGSERVER = $(FLASHER)
|
|
|
|
DEBUGSERVER_FLAGS = $(MSPDEBUGFLAGS) gdb
|
|
|
|
DEBUGGER = $(PREFIX)gdb
|
2022-05-31 12:39:16 +02:00
|
|
|
DEBUGGER_FLAGS = --ex="target remote localhost:2000" --ex "monitor reset halt" --ex load -ex "monitor reset halt" $(DEBUG_ELFFILE)
|
2020-12-01 12:10:43 +01:00
|
|
|
|
|
|
|
# setup reset tool
|
|
|
|
RESET ?= mspdebug
|
|
|
|
RESET_FLAGS ?= $(MSPDEBUGFLAGS) reset
|