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

Комментарии • 71

  • @itsmanlikehark3203
    @itsmanlikehark3203 10 месяцев назад +2

    i got this error 'esptool.py' is not recognized as an internal or external command,
    operable program or batch file.

    • @CodingScientist
      @CodingScientist  10 месяцев назад +1

      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

  • @cepniumut
    @cepniumut Год назад +2

    ı ron it code but dont work 'esptool.py' is not recognized as an internal or external command,
    operable program or batch file. helpppp

  • @danielp4682
    @danielp4682 Год назад +1

    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?

  • @sanramos4443
    @sanramos4443 2 года назад +4

    Hola, muchas gracias por su vídeo. Seguí las instrucciones y no funcionó. Hay que instalar algo previamente? Saludos!

  • @deepakdeepu4044
    @deepakdeepu4044 Год назад +1

    By pressing enter by holding boot button it shows nothing again the command prompt comes what did i do

  • @deepakdeepu4044
    @deepakdeepu4044 Год назад +3

    It says esp.py is not recogonized as an internal or external command operable program or batch file

    • @joeljames652
      @joeljames652 Год назад

      For me too.. how do we solve this ?

    • @Swoolo
      @Swoolo Год назад

      @@joeljames652 guys, try to use this :
      esptool --chip esp32 erase_flash
      it works for me

    • @RanaRao_Chandrachur
      @RanaRao_Chandrachur Год назад

      u have to assign the environmental system variables

    • @RanaRao_Chandrachur
      @RanaRao_Chandrachur Год назад

      @@joeljames652 u have to assign the environmental system variables

  • @josephdaquila2479
    @josephdaquila2479 9 месяцев назад +1

    Should I have the esp32py tool if I am working in the Arduino IDE?

    • @CodingScientist
      @CodingScientist  9 месяцев назад +2

      Yes correct

    • @josephdaquila2479
      @josephdaquila2479 9 месяцев назад +1

      ​@@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

  • @saniyadeshmukh6704
    @saniyadeshmukh6704 11 месяцев назад +1

    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.

    • @CodingScientist
      @CodingScientist  11 месяцев назад +2

      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.

    • @saniyadeshmukh6704
      @saniyadeshmukh6704 11 месяцев назад +2

      Thanking you for replying so fast. You saved my day.@@CodingScientist

    • @saniyadeshmukh6704
      @saniyadeshmukh6704 11 месяцев назад +1

      I tried to follow your advice. There was not anykind of boot log. So, I erased the flash. Updated python. Any other suggestions?@@CodingScientist

    • @CodingScientist
      @CodingScientist  11 месяцев назад +1

      @@saniyadeshmukh6704 you are good to go, try running some basic programs

  • @deety1964
    @deety1964 Год назад +2

    don't we need python installed for this?

  • @skhumbuzomokgawa1324
    @skhumbuzomokgawa1324 3 года назад +2

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

  • @No1BRC
    @No1BRC Год назад +1

    Has anyone an idea: I have two identical esp32 wroom boards but one is saying „xmc flash memory wasn’t detected“ while programming it.

  • @kitlinghou6848
    @kitlinghou6848 2 года назад +1

    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 ?

    • @kitlinghou6848
      @kitlinghou6848 2 года назад +1

      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

    • @vijaybala185
      @vijaybala185 2 года назад

      I'm Also Having a same MD5 Fatal Error, Is this Method worked or not

  • @swapniilkanwar8598
    @swapniilkanwar8598 3 года назад +1

    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?

    • @CodingScientist
      @CodingScientist  3 года назад

      You have to redo the firmware again if you want to use MicroPython

  • @caiomacambira3003
    @caiomacambira3003 2 года назад +1

    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)

    • @CodingScientist
      @CodingScientist  2 года назад +1

      pls check the command lines properly

    • @Dralsoft
      @Dralsoft 2 года назад

      close the serial monitor

  • @krinidevices5746
    @krinidevices5746 2 года назад +1

    after watch 10-15 videos..Got this perfect one

  • @awikwik6277
    @awikwik6277 Год назад +1

    thankyou sir for the information. god bless you

  • @theophilusmuronzereyi7002
    @theophilusmuronzereyi7002 Год назад +1

    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.

  • @dz2827
    @dz2827 3 месяца назад +1

    Thank you ❤

  • @virendraparihar6982
    @virendraparihar6982 2 года назад +1

    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 ?

    • @CodingScientist
      @CodingScientist  2 года назад +1

      You need to erace the memory and follow the steps to reinstall

  • @priyangshughosh9332
    @priyangshughosh9332 2 года назад +2

    Will this work with esp8266???

  • @Creepy_Chronicles-n4t
    @Creepy_Chronicles-n4t 2 года назад +1

    Can you please make a video for erasing flash memory of esp32 cam module ?

    • @CodingScientist
      @CodingScientist  2 года назад +2

      Its the same procedure as esp32

    • @Creepy_Chronicles-n4t
      @Creepy_Chronicles-n4t 2 года назад +1

      @@CodingScientist Thankyou 👍🏻

    • @inhindiclips1670
      @inhindiclips1670 2 года назад +1

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

    • @CodingScientist
      @CodingScientist  2 года назад +1

      @@inhindiclips1670 press the bootsel button and connect to usb and release the button

    • @saniyadeshmukh6704
      @saniyadeshmukh6704 11 месяцев назад

      I have RTS and IO0 buttons on esp32 cam, module. There is no boot button. Which one should I press while erasing flash memory?

  • @percepcao7160
    @percepcao7160 2 года назад

    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

    • @CodingScientist
      @CodingScientist  2 года назад +1

      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

    • @percepcao7160
      @percepcao7160 2 года назад +1

      ​@@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 =)

    • @CodingScientist
      @CodingScientist  2 года назад +1

      @@percepcao7160 you can connect a 10 uF electrolytic capacitor between the EN pin and GND pin. And try the method

  • @daulatram1396
    @daulatram1396 Год назад +1

    do u accept challenge? how to reprogram esp32 camera module by erasing memory

  • @masudrahaman7497
    @masudrahaman7497 2 года назад +1

    hi esp 8266 is not flashing with this code

    • @CodingScientist
      @CodingScientist  2 года назад +1

      Pls press hold bootsel button and plug into usb

  • @prakash52kar
    @prakash52kar 3 года назад +3

    OMG, it worked for me not with "esptool.py --chip esp32 erase_flash" but with "esptool --chip esp32 erase_flash"