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