how tu unlock raspberry pi PICO?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
wojtekizk
Posts: 1
Joined: Thu Aug 05, 2021 11:43 am

how tu unlock raspberry pi PICO?

Post by wojtekizk » Thu Aug 05, 2021 11:49 am

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.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: how tu unlock raspberry pi PICO?

Post by jimmo » Thu Aug 05, 2021 12:26 pm

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

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: how tu unlock raspberry pi PICO?

Post by pythoncoder » Fri Aug 06, 2021 9:09 am

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.

Post Reply