Files
2026-01-15 10:35:57 +01:00

15 lines
528 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
python=$(ls -tr ~/.espressif/python_env/*/bin/python|tail -1)
$python -m esptool --chip esp32s3 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 16MB --flash_freq 80m 0 $fwfile $@