We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8666a74 commit 155310dCopy full SHA for 155310d
bricks/stm32/stm32.mk
@@ -110,6 +110,7 @@ GIT = git
110
ZIP = zip
111
DFU = $(TOP)/tools/dfu.py
112
PYDFU = $(TOP)/tools/pydfu.py
113
+PYBRICKSDEV = pybricksdev
114
BUILD_DUAL_BOOT_BIN = $(PBTOP)/tools/build-dual-boot-bin.py
115
BUILD_DUAL_BOOT_INSTALLER = $(PBTOP)/tools/build-dual-boot-installer.py
116
CHECKSUM = $(PBTOP)/tools/checksum.py
@@ -658,6 +659,9 @@ $(BUILD)/%.dfu: $(BUILD)/%.bin
658
659
$(ECHO) "DFU Create $@"
660
$(Q)$(PYTHON) $(DFU) -b $(TEXT0_ADDR):$< $@
661
662
+deploy: $(BUILD)/firmware.zip
663
+ $(Q)$(PYBRICKSDEV) flash $<
664
+
665
deploy-dfu-%: $(BUILD)/%.dfu
666
$(ECHO) "Writing $< to the board"
667
$(Q)$(PYTHON) $(PYDFU) -u $< $(if $(DFU_VID),--vid $(DFU_VID)) $(if $(DFU_PID),--pid $(DFU_PID))
0 commit comments