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
|
# set default port depending on operating system
|
||||||
PORT_LINUX ?= /dev/ttyUSB0
|
PORT_LINUX ?= /dev/ttyUSB0
|
||||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
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
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||||
|
|
||||||
# setup flash tool
|
# setup flash tool
|
||||||
PROGRAMMER ?= olimex
|
PROGRAMMER ?= mspdebug
|
||||||
MSPDEBUGFLAGS += -j $(PROGRAMMER)
|
MSPDEBUG_PROGRAMMER ?= olimex
|
||||||
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
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user