Files
MicroPythonOS/scripts/flash_over_usb.sh
T

15 lines
528 B
Bash
Raw Normal View History

2025-10-27 21:30:09 +01:00
mydir=$(readlink -f "$0")
mydir=$(dirname "$mydir")
2025-11-15 18:08:28 +01:00
fwfile="$0"
# This would break the --erase-all
#if [ -z "$fwfile" ]; then
2025-11-20 22:19:39 +01:00
fwfile="$mydir/../lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin"
2025-11-15 18:08:28 +01:00
#fi
2025-05-01 15:44:12 +02:00
ls -al $fwfile
2025-05-13 12:48:36 +02:00
echo "Add --erase-all if needed"
2025-06-05 00:02:16 +02:00
sleep 5
2025-10-09 19:49:53 +02:00
# 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 $@
2025-04-30 13:50:04 +02:00