Remove MicroPython and restore original firmware

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
rushiloke7
Posts: 2
Joined: Tue Oct 30, 2018 5:08 pm

Remove MicroPython and restore original firmware

Post by rushiloke7 » Tue Oct 30, 2018 5:12 pm

How do I remove Micropython and restore the original firmware which came with the board out of the box?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Remove MicroPython and restore original firmware

Post by dhylands » Tue Oct 30, 2018 5:44 pm

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.

rushiloke7
Posts: 2
Joined: Tue Oct 30, 2018 5:08 pm

Re: Remove MicroPython and restore original firmware

Post by rushiloke7 » Sat Nov 03, 2018 9:33 pm

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.

loboris
Posts: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: Remove MicroPython and restore original firmware

Post by loboris » Sat Nov 03, 2018 11:23 pm

For such generic ESP32 questions I would recommend cunsulting the ESP32 documentation and the official Espressif forum.
You will find all the answers there.

Sigma086
Posts: 1
Joined: Wed Jan 20, 2021 4:12 pm

Re: Remove MicroPython and restore original firmware

Post by Sigma086 » Fri Jul 30, 2021 6:27 am

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)
Last edited by Sigma086 on Sat Jul 31, 2021 3:47 am, edited 1 time in total.

JennaSys
Posts: 33
Joined: Tue Jul 15, 2014 8:29 am
Location: Southern California, US
Contact:

Re: Remove MicroPython and restore original firmware

Post by JennaSys » Fri Jul 30, 2021 4:11 pm

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.
John Sheehan

Post Reply