Boot.py crashes. Can I get back the REPL? #17005
Replies: 7 comments 2 replies
-
Which board do you use? For ESP32/ESP8266 there is a erase_flash option of esptool.py. For RPi Pico there is a flash_nuke.uf2 firmware which erases the flash. https://datasheets.raspberrypi.com/soft/flash_nuke.uf2 |
Beta Was this translation helpful? Give feedback.
-
I am on ESP32-S3 but I would like to be able to keep all of the files.
(Other than the boot.py file)
|
Beta Was this translation helpful? Give feedback.
-
There is the mp-image-tool https://github.com/glenn20/mp-image-tool-esp32 which allows direct manipulation of the partitions. AFAIK, it allows to remove files from a partition. Maybe it works in your case. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestion but the program in the boot.py file crashes the device before it has a chance to let the mp-image-tool to work. |
Beta Was this translation helpful? Give feedback.
-
One option is still to create a firmware which does not run boot.py. That happens in line 144 of ports/esp32/main.c. The easiest change is to replace "boot.py" with the name of a non-existing file. |
Beta Was this translation helpful? Give feedback.
-
I tried flashing a new firmware to it but afterwards it says that the flash is corrupted and that I should make a flash snapshot to try to recover it. Do you know how I would do that? |
Beta Was this translation helpful? Give feedback.
-
Ok. I just had some files that I would have preferred not to have lost on there. Fortunately I think I have a (not too recent) backup. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I accidentally named a file that crashes the device to be
boot.py
so now I cannot access the REPL to delete the file. I have some important files on it so I don’t want to just reflash the firmware. Is there a way to delete just theboot.py
file or get all the files off of the device?Beta Was this translation helpful? Give feedback.
All reactions