aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-10-15 22:07:33 +0100
committerGitHub <noreply@github.com>2021-10-15 22:07:33 +0100
commit40bc5a81923d16f6c9c2a3a05616b8cb1859b01e (patch)
treeb96d55846bbdabe9b94d0cc96210b83c135f3d56 /platforms
parentd7f69dc6203fde5d9be8394667e675ed1130b74c (diff)
downloadqmk_firmware-40bc5a81923d16f6c9c2a3a05616b8cb1859b01e.tar.gz
qmk_firmware-40bc5a81923d16f6c9c2a3a05616b8cb1859b01e.zip
Enable CLI flashing via mdloader (#14729)
* Enable CLI flashing via mdloader * remove flag * Update qmk flash help
Diffstat (limited to 'platforms')
-rw-r--r--platforms/arm_atsam/flash.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/platforms/arm_atsam/flash.mk b/platforms/arm_atsam/flash.mk
index f31d4b4d9..8152610ce 100644
--- a/platforms/arm_atsam/flash.mk
+++ b/platforms/arm_atsam/flash.mk
@@ -3,9 +3,20 @@
3# Architecture or project specific options 3# Architecture or project specific options
4# 4#
5 5
6MDLOADER_CLI ?= mdloader
7
8define EXEC_MDLOADER
9 $(MDLOADER_CLI) --first --download $(BUILD_DIR)/$(TARGET).bin --restart
10endef
11
12mdloader: bin
13 $(call EXEC_MDLOADER)
14
6flash: bin 15flash: bin
7ifneq ($(strip $(PROGRAM_CMD)),) 16ifneq ($(strip $(PROGRAM_CMD)),)
8 $(UNSYNC_OUTPUT_CMD) && $(PROGRAM_CMD) 17 $(UNSYNC_OUTPUT_CMD) && $(PROGRAM_CMD)
18else ifeq ($(strip $(ARM_ATSAM)),SAMD51J18A)
19 $(UNSYNC_OUTPUT_CMD) && $(call EXEC_MDLOADER)
9else 20else
10 $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_ARCH)" 21 $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_ARCH)"
11endif 22endif