Skip to content
Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

MicroPython for RISC-V on Raspberry Pi Pico 2

Step 1: Prepare Your Setup

Ensure you have the following:

  • Raspberry Pi Pico 2 (RP2350 chip)
  • USB cable to connect the Pico to your computer
  • Computer with internet access (Linux, Windows, or macOS)
  • Thonny IDE or an alternative IDE supporting MicroPython

Step 2: Download the MicroPython UF2 File for RISC-V

  1. Visit the official MicroPython RISC-V download page.
  2. Find and download the MicroPython UF2 firmware for the Raspberry Pi Pico 2 with RISC-V architecture.

Step 3: Prepare the Raspberry Pi Pico 2 for Firmware Flashing

  1. Press and hold the BOOTSEL button on your Raspberry Pi Pico 2.
  2. While holding the button, plug the Pico into your computer using the USB cable. The Pico will appear as a mass storage device on your computer.
  3. Once it shows up, release the BOOTSEL button.

Step 4: Flash the MicroPython Firmware

  1. Drag and drop the previously downloaded MicroPython UF2 file onto the Raspberry Pi Pico 2 storage.
  2. The Pico will automatically reboot, and the MicroPython firmware will be installed.

Step 5: Set Up the IDE (Thonny)

  1. Download and install Thonny IDE if you haven’t already.
  2. Launch Thonny and go to Tools > Options > Interpreter.
  3. In the Interpreter menu, choose MicroPython (Raspberry Pi Pico).
  4. Select the appropriate Port (the one where your Raspberry Pi Pico 2 is connected).

Step 6: Start Coding with MicroPython

You can now start writing and executing MicroPython code on the Raspberry Pi Pico 2. Here’s a simple example:

python
from machine import Pin
import time

led = Pin(25, Pin.OUT)

while True:
led.toggle()
time.sleep(1)

This code will toggle the onboard LED every second.

Step 7: Explore More with Libraries and Modules

The Raspberry Pi Pico 2, equipped with the RP2350 chip, supports many MicroPython libraries and modules. Check out the MicroPython documentation to further explore its capabilities.

With these steps, you should be able to install and start using MicroPython for RISC-V on your Raspberry Pi Pico 2. Enjoy exploring MicroPython on this new architecture!