By Kevin McAleer, 4 Minutes
Page last updated November 24, 2026

By the end of this lesson you will be able to install MicroPython on a Pico by copying a UF2 file onto it, without any special software.
Thonny’s installer is lovely, but it hides what is really happening. The truth is much simpler: the Pico pretends to be a USB memory stick, and installing firmware is just copying one file onto it. Once you know that, you can install MicroPython from any computer, even one without Thonny.
.uf2 file for the latest release. Remember where your browser saves it, often your Downloads folder.RPI-RP2 on a Pico or Pico W, RP2350 on a Pico 2 or Pico 2 W. Open it and you will see a couple of small files..uf2 file onto that drive.flowchart LR
A["UF2 file in<br>Downloads"] -->|drag and drop| B["Pico drive<br>RPI-RP2 or RP2350"]
B --> C["Pico copies the<br>firmware and restarts"]
C --> D["Drive disappears,<br>MicroPython runs"]
If MicroPython is already on your Pico, you do not need to reach for the button. Type this at the REPL and the board reboots into bootloader mode, ready for a new UF2 file:
import machine
machine.bootloader()
This is documented on every board’s download page at micropython.org.
The UF2 file contains instructions for one particular chip and board. The Pico’s bootloader is built into the chip and will copy whatever you give it, so it is up to you to pick the right one. If you pick the wrong file, the board may not start properly. It will not damage it. Put the Pico into BOOTSEL mode again and copy the correct file.
Teachers: Some school computers block writing to USB drives, and some Chromebooks cannot do this at all. Test one machine before the lesson. If drag and drop is blocked, learners can use the Thonny method on an unrestricted computer, or you can pre-install MicroPython on a batch of Picos.
RPI-RP2 or RP2350 drive before copying and read the two small files you find. What do you think they are for? (Hint: one is an HTML shortcut.)machine.bootloader() from the REPL to reboot into BOOTSEL mode, without touching the button. Then reinstall the firmware..uf2 and was not saved as .uf2.txt or opened as a text file by the browser. Re-download if you are not sure.Why: The Pico only accepts a genuine UF2 file.
Why: The Pico only looks at the button as it powers up.
Quick quiz 1 of 3
What does the Pico look like to your computer in BOOTSEL mode?
Quick quiz 2 of 3
What happens once the UF2 file has been copied?
Quick quiz 3 of 3
Which command reboots a Pico that already runs MicroPython into bootloader mode?
Comments