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

@@ -455,6 +455,18 @@ function(family_flash_openocd_wch TARGET)
family_flash_openocd(${TARGET})
endfunction()
# Add flash with https://github.com/ch32-rs/wlink
function(family_flash_wlink_rs TARGET)
if (NOT DEFINED WLINK_RS)
set(WLINK_RS wlink)
endif ()
add_custom_target(${TARGET}-wlink-rs
DEPENDS ${TARGET}
COMMAND ${WLINK_RS} flash $<TARGET_FILE:${TARGET}>
)
endfunction()
# Add flash pycod target
function(family_flash_pyocd TARGET)
if (NOT DEFINED PYOC)