diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2022-10-12 20:54:15 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-01-19 16:23:22 +1100 |
| commit | 3b5cafc7163724a50b3d077baf83c4d8c7b6de4a (patch) | |
| tree | bcc7452611426a0d6823b060a554f47a819ae043 | |
| parent | 36347817ec7715f74c76a44eb92533821502f4d5 (diff) | |
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.
| -rw-r--r-- | ports/stm32/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index 418562f7c..19643cac5 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 |
