mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-15 03:40:19 +00:00
msp_exp430f5529lp: Allow user to choose mspdebug as alternate programmer.
This commit is contained in:
parent
48fa67e16b
commit
27efedc9e6
@ -16,11 +16,17 @@ INC += $(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include
|
|||||||
VENDOR = ti
|
VENDOR = ti
|
||||||
CHIP_FAMILY = msp430x5xx
|
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 for libmsp430.so to same installation
|
||||||
export LD_LIBRARY_PATH=$(dir $(shell which MSP430Flasher))
|
export LD_LIBRARY_PATH=$(dir $(shell which MSP430Flasher))
|
||||||
|
|
||||||
# flash target using TI MSP430-Flasher
|
# flash target using TI MSP430-Flasher
|
||||||
# http://www.ti.com/tool/MSP430-FLASHER
|
# http://www.ti.com/tool/MSP430-FLASHER
|
||||||
# Please add its installation dir to PATH
|
# Please add its installation dir to PATH
|
||||||
flash: $(BUILD)/$(BOARD)-firmware.hex
|
flash: $(BUILD)/$(BOARD)-firmware.hex
|
||||||
MSP430Flasher -w $< -z [VCC]
|
MSP430Flasher -w $< -z [VCC]
|
||||||
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user