From 3b5cafc7163724a50b3d077baf83c4d8c7b6de4a Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Wed, 12 Oct 2022 20:54:15 +0200 Subject: [PATCH] stm32/Makefile: Leave DFU mode after download when using dfu-util. Not all DFU bootloaders exit after download, this modifier is required for some boards to reset, otherwise they sit idle in DFU mode. --- ports/stm32/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index 418562f7cb..19643cac56 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -546,7 +546,7 @@ define RUN_DFU $(ECHO) "Writing $(1) to the board" $(if $(filter $(USE_PYDFU),1),\ $(Q)$(PYTHON) $(PYDFU) --vid $(BOOTLOADER_DFU_USB_VID) --pid $(BOOTLOADER_DFU_USB_PID) -u $(1), - $(Q)$(DFU_UTIL) -a 0 -d $(BOOTLOADER_DFU_USB_VID):$(BOOTLOADER_DFU_USB_PID) -D $(1)) + $(Q)$(DFU_UTIL) -a 0 -d $(BOOTLOADER_DFU_USB_VID):$(BOOTLOADER_DFU_USB_PID) -D $(1) -s :leave) endef define RUN_STLINK