Hello,
I am struggling to upload the file system to ESP32.
I got it working once but most of the time I get this error.
I changed the USB cable for the best one I could buy to no avail.
I am wondering if lowering the baud rate would help.
How can I change the default baud rate (406800) to a lower one?
Any other tips ?
* The terminal process "platformio 'run', '--target', 'uploadfs', '--environment', 'lilygo-t-display-s3'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
* Executing task: platformio run --target uploadfs --environment lilygo-t-display-s3
Processing lilygo-t-display-s3 (platform: espressif32; board: lilygo-t-display-s3; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lilygo-t-display-s3.html
PLATFORM: Espressif 32 (6.7.0) > LilyGo T-Display-S3
HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.20016.0 (2.0.16)
- tool-esptoolpy @ 1.40501.0 (4.5.1)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 2.230.0 (2.30)
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 36 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ESP Async WebServer @ 1.2.4+sha.7f37534
|-- TFT_eSPI @ 2.5.43
|-- SPIFFS @ 2.0.0
|-- AsyncTCP @ 1.1.1
|-- WiFi @ 2.0.0
Building in release mode
Building FS image from 'data' directory to .pio/build/lilygo-t-display-s3/spiffs.bin
/wifimanager.html
/index.html
/style.css
Looking for upload port...
Auto-detected: /dev/ttyACM0
Uploading .pio/build/lilygo-t-display-s3/spiffs.bin
esptool.py v4.5.1
Serial port /dev/ttyACM0
Connecting...
Chip is ESP32-S3 (revision v0.2)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 3c:84:27:c2:35:04
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00c90000 to 0x00feffff...
Compressed 3538944 bytes to 8576...
Writing at 0x00c90000... (100 %)
A fatal error occurred: Invalid head of packet (0x01): Possible serial noise or corruption.
*** [uploadfs] Error 2