Upload to ESP32-S3 board fails: "Possible serial noise or corruption"

Sketch uses 1183061 bytes (90%) of program storage space. Maximum is 1310720 bytes.
Global variables use 44184 bytes (13%) of dynamic memory, leaving 283496 bytes for local variables. Maximum is 327680 bytes.
"C:\Users\valma\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6/esptool.exe" --chip esp32s3 --port "COM5" --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode keep --flash_freq keep --flash_size keep 0x0 "C:\Users\valma\AppData\Local\Temp\arduino\sketches\D3A32315383087907416D96B62080451/wiiiscan.ino.bootloader.bin" 0x8000 "C:\Users\valma\AppData\Local\Temp\arduino\sketches\D3A32315383087907416D96B62080451/wiiiscan.ino.partitions.bin" 0xe000 "C:\Users\valma\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\valma\AppData\Local\Temp\arduino\sketches\D3A32315383087907416D96B62080451/wiiiscan.ino.bin"
esptool.py v4.6
Serial port COM5
Connecting......................................

A fatal error occurred: Failed to connect to ESP32-S3: Invalid head of packet (0x1B): Possible serial noise or corruption.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool.py latest documentation
Failed uploading: uploading error: exit status 2

Hi @valmach.

This error might be caused by the communication lines between the computer and the microcontroller on the board not being able to support the rather high default upload speed. If so, the problem should be fixed by reducing the upload speed, which is configurable via a convenient menu.

Select Tools > Upload Speed > 115200 from the Arduino IDE menus and then try uploading the sketch again, just as you did before. Hopefully this time the upload will be successful. If not, add a reply here on the forum thread to let us know and we'll investigate further.

Optimizing Upload Speed

If the sketch upload no longer failed after reducing the upload speed, you will have determined that the board is not capable of managing uploads at the default 921600 baud, but is capable of them at 115200 baud.

Especially with more complex sketches, the upload will take a significant amount of time at 115200 baud. It is likely that the board is capable of managing uploads at some speed higher than 115200 baud, so it is worth doing some experimentation to determine the maximum speed at which you can reliably upload to the board. You can do this by repeating the "Configure Upload Speed" procedure above, but selecting different speeds each time. Then attempting an upload to see if the new speed is appropriate.

1 Like