Home GADGETS How to install MicroPython for RISC-V on the Raspberry Pi Pico 2

How to install MicroPython for RISC-V on the Raspberry Pi Pico 2

How to install MicroPython for RISC-V on the Raspberry Pi Pico 2

The freshly released Raspberry Pi Pico 2 comes with two different CPUs onboard. A dual core Arm cortex M33 or a Dual Core RISC-V Hazard3, yes the first RISC-V product from Raspberry Pi! The latter CPU has a performance that falls somewhere between the older Raspberry Pi Pico’s dual core Arm Cortex M0+ and the new Arm Cortex M33. The RISC-V CPU was developed by Raspberry Pi employee Luke Wren as an interesting side project.

Swipe to scroll horizontally
Feature Raspberry Pi Pico 2 Raspberry Pi Pico
SoC RP2350, Dual Core Arm Cortex M33 or Dual Core RISC-V Hazard3 running at up to 150 Mhz RP2040, Dual Core Arm Cortex M0+ running at up to 133 MHz
SRAM 520 KB 264 KB
Flash Storage 4MB QSPI 2MB QSPI
Security Arm TrustZone, 8KB OTP, Secure Boot None
Wi-Fi / Bluetooth None None (Pico W has this)
Language Support MicroPython, CircuitPython, C, C++ MicroPython, CircuitPython, C, C++
USB Interface USB 1.1 Device and Host USB 1.1 Device and Host
GPIO Logic Level 3.3V 3.3V
GPIO 26 x Digital IO 26 x Digital IO
4 x 12-bit ADC (Analog pins) 3 x 12-bit ADC (Analog pins)
2 x UART, 2 x I2C, 2 x SPI, 24 x PWM 2 x UART, 2 x I2C, 2 x SPI, 16 x PWM
Programmable IO 12 PIO State Machines 8 PIO State Machines
Onboard LED GPIO 25 GPIO 25
Power 1.8 to 5.5V via Micro USB or VSYS 1.8 to 5.5V via Micro USB or VSYS
MCU Sleep Mode <10uA 100uA
Dimensions 21 x 51mm 21 x 51mm
Price $5 $4

Right now there are two ways to use this new CPU, via the C++ workflow, and using a preview of the latest MicroPython firmware. We’re going to use the latest MicroPython firmware for RISC-V to show that it is as easy as the version of MicroPython used for the Arm CPU.

Source link