aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32f1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32f1/Makefile')
-rw-r--r--src/stm32f1/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stm32f1/Makefile b/src/stm32f1/Makefile
index 8d813d4d..28662a01 100644
--- a/src/stm32f1/Makefile
+++ b/src/stm32f1/Makefile
@@ -47,5 +47,9 @@ $(OUT)klipper.bin: $(OUT)klipper.elf
$(Q)$(OBJCOPY) -O binary $< $@
flash: $(OUT)klipper.bin
+ @echo " Flashing $< to $(FLASH_DEVICE)"
+ $(Q)$(PYTHON) ./scripts/flash_usb.py -t stm32f1 -d "$(FLASH_DEVICE)" $(OUT)klipper.bin
+
+serialflash: $(OUT)klipper.bin
@echo " Flashing $< to $(FLASH_DEVICE) via stm32flash"
$(Q)stm32flash -w $< -v -g 0 $(FLASH_DEVICE)