When i try to upload code to the esp32 the following error shows up in the command line:

A fatal error occurred: Packet content transfer stopped (received 8 bytes).

I use platformio in VScode the platform.ini file looks like this:

    platform = espressif32
    board = esp-wrover-kit
    framework = arduino
    upload_port = COM4
    monitor_speed = 115200

Here's the code i'm trying to upload:

#include <Arduino.h>

void setup() {

void loop() {

It's an esp32-wrover-dev from freenove. When i unplug it and plug it back in it starts to write random stuff to the serial monitor, when i attempt an upload it stops but it also gives me the error above.


4 Answers 4


I was able to resolve this issue by detaching jumpers that i had connected to the GPIO 12/13 pins during upload.

After uploading they can be attached again. See this github issue: https://github.com/espressif/arduino-esp32/issues/2415

  • I was using GPIO 12 and detaching it worked for me.
    – user87445
    Commented Nov 7, 2022 at 19:11

I had this error when trying to upload a sketch from Arduino IDE to a TTGO T-Display, found that I could resolve this by changing the upload speed from the default of 921600 to 115200.

After doing that it uploaded just fine with no issues.


For anyone wondering, i found out it means that there's some kind of disconnect between the computer from which your uploading and the file system. Essentially, the esp32 is broken.

  • 1
    Reducing upload speed to 11520 worked for me.
    – spl
    Commented Feb 6 at 12:35
  • Definitely not necessarily. I've just removed the joystick (which is consuming power from the USB TTL thus ESP32) and then it worked fine. So remove external power consumers and the upload will succeed. Commented May 17 at 22:28

Hi all I found I got this error because my FTDI adapter was in 3.3V mode, not 5V as soon as I set it to 5V the issue was resolved and it programmed fine. One more thing to check before you scrap your ESP32.


  • 1
    so an est32 should be powered with 3.3 V. 5 V will damage it.
    – Juraj
    Commented May 18, 2023 at 13:21
  • Hi I was using the CAM module which has pins marked as 5V so maybe dont do that if powering the IC direct. Apparently it has less issues at 5V. Thanks. Commented May 21, 2023 at 12:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.