Comments on: ESP8266 NodeMCU: Erase Flash Memory (Factory Reset) https://randomnerdtutorials.com/esp8266-nodemcu-erase-flash-memory/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sat, 28 Jun 2025 19:23:11 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: mine https://randomnerdtutorials.com/esp8266-nodemcu-erase-flash-memory/#comment-1062013 Sat, 28 Jun 2025 19:23:11 +0000 https://randomnerdtutorials.com/?p=126858#comment-1062013 In reply to Fritigern.

upgrade pip prob its not installed

]]>
By: Ambrosius https://randomnerdtutorials.com/esp8266-nodemcu-erase-flash-memory/#comment-935180 Mon, 08 Jul 2024 04:38:36 +0000 https://randomnerdtutorials.com/?p=126858#comment-935180 In reply to Gabriel.

same case with me
Let’s wait for @rui santos’ answer

]]>
By: Ron https://randomnerdtutorials.com/esp8266-nodemcu-erase-flash-memory/#comment-934959 Sun, 07 Jul 2024 07:18:10 +0000 https://randomnerdtutorials.com/?p=126858#comment-934959 In reply to Gabriel.

Have the same issue with a Wemos D1R2

]]>
By: Arya https://randomnerdtutorials.com/esp8266-nodemcu-erase-flash-memory/#comment-915474 Wed, 15 May 2024 03:32:32 +0000 https://randomnerdtutorials.com/?p=126858#comment-915474 In reply to Madhu Chandra.

Go to Device Manager and then Right Click the option ending with (COM3) listed under
Ports (COM & LPT) while your esp8266/esp32 is connected with your PC. Then in the dialog box select properties. Then in the Properties menu tab click Port Settings then click on Advanced… then in the Advanced Setting tab Select your desired COM which you want to set it to under COM Port number . After setting your desired COM Port number click ok to exit the Advanced Setting tab and then click ok to exit the Properties tab .Then exit the Device Manager.

And with this you will be able to change your COM3 to your desired COM port number.

]]>
By: Gabriel https://randomnerdtutorials.com/esp8266-nodemcu-erase-flash-memory/#comment-898659 Sat, 16 Mar 2024 02:09:50 +0000 https://randomnerdtutorials.com/?p=126858#comment-898659 Hi,

Thanks for all those amazing tutorials. I would like to perform this flash in a Wemos D1 ESP8266. This board only has a RESET button, so how can I put it in flash mode?

Regards,
Gabriel

]]>
By: Madhu Chandra https://randomnerdtutorials.com/esp8266-nodemcu-erase-flash-memory/#comment-882145 Fri, 05 Jan 2024 12:43:44 +0000 https://randomnerdtutorials.com/?p=126858#comment-882145 By default it is taking as COM3. May I please know how do I change it?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-erase-flash-memory/#comment-881539 Tue, 02 Jan 2024 10:14:01 +0000 https://randomnerdtutorials.com/?p=126858#comment-881539 In reply to ChristianS.

Hi.
Try to keep pressing the BOOT and reset button several times while you try to run the command to run the command to erase flash, so that you can catch it on boot mode.
Regards,
Sara

]]>
By: ChristianS https://randomnerdtutorials.com/esp8266-nodemcu-erase-flash-memory/#comment-881161 Sun, 31 Dec 2023 14:28:20 +0000 https://randomnerdtutorials.com/?p=126858#comment-881161 After a program mistake, I blocked serial – so no chance to write again
Any tips are welcome

]]>
By: Fritigern https://randomnerdtutorials.com/esp8266-nodemcu-erase-flash-memory/#comment-862858 Thu, 28 Sep 2023 10:16:41 +0000 https://randomnerdtutorials.com/?p=126858#comment-862858 Following my first post:
This is only a problem for folk who use “The Most Advanced Operating System in the World”.
The pip command is unknown if a Mac owner goes through the palaver of navigating terminal into the Python directory and running the commands from in there.
For the poorer 99% of us using (the superseded) Windows10 OS, the instructions on this page work wonderfully and my Flash memory was deleted in a flash.

]]>
By: Fritigern https://randomnerdtutorials.com/esp8266-nodemcu-erase-flash-memory/#comment-862849 Thu, 28 Sep 2023 09:28:20 +0000 https://randomnerdtutorials.com/?p=126858#comment-862849 sadly all of the python commands did nothing other than produce an “Invalid syntax” warning in Terminal like this

pip install esptool
File “”, line 1
pip install esptool
^^^^^^^
SyntaxError: invalid syntax
This is on an iMac running OS 12.6.7.
So I am all at sea unable to to clear the flash memory in case it is that that is stopping the ESP8266 from connecting to wifi.

]]>