• 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

Re flash esp 32

Q&A Forum › Category: ESP32 › Re flash esp 32
0 Vote Up Vote Down
James Guthrie asked 4 years ago

I recently purchased several LOLIN esp 32 boards that came loaded with micro python but I want to use them with the Arduino IDE . Can some one let me know how to erase the python and set them up to use the Arduino IDE.

6 Answers
0 Vote Up Vote Down
vincent answered 4 years ago

Hello
the Arduino IDE is on your Computer and not on the LOLIN esp32 the code is compiled and uploaded to you ESP32. THis is what i did understand, hope i am not to wrong with this.
You will have to be sure to use the  CH340 driver too but this my change
have a nice day
vinc

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

Hi.
Usually, you just need to upload an Arduino sketch.
You can also try to erase the flash and then upload a new code.
Here are the instructions: https://rntlab.com/question/how-perform-reset-factory-esp32/
Scroll down on that discussion to find the instructions for the ESP32.
Regards,
Sara
 
 

0 Vote Up Vote Down
James Guthrie answered 4 years ago

I tried the erase flash reference and it failed to open the board as well 
I tried it with a new board and got this message
“permissions error(13, ‘access denied.’, None, 5)
the original failure from the Arduino IDE was
invalid head of packet 0x08
any ideas?
Thanks Jim

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

Hi.
 
Permission error usually means that the board is being used in another program.
Ensure you close all programs that might use the board (Arduino IDE) when trying to erase the flash.
 
When you try to upload code to the Arduino IDE, do you see many dots on the debugging window before the “invalid packet header” error? If that’s the case, you need to press the on-board BOOT button when you start seeing the dots.
If your board doesn’t have a BOOT button, you need to connect GPIO 0 to GND while uploading code to that board.
 
Additionally, make sure that the problem is not related to your USB cable. Check if the cable has data wires. Cables that just provide power won’t work.
 
I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
James Guthrie answered 4 years ago

I was able to get the board to erase ,by “bouncing” the reset button (no boot) I am not sure what the actual technique is but eventually it did work and I was able to up load an arduino sketch but only once then I had to re erase again. This works for what I am doing but is a real pain I will try closing the IDE and see if it will at least erase easily, gnd the 0 pin. The fact that I only get one upload makes me think that there is some kind of security on the chip.
I am going to show this as resolved and try these other techniques.
Thanks
Jim

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

Hi Jim.
Yes, it must be something related to the board.
Unfortunately, I never experimented with one of those models to share my experience. But that’s not how an ESP32 is supposed to work.
I’ll mark this 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

  • [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.