Page 1 of 1
how tu unlock raspberry pi PICO?
Posted: Thu Aug 05, 2021 11:49 am
by wojtekizk
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?
Posted: Thu Aug 05, 2021 12:26 pm
by jimmo
wojtekizk wrote: ↑Thu Aug 05, 2021 11:49 am
and then PICO starts up with its loaded program.
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
Re: how tu unlock raspberry pi PICO?
Posted: Fri Aug 06, 2021 9:09 am
by pythoncoder
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