• 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

Installing ESP32 in Arduino IDE

Q&A Forum › Category: ESP32 › Installing ESP32 in Arduino IDE
0 Vote Up Vote Down
simon weinfeld asked 4 months ago

Under “testing the installation”, step 3 states
3) Select the Port (if you don’t see the COM Port in your Arduino IDE, you need to install the ESP32 CP210x USB to UART Bridge VCP Drivers):
I downloaded a Zip file named – CP210x_Universal_Windows_Driver. but I don’t know where, or how to “install”

13 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 months ago

Hi.
You just need to unzip the file and then run the executable file (.exe)
Regards,
Sara

0 Vote Up Vote Down
simon weinfeld answered 4 months ago

I began attempting to load some programs into my new ESP32 but had some errors.
is there a way to clean up/erase any of programs on both my computer AND the board itself.
also, when I need to copy and paste a program/example, where and how do I do it?

0 Vote Up Vote Down
Sara Santos Staff answered 4 months ago

Hi,
What errors did you get?
You can simply upload an empty program to your board or you can run a command to erase flash. See this:https://rntlab.com/question/how-perform-reset-factory-esp32/
I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
simon weinfeld answered 4 months ago

I tried copying and pasting a 5 Kb (about 170 lines of code) file, and attempted to compile and load, but the following is the error message i got –
 
Sketch uses 646402 bytes (49%) of program storage space. Maximum is 1310720 bytes.
Global variables use 38340 bytes (11%) of dynamic memory, leaving 289340 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.0-dev
Serial port COM3
Connecting…….._____….._____….._____….._____….._____….._____….._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
I wonder if I have a corrupted memory in my ESP32 board. If I need to reset it I need more detailed help from you please

0 Vote Up Vote Down
simon weinfeld answered 4 months ago

Here is another error message
C:\Users\simon\AppData\Local\Temp\arduino-sketch-0B1934080D53D2F8D474B974F6359D94\core\core.a(main.cpp.o):(.literal._Z8loopTaskPv+0x8): undefined reference to `setup()’
C:\Users\simon\AppData\Local\Temp\arduino-sketch-0B1934080D53D2F8D474B974F6359D94\core\core.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to `loop()’
C:\Users\simon\AppData\Local\Temp\arduino-sketch-0B1934080D53D2F8D474B974F6359D94\core\core.a(main.cpp.o): In function `loopTask(void*)’:
C:\Users\simon\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/main.cpp:18: undefined reference to `setup()’
C:\Users\simon\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/main.cpp:21: undefined reference to `loop()’
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
I don’t uderstand

0 Vote Up Vote Down
simon weinfeld answered 4 months ago

Even my WiFi test example, which worked earlier today, is giving me this error message –
Sketch uses 206902 bytes (15%) of program storage space. Maximum is 1310720 bytes.
Global variables use 13560 bytes (4%) of dynamic memory, leaving 314120 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.0-dev
Serial port COM3
Connecting…….._____….._____….._____….._____….._____….._____….._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
Failed uploading: uploading error: exit status 2

0 Vote Up Vote Down
Sara Santos Staff answered 4 months ago

Are you pressing the BOOT button when you start seeing the dots?
Do you have any peripherals connected to your board? In which GPIOs?
Regards,
Sara

0 Vote Up Vote Down
simon weinfeld answered 4 months ago

It seems to me that I now have a corrupted board. Can you give me a simple (if possible) way to reset the ESP32 board to its original state like it was when I got it just 2 days ago. I am very new to this and it’s frustrating

0 Vote Up Vote Down
Sara Santos Staff answered 4 months ago

Hi.
What indicates that the board might be corrupted?
Take a look at this: https://rntlab.com/question/how-perform-reset-factory-esp32/
Regards
Sara

0 Vote Up Vote Down
Mike Maree answered 3 months ago

Hi there
Having the same problem as described above. Have downloaded the CP210x Universal Windows Driver. There is no exe file. tried the others: CP210x Windows Drivers and CP210x Windows Drivers with Serial Enumerator. these run, but makes no difference. Purchased a new cable. no different, rebooted, no difference. Running windows 11.

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi.
What is the board that you have? Can you share a link to your board?
Regards,
Sara

0 Vote Up Vote Down
Mike Maree answered 3 months ago

Thanks for coming back to me. Turns out that i had a faulty esp32. replaced it and all worked fine.

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Great.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
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

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

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

Copyright © 2013-2023 · 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.