From 658530818e6ae3cbb16a5395138da59160ff6253 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Mon, 10 Mar 2025 13:09:35 -0700 Subject: [PATCH] Added flashing command using wlink. --- otto.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/otto.sh b/otto.sh index dcefadb..8970e9f 100755 --- a/otto.sh +++ b/otto.sh @@ -8,6 +8,7 @@ CMAKE_VERBOSE="ON" CROSS_COMPILE=1 TEMPLATE_FILES=".template_files" MODULE_DIR="${TEMPLATE_FILES}/modules" +CHIP="ch32v003" format_source_code () { @@ -265,7 +266,7 @@ build_hex_optimized () { flash_microcontroller () { build_hex_optimized - make upload + wlink --chip=${CHIP} flash ./src/main.elf } run_c_tests () {