how tu unlock raspberry pi PICO?
how tu unlock raspberry pi PICO?
Hi ... I will unlock accidentally stuck raspberry pico after using machine.freq (250,000,000). Currently, the COM port is not visible. After loading the UF2 file, the COM port appears for a moment and then PICO starts up with its loaded program. The COM port is no longer visible.
Re: how tu unlock raspberry pi PICO?
Does your main.py set machine.freq(250000000) ?
You'll need to erase the entire flash of your Pico to reset the filesystem (and remove main.py)
The easiest way to do this is with the flash_nuke.uf2 firmware (just program this like any other firmware, and then you can put micropython back on). Direct link is https://www.raspberrypi.org/documentati ... h_nuke.uf2 but you see the details at the bottom of https://www.raspberrypi.org/documentati ... ifications
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: how tu unlock raspberry pi PICO?
As a general tip, if you use main.py to run a program it's a good idea to put in a delay. This gives you time to break in and interrupt it with ctrl-c if the code makes the machine unusable.
Code: Select all
# main.py
import time
time.sleep(4)
import my_program # Run the application
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.