Added flashing command using wlink.
This commit is contained in:
parent
a33c9e1957
commit
658530818e
1 changed files with 2 additions and 1 deletions
3
otto.sh
3
otto.sh
|
@ -8,6 +8,7 @@ CMAKE_VERBOSE="ON"
|
||||||
CROSS_COMPILE=1
|
CROSS_COMPILE=1
|
||||||
TEMPLATE_FILES=".template_files"
|
TEMPLATE_FILES=".template_files"
|
||||||
MODULE_DIR="${TEMPLATE_FILES}/modules"
|
MODULE_DIR="${TEMPLATE_FILES}/modules"
|
||||||
|
CHIP="ch32v003"
|
||||||
|
|
||||||
|
|
||||||
format_source_code () {
|
format_source_code () {
|
||||||
|
@ -265,7 +266,7 @@ build_hex_optimized () {
|
||||||
|
|
||||||
flash_microcontroller () {
|
flash_microcontroller () {
|
||||||
build_hex_optimized
|
build_hex_optimized
|
||||||
make upload
|
wlink --chip=${CHIP} flash ./src/main.elf
|
||||||
}
|
}
|
||||||
|
|
||||||
run_c_tests () {
|
run_c_tests () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue