summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-09-01 21:04:43 +0700
committerhathach <[email protected]>2019-09-01 21:04:43 +0700
commit67d2cf39d5b776f4b540dda3547547ab3ad839be (patch)
treee3e884159f0a7e2871b694892414a7b7034bd107
parent80cde5b0b5008200d6020d9a55b74260245a4e3b (diff)
clean up
-rw-r--r--hw/bsp/lpcxpresso11u68/board.mk5
-rw-r--r--hw/bsp/lpcxpresso51u68/board.mk5
-rw-r--r--hw/bsp/lpcxpresso54114/board.mk4
3 files changed, 8 insertions, 6 deletions
diff --git a/hw/bsp/lpcxpresso11u68/board.mk b/hw/bsp/lpcxpresso11u68/board.mk
index b2899a2e0..b637b4b02 100644
--- a/hw/bsp/lpcxpresso11u68/board.mk
+++ b/hw/bsp/lpcxpresso11u68/board.mk
@@ -35,5 +35,6 @@ FREERTOS_PORT = ARM_CM0
JLINK_DEVICE = LPC11U68
JLINK_IF = swd
-# flash using jlink
-flash: flash-jlink
+# flash using pyocd
+flash: $(BUILD)/$(BOARD)-firmware.hex
+ pyocd flash -t lpc11u68 $<
diff --git a/hw/bsp/lpcxpresso51u68/board.mk b/hw/bsp/lpcxpresso51u68/board.mk
index d1e9533f5..60485463c 100644
--- a/hw/bsp/lpcxpresso51u68/board.mk
+++ b/hw/bsp/lpcxpresso51u68/board.mk
@@ -41,5 +41,6 @@ FREERTOS_PORT = ARM_CM0
JLINK_DEVICE = LPC51U68
JLINK_IF = swd
-# flash using jlink
-#flash: flash-jlink
+# flash using pyocd (51u68 is not supported yet)
+flash: $(BUILD)/$(BOARD)-firmware.hex
+ pyocd flash -t LPC51U68 $<
diff --git a/hw/bsp/lpcxpresso54114/board.mk b/hw/bsp/lpcxpresso54114/board.mk
index 1d2bf9531..d4ef8c262 100644
--- a/hw/bsp/lpcxpresso54114/board.mk
+++ b/hw/bsp/lpcxpresso54114/board.mk
@@ -44,5 +44,5 @@ JLINK_DEVICE = LPC54114J256_M4
JLINK_IF = swd
# flash using pyocd
-flash: $(BUILD)/$(BOARD)-firmware.elf
- pyocd flash -v -e auto -t LPC54114 $<
+flash: $(BUILD)/$(BOARD)-firmware.hex
+ pyocd flash -t LPC54114 $<