ESP32 Factory Reset -Erase Flash using EspTool

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello all in this video we'll see how to factory reset that is erase the flash memory of esp32 or ESP 8266 node MCU using ESP tools under uh uh CMD of Windows machine my model is esp32 and it is running micropython and from within T ID I'm just clicking on the red button to stop the execution of the program I'm just going to install python latest version mine is Windows machine so I'm downloading the python latest version which is 3.1 2.2 at the time of making this video downloading the latest version and then clicking on the uh setup uh uh installation the python is being installed after some time you can see the setup is uh successful close this window and then open the python you can see the black window and with three CHS now if you type in uh python space uh version that is iph iPhone version now you can see error so you cannot operate from within the python window you have to open the command prompt so close the python window we'll be operating all the commands from within the command prompt of uh windows from within command prompt uh you type in Python space hyphen iph version you should see the version of the Python but I'm getting python is not recognized so the path of the installation python installation is not recognized by the windows so it to do some modifications so go to C users and then your name of the PC and then uh app data if you do not see the app data click on view and then show hidden files you can see the app data now click on app data folder and from within the app data select the local within local that is app data local you can see the programs folder select that programs folder within that programs folder you can see Python and within python you can see your installation that is python 312 select that folder now from the top of the uh screen that uh folder screen right click and then copy the address path so this address path you have to feed into the environment variable setting and search for system environment variables and click on edit the system environment variables and uh uh click the Advan setting that is the bottom uh select environment variables and in the next screen at the bottom you can see the system variables path uh click on that path and then click edit you can see a new window uh in that window click on new button and then right click and paste or you can uh use control+ V to paste the path and at the final uh place you add a black back slash and then click outside it will come outside and again click on New Again paste the path and at the last you click on uh the edit and then add back slash and then Scripts capital S C Small c r a pts and then finally close it with again a back slash and click outside so you should be careful while typing in back slash scripts the first letter should s should be capital and finally use a back slash to close and then click outside and click okay and finally click okay now close the CMD window and then open it again now type in uh python space hyphen iPhone version you should see the version which is the latest one we have installed now now you're uh ready to go let us use the ESP tools command to erase the flash now use uh this command python space iPhone M and then pip that is a pip tool we are using and install ESP tool it'll take some time to install the ESB tool so pip is the package manager we are using from within the python to install the es tool after some time you can see the ESP tool has been uh installed now use this command again that is to install the setup tools pip space install setup tools this will install all other dependencies for required for the ESP tools so this command is also very important after using ESP tool you are to install the setup tools also now open the ESP tool using this command python space ionm and then space ESP tool if you see this type of commands then it means ESP tool has been installed now let us use the uh command this command to are is The Flash python space m space iph m ESP tool space iph iph chip and then the chip name that is esp32 and space and then erase uncore flash so be careful in typing in this command the name is very important but Port you need not mention it will take automatically now the uh eras will start and you after seeing the while seeing the dots erasing you have to press in the boot Button press and hold the boot Button till you after some time you can release it now the flash has been erased onto esp32 the same method can be used for node MCU esp8266 connect the node MCU to your PC and you can use the same uh command inside the CMD but change the name from esp32 to esp8266 the command is same to eras Flash uh while erasing you have to click on the boot Button press and hold the boot Button to uh enable the array thank you for watching
Info
Channel: Saravanan AL
Views: 3,614
Rating: undefined out of 5
Keywords:
Id: 7ugtlgoP9Ws
Channel Id: undefined
Length: 6min 44sec (404 seconds)
Published: Sat Mar 16 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.