Sudden problem in uploading to Lilygo T-Display S3

I am using the Lilygo T-Display S3 for a while with no problem. Suddenly today, I get an error when trying to load the compiled code to the board. I am using VSCode (v1.89.1) + PlatformIO (Core 6.1.15, Home 3.4.4).
When I try to upload, the output is:

Building in release mode
Retrieving maximum program size .pio\build\lilygo-t-display-s3\firmware.elf
Checking size .pio\build\lilygo-t-display-s3\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  17.2% (used 56464 bytes from 327680 bytes)
Flash: [==        ]  22.7% (used 1070985 bytes from 4718592 bytes)
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa    
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM6
Uploading .pio\build\lilygo-t-display-s3\firmware.bin
esptool.py v4.5.1
Serial port COM6
Connecting...
Chip is ESP32-S3 (revision v0.2)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 84:fc:e6:64:b3:20
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800

A fatal error occurred: No serial data received.
*** [upload] Error 2

Will very highly appreciate your help in resolving this. Thanks!
Motti

Hi @mottibz

Please double check that COM6 is correct and the device is listed:

Click on PIO-Icon / “PROJECT TASKS” / “lilygo-t-display-s3” / “GENERAL” / “Devices”:

image

Hi Boris, That’s what I got:

Executing task: C:\Users\motti.platformio\penv\Scripts\platformio.exe device list

COM6

Hardware ID: USB VID:PID=303A:1001 SER=84:FC:E6:64:B3:20
Description: USB Serial Device (COM6)

Ok.
How about putting it into download-mode manually?

  • Press & hold the BOOT button while pressing RESET button.
  • Release the BOOT button and upload your sketch.

After a few trials, it worked and uploaded the code.
BIG THANKS BORIS!!!
What could be the reason for the board to suddenly cause this problem?

Hard to say…

But I’m glad that it is working again and your ESP32-S3 is not “bricked” :slight_smile:

Yup, thanks to you :grinning:

Same board, same problem, and same useful solution.
After upgraded to Espressif 32 (6.7.0), this problem occurs.

Can you confirm that it does not occur with platform = espressif32 @ 6.6.0 ?

I come home and retry with old version

PLATFORM: Espressif 32 (6.6.0)

on ubuntu, and confirmed upload fail. Sorry for my former incautious reply. The problem should be cause by other reason.

I encountered the same problem with platformio as both a VSC and CLion plugin developing an Arduino Nano ESP-32. It happened suddenly yesterday and I spent a fair bit of time debugging, including trying more than one MCU, and finally decided that it was core-related. Reading through the threads above I realized that the problem started when I got an Espressif upgrade from 6.6.0 to 6.7.0.

I changed the ‘platform’ definition to:-
platform = espressif32 @ 6.6.0

and it all started working again - @08822407d - the syntax is not (6.6.0) but @ 6.6.0 - can you try that?

Known bug in latest Arduino core 2.0.16. See ESP32-C3 Arduino IDE Upload ERROR when USB CDC on, No serial data received Error occurs · Issue #9646 · espressif/arduino-esp32 · GitHub
Bug hits the C3 and S3

2 Likes

Issue should be fixed. Platformio has updated to Arduino core 2.0.17 in development branch