Fix flash_over_usb.sh and install.sh

This commit is contained in:
Thomas Farstrike
2025-10-27 21:30:09 +01:00
parent 6e934a47cb
commit 8fd5afbbb5
2 changed files with 8 additions and 3 deletions
+4 -2
View File
@@ -1,7 +1,9 @@
fwfile="../lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin"
mydir=$(readlink -f "$0")
mydir=$(dirname "$mydir")
fwfile="$mydir/../lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin"
ls -al $fwfile
echo "Add --erase-all if needed"
sleep 5
# This needs python and the esptool
~/.espressif/python_env/idf5.2_py3.9_env/bin/python -m esptool --chip esp32s3 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 16MB --flash_freq 80m $1 0x0 $fwfile
~/.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 $1 0x0 $fwfile
+4 -1
View File
@@ -1,3 +1,6 @@
mydir=$(readlink -f "$0")
mydir=$(dirname "$mydir")
pkill -f "python.*mpremote"
target="$1"
@@ -14,7 +17,7 @@ fi
mpremote=$(readlink -f "../lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py")
mpremote=$(readlink -f "$mydir/../lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py")
pushd internal_filesystem/