Hello,
I hope this is the right section where to put my question.
I'm trying to upload my sketch through a normal USB cable connected to the board, exactly as I have done in the past with Arduino and Teensy boards.
Quite strangely, I cannot upload the program through the serial connection (baud rate = 115200):
esptool.py v4.2.1
Serial port /dev/ttyS0
Connecting.....................................An error occurred while uploading the sketch
.
A fatal error occurred: Failed to connect to ESP32-S3: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
What's going on?
Any clue?
P.S.
I read somewhere that I have to briefly press the BOOT button to start uploading. But it doesen't work.
I also tried to disconnect the USB cable to power off the device, and reconnect it while keeping the reset button pressed. But this doesn't work either...
What happens if you hold the button down? I don't have experience with the ESP32-S3, but this is what I must do on my ESP32 board (I wait until I see the upload process proceed past that "Connecting....." stage before releasing the button.
You need to press the button until the "Connecting" process is completed.
The Tools > Programmer menu selection is only used when you are doing Tools > Burn Bootloader or "Upload Using Programmer". When you're doing a standard "Upload", the Tools > Programmer menu selection is completely ignored. So it makes no difference at all what you have selected from the Tools > Programmer menu.
I tried also to keep the continuosly button pressed until the message "Failed to connect to ESP32-S3: No serial data received." appears.
No success.
Please be patient with me; I was away from Arduino programming for more than one year. I completely forgot some details... shame on me!
DOUBT: could be the cable???
I'm now looking at it and it is not marked with the usual usb logo... it is anonymous... maybe it is just a charging cable without the data wires??? Could be?
I searched everywhere at my home, but seems that all USB-C cables whas stolen by aliens at nightime!
I ordered a new one from Samsung on ebay few minutes ago. No "charging cable", only data-cable.
/dev/ttyS0 is not a USB serial port so it cannot be the ESP32-S3. If you are using Linux and an ESP32-S3, the USB serial port will probably be /dev/ttyACM0. If your board has two USB connectors, one will be /dev/ttyUSB0 and the other /dev/ttyACM0.
You can get a list of tty ports sorted by date and time by using this command ls -ltr /dev/tty*. Let the output scroll by. The most recent ports are at the end. If you do not see either USB serial port, you may have a bad USB cable. Try other cables until you find one that works.
Also the command sudo dmesg dumps out system messages. Let the listing scroll by because the most recent events are at the end. On older versions of Linux the sudo was not required but is on Ubuntu 22.04. You should see messages about USB devices plugged in. If you see messages about BRLTTY and you are not using a Braille terminal, remove brltty using sudo apt remove brltty. If you see messages about modemmanager and you are not using a dial up modem, remove it using sudo apt remove modemmanager.
open the IDE with no board attached
Tools >> Ports and note what you see
connect the ESP
Tools >> Port and note what new port shows up
connect to that new port
open up the Serial Monitor and reset the ESP
if you see a wall of gobbledygook and a few English words, you're in
@Geek_Emeritus @Icebuster
thanks for the suggestions.
No new device appears when plugging the ESP32-S3 (for example by using lsusb or dmesg | grep tty).
I think my cable is bad, I'm waiting fo the delivery of a new one.
I have any sort of USB cable at home but not USB-C...