boards/common/msp430: use common mspdebug
This commit is contained in:
parent
a74e005fbb
commit
7272549007
@ -1,3 +1,5 @@
|
||||
INCLUDES += -I$(RIOTBOARD)/common/msb-430/include
|
||||
|
||||
# set default port depending on operating system
|
||||
PORT_LINUX ?= /dev/ttyUSB0
|
||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
||||
@ -5,23 +7,5 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
||||
# setup flash tool
|
||||
PROGRAMMER ?= olimex
|
||||
MSPDEBUGFLAGS += -j $(PROGRAMMER)
|
||||
ifeq ($(strip $(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
|
||||
DEBUGGER_FLAGS = --ex="target remote localhost:2000" --ex "monitor reset halt" --ex load -ex "monitor reset halt" $(ELFFILE)
|
||||
|
||||
INCLUDES += -I$(RIOTBOARD)/common/msb-430/include
|
||||
|
||||
# setup reset tool
|
||||
RESET ?= mspdebug
|
||||
RESET_FLAGS ?= $(MSPDEBUGFLAGS) reset
|
||||
PROGRAMMER ?= mspdebug
|
||||
MSPDEBUG_PROGRAMMER ?= olimex
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user