File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
software/epink-lvgl/scripts Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ echo "working dir is ${WORKDIR}"
77BUILDDIR=${WORKDIR} /dir_build
88
99BIN=" xenia_clock.elf"
10+ UF2=" xenia_clock.uf2"
1011
1112function do_banner() {
1213cat << "EOF " >> /dev/tty
@@ -74,7 +75,12 @@ function do_install() {
7475
7576function do_flash() {
7677 echo_debug " do flashning ..."
77- ${WORKDIR} /../tools/dapp ./${BIN}
78+ time ${WORKDIR} /../tools/dapp ${WORKDIR} /${BIN}
79+ }
80+
81+ function do_flash_uf2() {
82+ echo_debug " do uf2 flashning ..."
83+ sudo cp ${BUILDDIR} /${UF2} /media/$USER /RPI-RP2/
7884}
7985
8086function do_clean() {
@@ -100,6 +106,13 @@ case $1 in
100106 exit 0
101107 ;;
102108
109+ " -u" )
110+ echo_debug " will do a uf2 flash job"
111+ do_banner
112+ do_flash_uf2
113+ exit 0
114+ ;;
115+
103116 " -c" )
104117 echo_debug " do a clean job"
105118 do_banner
You can’t perform that action at this time.
0 commit comments