Page 1 of 1

How do I reset my main.py file?

Posted: Wed Jul 08, 2020 5:37 pm
by ozigzagor
I kinda messed up the code in my board and now it won't connect to the REPL. I need to fix this. Do you guys have any suggestions?

I detached the REPL from UART0, which was sort of an apparent (but hopefully recoverable) suicide for my D1 Mini.

Re: How do I reset my main.py file?

Posted: Wed Jul 08, 2020 8:01 pm
by Roberthh
You can always erase the flash with esptool.py and have a fresh new start.

Re: How do I reset my main.py file?

Posted: Thu Jul 09, 2020 2:55 am
by rpr
Can you copy an empty main.py via rshell? Then power cycle.

Re: How do I reset my main.py file?

Posted: Thu Jul 09, 2020 9:36 am
by ozigzagor
Roberthh wrote:
Wed Jul 08, 2020 8:01 pm
You can always erase the flash with esptool.py and have a fresh new start.
Thank you very much, this worked! Here, have a ❤️ for my appreciation.
rpr wrote:
Thu Jul 09, 2020 2:55 am
Can you copy an empty main.py via rshell? Then power cycle.
Thanks for the reply. Didn't try it as Robert's solution already worked.