summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-12-29 18:27:29 +0700
committerhathach <[email protected]>2021-12-29 18:27:29 +0700
commit30aba24ddc0d25dfa796de3a5d3857a13d440f5e (patch)
tree8cbb988ba6ca126b330cf1fb59a903dbcbee5c90 /examples
parenta6789b5d5a3c9e41771e5eb8fdb08182c95fbe08 (diff)
parent527036b1f5a3f0aa3994f62e3ab18fa990a40cf8 (diff)
Merge branch 'master' of https://github.com/t123yh/tinyusb into t123yh-master
Diffstat (limited to 'examples')
-rw-r--r--examples/rules.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/rules.mk b/examples/rules.mk
index 4cc35cb22..55e39f4ed 100644
--- a/examples/rules.mk
+++ b/examples/rules.mk
@@ -182,6 +182,13 @@ flash-jlink: $(BUILD)/$(PROJECT).hex
flash-stlink: $(BUILD)/$(PROJECT).elf
STM32_Programmer_CLI --connect port=swd --write $< --go
+$(BUILD)/$(PROJECT)-sunxi.bin: $(BUILD)/$(PROJECT).bin
+ $(PYTHON) $(TOP)/tools/mksunxi.py $< $@
+
+flash-xfel: $(BUILD)/$(PROJECT)-sunxi.bin
+ xfel spinor write 0 $<
+ xfel reset
+
# Flash using pyocd
PYOCD_OPTION ?=
flash-pyocd: $(BUILD)/$(PROJECT).hex