summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorYunhao Tian <[email protected]>2021-12-07 22:53:52 +0800
committerYunhao Tian <[email protected]>2021-12-07 22:53:52 +0800
commit75f7fb3d9d267f168bc45fc218e1c443701ff11d (patch)
tree8513512e9702a3fd5dacd97f76eee828167c6ed9 /examples
parent96979a2c4a43902a3051c678858e788e7ffc8c60 (diff)
Add mksunxi tool to make flashable image
Diffstat (limited to 'examples')
-rw-r--r--examples/rules.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/rules.mk b/examples/rules.mk
index 6314380ec..55e39f4ed 100644
--- a/examples/rules.mk
+++ b/examples/rules.mk
@@ -182,10 +182,12 @@ flash-jlink: $(BUILD)/$(PROJECT).hex
flash-stlink: $(BUILD)/$(PROJECT).elf
STM32_Programmer_CLI --connect port=swd --write $< --go
-flash-xfel: $(BUILD)/$(PROJECT).bin
- xfel ddr
- xfel write 0x80000000 $<
- xfel exec 0x80000000
+$(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 ?=