• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Failed uploading: uploading error: exit status 2

Q&A Forum › Category: ESP32 › Failed uploading: uploading error: exit status 2
0 Vote Up Vote Down
Fernando Inácio asked 2 years ago

In one first step, it was possible to verify and upload the WiFiScan example with success but it was not possible to receive the corresponding output pressing reset. Now it is not possible to upload any sketch receiving always the message referred to in the title. Using the boot button until “connecting” phase has no success too.

Question Tags: Failed uploading
7 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
What sketches are you trying to upload to your board?
Can you show the complete error?
Regards,
Sara

0 Vote Up Vote Down
Fernando Inácio answered 2 years ago

Sometimes it is difficult to understand the PCB behavior. First, it was not possible to set up any USB connection but by disconnecting the cable and waiting some time when reconnecting the system has recovered and it works. In my understanding, it is better to disconnect the USB cable between two sketches and wait a few minutes before repeating the procedure again.
The error is reported when connecting phase starts and the text is “Failed uploading: uploading error: exit status 2”.
 

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi again.
What version of the Arduino IDE are you using?
What board model are you using? Which board are you selecting in Tools > Board?
Regards,
Sara

0 Vote Up Vote Down
Ferdinando Dossena answered 2 years ago

Did you open any other connection, terminal type, on the same USB?
Bye
Ferdinando

0 Vote Up Vote Down
Fernando Inácio answered 2 years ago

It is not possible to have more than one connection point to point in USB.
What happened till now is sometimes the board ( DOIT ESP32 DEVKIT V1) does not accept sequential downloads and I am solving this situation by disconnecting and connecting again.

0 Vote Up Vote Down
Ferdinando Dossena answered 2 years ago

Hi,
I use VsCode with PlatformIO, and if I forget to close the terminal I can’t load the firmware.

Ferdinando

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
That’s weird.
I always use that board model and never had problems like that. Do you have any other board to experiment with? Maybe there’s something wrong with that one.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.