• 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

How perform reset factory Esp32

Q&A Forum › Category: ESP32 › How perform reset factory Esp32
0 Vote Up Vote Down
Philippe Fourchtein asked 7 years ago

How perform reset factory Esp32 I try to solved by New program but when i download again esp easy same pb no wifi

13 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Hello Philippe,

What do you mean by factory reset? Do you want flash the AT firmware?

Every time you flash a new Arduino sketch, it automatically flashes a new firmware to your ESP32.

0 Vote Up Vote Down
Philippe Fourchtein answered 7 years ago

I flashed esp easy  then crashed wifi access after few day . Even when flashing other Program no problème but impossible to reset the wifi password if flash again esp easy that must be socker in non-volatile memories. So factory reset
thank for your help
 

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Hello Philippe,

I see. Those configs are stored in the flash memory. So, I recommend using the esptool: https://github.com/espressif/esptool

Basically, you need to send a similar command to erase the flash memory:

esptool.py --chip esp8266 p com7 erase_flash

You need to replace with your ESP8266 port.

I hope that helps,
Rui

0 Vote Up Vote Down
Philippe Fourchtein answered 7 years ago

Thank you i tried it this week 
Can i use chip esp32 in place of chip esp8266?
thank again for your help 

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Exactly (write esp32 for the ESP32 chip). You will need either Python 2.7 or Python 3.4 or newer installed on your system.

The latest stable esptool.py release can be installed from pypi via pip or you can download the repository on GitHub:

$ pip install esptool

Then, run:

esptool.py --chip esp32 p com7 erase_flash

With your ESP32 com port. It should work

0 Vote Up Vote Down
Philippe Fourchtein answered 7 years ago

Thank i send you result it il usfull for everybody 

0 Vote Up Vote Down
Philippe Fourchtein answered 7 years ago

It’s working great.
Under windows 
type esptool.py erase-flash is enough
 
 
Thank you my esp32 Work Well

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Thanks for letting me know. I’m glad it worked!

0 Vote Up Vote Down
NUR AZLIN AIRUL AZLIN MOHAMED ZOHDI answered 4 years ago

I am getting fatal error occurred: failed to connect to esp32: timed out waiting for packet header.
i’ve run the command below:

py -3.9 -m –chip esp32 –port COM7 erase_flash

nothing seems to work. cannot upload new firmware as well from adruino ide.
 
 

0 Vote Up Vote Down
Steve Mercer answered 4 years ago

Have you checked the esp32 troubleshooting guide?

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

Hello Nur,

Did you hold the BOOT button for force your board into flashing mode?

This guide might help: [SOLVED] Failed to connect to ESP32: Timed out waiting for packet header

  • https://randomnerdtutorials.com/solved-failed-to-connect-to-esp32-timed-out-waiting-for-packet-header/
0 Vote Up Vote Down
NUR AZLIN AIRUL AZLIN MOHAMED ZOHDI answered 4 years ago

Hi Rui,
Somehow I got >>>>>rst:0x1 (RTCWDT_RTC_RESET), BOOT:0X13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
…on the serial monitor.  This video solved my problem.

0 Vote Up Vote Down
Evan Suits answered 3 years ago

Wow!  Great Stuff …!!!
I thought I had cooked an ESP32.  I was puzzled by the popular belief that the ESP32 EEPROM access from Arduino/platformio/VSCode is limited to 512 bytes.  This seemed highly restrictive given the claimed 4MB of flash.
I began experimenting with various settings for EEPROM_SIZE in the EEPROM.begin( ) call.  Everything worked fine up to and including 4096, but when I went to 8192, I got all sorts of ugly error messages and the errors continued even as I backed off the EEPROM_SIZE.
I thought maybe I’d cooked the ESP32, but Rui’s procedure appears to have restored it.  That being the case, I’m going start tweaking the rumored ‘partitions’ to see if I can get more SRAM to play with.
Thanks, Rui!
 

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.