summaryrefslogtreecommitdiff
path: root/platforms/chibios
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-09-10 01:14:12 +0100
committerGitHub <noreply@github.com>2022-09-10 01:14:12 +0100
commit4087251da6ffcbfd16a9b655b7816803a565f0a6 (patch)
treee32f60602e45a01af7b2edcac1cfdbf443bc16cc /platforms/chibios
parentf20883fef1bc9980d86682a05f763f12679b8c45 (diff)
Reboot wb32 devices after flashing (#18323)
Diffstat (limited to 'platforms/chibios')
-rw-r--r--platforms/chibios/flash.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/platforms/chibios/flash.mk b/platforms/chibios/flash.mk
index 790c4f3316..2802368b5d 100644
--- a/platforms/chibios/flash.mk
+++ b/platforms/chibios/flash.mk
@@ -23,6 +23,7 @@ define EXEC_DFU_UTIL
$(DFU_UTIL) $(DFU_ARGS) -D $(BUILD_DIR)/$(TARGET).bin
endef
+WB32_DFU_UPDATER ?= wb32-dfu-updater_cli
define EXEC_WB32_DFU_UPDATER
if ! wb32-dfu-updater_cli -l | grep -q "Found DFU"; then \
@@ -34,7 +35,7 @@ define EXEC_WB32_DFU_UPDATER
done ;\
printf "\n" ;\
fi
- wb32-dfu-updater_cli -D $(BUILD_DIR)/$(TARGET).bin
+ $(WB32_DFU_UPDATER) -D $(BUILD_DIR)/$(TARGET).bin && $(WB32_DFU_UPDATER) -R
endef
dfu-util: $(BUILD_DIR)/$(TARGET).bin cpfirmware sizeafter