This is the documentation for the latest development branch of MicroPython and may refer to features that are not available in released versions.

If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.

Factory reset

If something unexpected happens and your RP2xxx-based board no longer boots MicroPython, then you may have to factory reset it. For more details, see Soft Bricking (failure to boot).

Factory resetting the MicroPython rp2 port involves fully erasing the flash and resetting the flash memory, so you will need to re-flash the MicroPython firmware afterwards and copy any Python files to the filesystem again.

  1. Follow the instructions on the Raspberry Pi website for resetting flash memory.

  2. Copy the MicroPython .uf2 firmware file to your board. If needed, this file can be found on the MicroPython downloads page.