Page 1 of 1

Remove MicroPython and restore original firmware

Posted: Tue Oct 30, 2018 5:12 pm
by rushiloke7
How do I remove Micropython and restore the original firmware which came with the board out of the box?

Re: Remove MicroPython and restore original firmware

Posted: Tue Oct 30, 2018 5:44 pm
by dhylands
Unless you saved a copy of the original firmware someplace, you'll need to find a copy online someplace, and install it according to the instructions for the original firmware.

Re: Remove MicroPython and restore original firmware

Posted: Sat Nov 03, 2018 9:33 pm
by rushiloke7
I searched online and I found this on the official website
https://www.espressif.com/en/products/h ... /resources
Under the AT section, there are many firmwares for the esp32. I downloaded the latest version for my WROOM-32.
When I extracted its content. I found multiple binary files. Eg: bootloader.bin, factory.bin.
My question is which file should I flash via esptools. Can you tell me how to flash it? Or point towards a guide which can help me restore the original firmware?
Thank You.

Re: Remove MicroPython and restore original firmware

Posted: Sat Nov 03, 2018 11:23 pm
by loboris
For such generic ESP32 questions I would recommend cunsulting the ESP32 documentation and the official Espressif forum.
You will find all the answers there.

Re: Remove MicroPython and restore original firmware

Posted: Fri Jul 30, 2021 6:27 am
by Sigma086
I was Stuck on the Same Issue.

HOW TO SOLVE IT(ESP32 and ESP8266) ->
1) go to https://www.espressif.com/en/support/download/at. (or google search ESP firmware)
2) Download the firmware of your choice.
3) The firmware is inside the downloaded folder.(with `.bin` ext)
4) Install it after uninstalling micropython.

```sh
esptool.py --port /dev/cu.<PORT> erase_flash
esptool.py --port /dev/cu.<PORT> --baud 460800 write_flash --flash_size=detect 0 <PATH>/<NAME>
```

HOPE THIS HELPS.. :) .
(Took me a lot to figure it out)

Re: Remove MicroPython and restore original firmware

Posted: Fri Jul 30, 2021 4:11 pm
by JennaSys
I just did this recently for an ESP8266. The original firmware is available from Espressif. It may require flashing several files, but if you are on Windows they have a desktop GUI tool that makes it easy. If you are on Linux or Mac then you'll need to use the esptool CLI and flash each region separately. I'm on Linux and the hardest part (after I located the right firmware version) was figuring out the starting address for each region. Their documentation wasn't always clear and/or up to date.