Browse Source

change msp430 flash tool from mspdebug to TI MSP430Flasher

hathach 6 years ago
parent
commit
acbb535668
1 changed files with 7 additions and 5 deletions
  1. 7 5
      hw/bsp/msp_exp430f5529lp/board.mk

+ 7 - 5
hw/bsp/msp_exp430f5529lp/board.mk

@@ -16,9 +16,11 @@ INC += $(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include
 VENDOR = ti
 CHIP_FAMILY = msp430x5xx
 
-# Path to mspdebug, should be added into system path
-MSPDEBUG = mspdebug
+# export for libmsp430.so to same installation
+export LD_LIBRARY_PATH=$(dir $(shell which MSP430Flasher))
 
-# flash target using mspdebug.
-flash: $(BUILD)/$(BOARD)-firmware.elf
-	$(MSPDEBUG) tilib "prog $<" --allow-fw-update
+# 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]