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

By the end of this lesson you will be able to update the MicroPython firmware on a Pico, and know when and how to wipe it clean.
MicroPython is updated regularly with fixes and new features. You do not have to update all the time, but it is worth knowing how, and what to do if a Pico gets into a muddle.
Updating is exactly the same as installing. Download a newer UF2 file from your board’s page on micropython.org, put the Pico in BOOTSEL mode, and drag the file onto the drive. Or use Thonny’s installer and pick the newer version. If MicroPython is already running, machine.bootloader() gets you into BOOTSEL mode without the button.
Back up first. An update replaces MicroPython itself, and your own files such as main.py normally survive it. Do not rely on that: copy anything important to your computer before you update.
stateDiagram-v2
[*] --> Running: MicroPython running
Running --> Bootloader: machine.bootloader() or BOOTSEL
Bootloader --> Running: Copy a UF2 file
Bootloader --> Wiped: Copy a flash erase file
Wiped --> Bootloader: Hold BOOTSEL again
If you move from a Pico to a Pico W, or to a Pico 2, you are still just copying a different UF2 file. Always use the file that matches the board in your hand.
Sometimes a Pico gets properly stuck: a program that never stops, a damaged filesystem, or files you want gone. A full wipe erases the whole flash memory, firmware and files included. MicroPython’s documentation describes this as a factory reset: you follow Raspberry Pi’s instructions for resetting flash memory, then copy the MicroPython UF2 file to the board again.
Because a wipe erases everything, you will need to re-install MicroPython afterwards and copy your Python files back. Look in Raspberry Pi’s documentation for the flash reset instructions, and take care to use the file that matches your Pico generation.
Before you reach for a wipe, try the gentler fixes in Common Issues first.
Teachers: A wipe deletes every learner’s saved code on that board. If Picos are shared between classes, ask learners to copy their files to their own computer first, and label each board with its owner. A spare, already-flashed Pico is a handy swap while you sort a stuck one.
main.py, if you have one, to your computer. Then reinstall the same firmware and check the file is still on the Pico.Why: Reinstalling replaces the firmware, and a wipe removes the stuck program as well.
Why: New releases occasionally change behaviour, so pinning a version keeps a classroom project stable.
Quick quiz 1 of 3
How do you update MicroPython on a Pico?
Quick quiz 2 of 3
What does a full wipe remove?
Quick quiz 3 of 3
Why might you install an older version?
Comments