- Install VS Code.
- In VS Code, install the "MicroPico" extension.
- Download the MicroPython firmware from: https://micropython.org/download/RPI_PICO/RPI_PICO-latest.uf2
- Connect the RP2040-Zero to the computer. If a USB Drive doesn't appear, press: reset-down, boot-down, reset-up, boot-up.
- Open the USB Drive that appeared. Copy on the MicroPython uf2 file. Wait 30 seconds.
- Optional: Run
pip install micropython-rp2-rpi_pico-stubsto install Python type checking helpers.- This install the type hints required for the
import machinepackage.
- This install the type hints required for the
- Use Device Manager (or SerialTest) to see that a new USB Serial Device appeared.
- In VS Code with MicroPython, see that it's connected (see the status bar at the very bottom).
- If the status bar at the very bottom doesn't have a "Run" button, press Ctrl+Shift+P, and pick "MicroPico: Connect".
- Copy the
rp2040_zero_onboard_led_example.pyfile from this gist into a file. Name itmain.py. - Run the firmware in this repo by pressing "Run".
- Note that this is a one-time run, and is not a persistent "flashing" operation like a normal microcontroller.
- Use Ctrl+Shift+P -> "MicroPico: Upload project to Pico" to upload a project to the RP2040, such that it persists across reboots.
To reset the RP2040-Zero so that you can install a new program on it:
- Download the flash_nuke.uf2 file.
- Copy that file to the mounted USB Drive. Let it reboot.
- Copy the MicroPython firmware from steps above to the mounted USB Drive. Let it reboot.