diff options
| author | William D. Jones <[email protected]> | 2020-03-23 23:45:22 -0400 |
|---|---|---|
| committer | William D. Jones <[email protected]> | 2020-03-23 23:45:22 -0400 |
| commit | 27efedc9e6304d429dbf9b4f481d1241cf310210 (patch) | |
| tree | 5ec9b7814d292368a670109be362a075f8ba78f8 | |
| parent | 48fa67e16b082562b13dd40b9025197ea543e657 (diff) | |
msp_exp430f5529lp: Allow user to choose mspdebug as alternate programmer.
| -rw-r--r-- | hw/bsp/msp_exp430f5529lp/board.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hw/bsp/msp_exp430f5529lp/board.mk b/hw/bsp/msp_exp430f5529lp/board.mk index ec393e0fc..b1264d346 100644 --- a/hw/bsp/msp_exp430f5529lp/board.mk +++ b/hw/bsp/msp_exp430f5529lp/board.mk @@ -16,11 +16,17 @@ INC += $(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include VENDOR = ti CHIP_FAMILY = msp430x5xx +# Allow user to use mspdebug if set on make command line. +ifdef MSPDEBUG +# flash target using mspdebug. +flash: $(BUILD)/$(BOARD)-firmware.elf + $(MSPDEBUG) tilib "prog $<" --allow-fw-update +else # export for libmsp430.so to same installation export LD_LIBRARY_PATH=$(dir $(shell which MSP430Flasher)) - # flash target using TI MSP430-Flasher # http://www.ti.com/tool/MSP430-FLASHER # Please add its installation dir to PATH flash: $(BUILD)/$(BOARD)-firmware.hex MSP430Flasher -w $< -z [VCC] +endif |
