You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
14 lines
495 B
Bash
Executable File
14 lines
495 B
Bash
Executable File
mydir=$(readlink -f "$0")
|
|
mydir=$(dirname "$mydir")
|
|
fwfile="$0"
|
|
# This would break the --erase-all
|
|
#if [ -z "$fwfile" ]; then
|
|
fwfile="$mydir/../lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin"
|
|
#fi
|
|
ls -al $fwfile
|
|
echo "Add --erase-all if needed"
|
|
sleep 5
|
|
# This needs python and the esptool
|
|
~/.espressif/python_env/*/bin/python -m esptool --chip esp32s3 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 16MB --flash_freq 80m 0 $fwfile $@
|
|
|