Lesson 7 Erasing ESP32 Flash Memory
HTML-код
- Опубликовано: 14 окт 2024
- In this lesson I will show you how to erase the flash memory inside ESP32. Before flashing the MicroPython firmware, you need to erase the ESP32 flash memory. So, with your ESP32 connected to your computer, hold-down the “BOOT/FLASH” button in your ESP32 board:
While holding down the “BOOT/FLASH” button, run the following command to erase the ESP32 flash memory:
esptool.py --chip esp32 erase_flash
When the “Erasing” process begins, you can release the “BOOT/FLASH” button. After a few seconds, the ESP32 flash memory will be erased.
Project Source Codes : github.com/Anb...
Contact us for more projects: info@codingscientist.com
WhatsApp Support: +91-99725-77735
About us: www.codingscie...
Hackster Community: www.hackster.i...
LinkedIn: / codingscientist
Facebook: / coding.scientist
Twitter: / robo_thoughts
i got this error 'esptool.py' is not recognized as an internal or external command,
operable program or batch file.
Try installing esptool using pip command on Windows. Then use only "esptool" instead of "esptool.py" if you still see error then open Windows CMD and type the command - py -m esptool --help
ı ron it code but dont work 'esptool.py' is not recognized as an internal or external command,
operable program or batch file. helpppp
i get the same bramble
On my esp32 and all others that I have seen , the boot button is on right side whereas your buttons are backwards… is it a special version?
Hola, muchas gracias por su vídeo. Seguí las instrucciones y no funcionó. Hay que instalar algo previamente? Saludos!
By pressing enter by holding boot button it shows nothing again the command prompt comes what did i do
It says esp.py is not recogonized as an internal or external command operable program or batch file
For me too.. how do we solve this ?
@@joeljames652 guys, try to use this :
esptool --chip esp32 erase_flash
it works for me
u have to assign the environmental system variables
@@joeljames652 u have to assign the environmental system variables
Should I have the esp32py tool if I am working in the Arduino IDE?
Yes correct
@@CodingScientistThank you CodingScientist for the confirmation.
I guess I'll have to try to find the directory where it exists.
I tried to describe the command you outlined as well as the command with "python " appended to the front of that command
I'm getting the below error. Ctrl+C didn't work. restarting also didn't work. Can you tell about the bootloader mode specific for esp32 Cam module and mention names of Buttons to use for boot process.
Device is busy or does not respond. Your options:
- wait until it completes current work;
- use Ctrl+C to interrupt current work;
- reset the device and try again;
- check connection properties;
- make sure the device has suitable MicroPython / CircuitPython / firmware;
- make sure the device is not in bootloader mode.
Looks like the internal processor is in hung mode, Try connecting to the ESP32-CAM with any serial terminal program (e.g. the Arduino terminal, or python -m serial. tools. miniterm 115200) and press the reset button. See if any data (boot log) comes out. If still its in hung state then you may want to erase the memory via Esptool.py to erase the Flash chip. Some Python installations that command may not work and you'll receive an error, in that case update the Python installation once again and try. I also suspect voltage fluctuation, Check the voltages at each pin with a multimeter, “high” pins should be close to 3.3V and “low” pins should be close to 0V. If you have connected other devices to GPIO pins, try removing them and see if esptool starts working.
Thanking you for replying so fast. You saved my day.@@CodingScientist
I tried to follow your advice. There was not anykind of boot log. So, I erased the flash. Updated python. Any other suggestions?@@CodingScientist
@@saniyadeshmukh6704 you are good to go, try running some basic programs
don't we need python installed for this?
hi am having this error "C:\Users\Tronic>esptool.py --chip esp32 erase_flash
'esptool.py' is not recognized as an internal or external command,
operable program or batch file."
You have install: pip install esptool
Has anyone an idea: I have two identical esp32 wroom boards but one is saying „xmc flash memory wasn’t detected“ while programming it.
Pls use esp tool to flash
I tried to execute your cmd above but it shows "WARNING: Failed to communicate with the flash chip, read/write operations will fail.", may i know what wrong in my esp32 chip ?
Due to my esp32 cannot upload the coding with error "A fatal error occurred: MD5 of file does not match data in flash", so i tried to reset the flash using your cmd above
I'm Also Having a same MD5 Fatal Error, Is this Method worked or not
Will the bootloader also get erased after erasing flash? I am asking this that people say say to erase flash if u are going to use micropython. What if I want to use Arduino IDE only?
You have to redo the firmware again if you want to use MicroPython
I bought a new esp32 and I'm not able to erase.It is configured on COM5 port and show this message:
COM5 failed to connect: could not open port 'COM5': PermissionError(13, 'Acesso negado.', None, 5)
pls check the command lines properly
close the serial monitor
after watch 10-15 videos..Got this perfect one
thankyou sir for the information. god bless you
Hello l am facing this error can you please help me
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Pls check the wiring between FTDI and ESP
Thank you ❤
I want to reinstall programming in my this esp32 cam from new point bcz some features r not working so what I need to do ?
You need to erace the memory and follow the steps to reinstall
Will this work with esp8266???
Yes it will
Thank you sir
Sir it is showing 'esptool' is not recognized as an internal or external command , operable program or batch file.
What to do ???
@@priyangshughosh9332 for esp8266 its a different method to do it
Can you please make a video for erasing flash memory of esp32 cam module ?
Its the same procedure as esp32
@@CodingScientist Thankyou 👍🏻
@@CodingScientist I received this error : A fatal error occurred: Could not connect to an Espressif device on any of the 1 available serial ports.
could you please help me
@@inhindiclips1670 press the bootsel button and connect to usb and release the button
I have RTS and IO0 buttons on esp32 cam, module. There is no boot button. Which one should I press while erasing flash memory?
sir, how can i undo this? now my esp32 isnt compiing codes. Now i need to press the BOOT button to the arduino IDE compile my code to esp32. Please help me to undo this erase
First press and hold the boot button and connect to USB till u hear that cling sound. After that open the cmd terminal on windows to run the command I showed
@@CodingScientist I tried but still showing this error: "A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
".
How can i put back the config that exists before the erase? help =)
@@percepcao7160 you can connect a 10 uF electrolytic capacitor between the EN pin and GND pin. And try the method
do u accept challenge? how to reprogram esp32 camera module by erasing memory
Will make a video and show soon
@@CodingScientist Thik mei wait karunga
@@CodingScientist i think this impossible
hi esp 8266 is not flashing with this code
Pls press hold bootsel button and plug into usb
OMG, it worked for me not with "esptool.py --chip esp32 erase_flash" but with "esptool --chip esp32 erase_flash"