diff options
| author | hathach <[email protected]> | 2024-07-10 22:48:06 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-07-10 22:48:06 +0700 |
| commit | c1175b70131fa5020713381a850f2ce1018f390f (patch) | |
| tree | 297042a410c78f370e99a82e1be9f5bdb65e60bd /examples/build_system | |
| parent | 8d5dbb957766921eba78b8762a458e6518521b66 (diff) | |
enable full 224KB flash for ch32v203 with flash enhanced read mode in SystemInit (better with startup).
add flash with wlink-rs
Diffstat (limited to 'examples/build_system')
| -rw-r--r-- | examples/build_system/make/rules.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/build_system/make/rules.mk b/examples/build_system/make/rules.mk index 102c6db0c..f322dbae6 100644 --- a/examples/build_system/make/rules.mk +++ b/examples/build_system/make/rules.mk @@ -145,6 +145,12 @@ OPENOCD_WCH_OPTION ?= flash-openocd-wch: $(BUILD)/$(PROJECT).elf $(OPENOCD_WCH) $(OPENOCD_WCH_OPTION) -c init -c halt -c "flash write_image $<" -c reset -c exit +# --------------- wlink-rs ----------------- +# flash with https://github.com/ch32-rs/wlink +WLINK_RS ?= wlink +flash-wlink-rs: $(BUILD)/$(PROJECT).elf + $(WLINK_RS) flash $< + # --------------- dfu-util ----------------- DFU_UTIL_OPTION ?= -a 0 flash-dfu-util: $(BUILD)/$(PROJECT).bin |
