diff options
Diffstat (limited to 'platforms/chibios/flash.mk')
-rw-r--r-- | platforms/chibios/flash.mk | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/platforms/chibios/flash.mk b/platforms/chibios/flash.mk index 46aff6e4b..c0b32c2f2 100644 --- a/platforms/chibios/flash.mk +++ b/platforms/chibios/flash.mk | |||
@@ -73,15 +73,15 @@ teensy: $(BUILD_DIR)/$(TARGET).hex cpfirmware sizeafter | |||
73 | 73 | ||
74 | flash: $(BUILD_DIR)/$(TARGET).bin cpfirmware sizeafter | 74 | flash: $(BUILD_DIR)/$(TARGET).bin cpfirmware sizeafter |
75 | ifneq ($(strip $(PROGRAM_CMD)),) | 75 | ifneq ($(strip $(PROGRAM_CMD)),) |
76 | $(PROGRAM_CMD) | 76 | $(UNSYNC_OUTPUT_CMD) && $(PROGRAM_CMD) |
77 | else ifeq ($(strip $(BOOTLOADER)),kiibohd) | 77 | else ifeq ($(strip $(BOOTLOADER)),kiibohd) |
78 | $(call EXEC_DFU_UTIL) | 78 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_DFU_UTIL) |
79 | else ifeq ($(strip $(MCU_FAMILY)),KINETIS) | 79 | else ifeq ($(strip $(MCU_FAMILY)),KINETIS) |
80 | $(call EXEC_TEENSY) | 80 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_TEENSY) |
81 | else ifeq ($(strip $(MCU_FAMILY)),MIMXRT1062) | 81 | else ifeq ($(strip $(MCU_FAMILY)),MIMXRT1062) |
82 | $(call EXEC_TEENSY) | 82 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_TEENSY) |
83 | else ifeq ($(strip $(MCU_FAMILY)),STM32) | 83 | else ifeq ($(strip $(MCU_FAMILY)),STM32) |
84 | $(call EXEC_DFU_UTIL) | 84 | $(UNSYNC_OUTPUT_CMD) && $(call EXEC_DFU_UTIL) |
85 | else | 85 | else |
86 | $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_BOOTLOADER)" | 86 | $(PRINT_OK); $(SILENT) || printf "$(MSG_FLASH_BOOTLOADER)" |
87 | endif | 87 | endif |