enable full 224KB flash for ch32v203 with flash enhanced read mode in SystemInit (better with startup).

add flash with wlink-rs
This commit is contained in:
hathach
2024-07-10 22:48:06 +07:00
parent 8d5dbb9577
commit c1175b7013
13 changed files with 75 additions and 93 deletions

View File

@@ -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