• no safe boot possible

    Comments & Feedback safe boot stuck
    21
    0 Votes
    21 Posts
    2k Views
    G
    @ferfersan6 Good intentions pave the way to hell and I had every intention to reply to this. I know this is WAY too late to reply this but may useful for any experiencing the same issues. If I remember correctly, I just held the pin high for as long as possible and went through the drudgery of reinstalling the proper firmware. Nothing sophisticated going on here! :)
  • Command for safe boot

    MicroPython safe boot micropython command
    3
    1 Votes
    3 Posts
    655 Views
    robert-hhR
    @alexpul But if it's only about not executing boot.py and main.py on boot, you can do similar with python scripts: from machine import reset def safe_boot.py() # create a special main.py and reset f= open("no_main.py", "w") f.write('''import os\nos.remove("no_main.py")\n''') f.close() reset() and then a specific boot.py, which checks for that special main.py: import machine import os try: f = open("no_main.py") f.close() machine.main("no_main.py") except OSError: # do the previous boot.py stuff here Or something similar in you regular boot.py and main.py, which just checks for the existence of a flag for bypassing.