The Joy Robot
Home | Content | Services | About
Search Eng Light

TJR-News News, Microcontrollers 2024-08-08

Raspberry Pi launches the RP2350 and the Pico 2: a microcontroller with Arm Cortex-M33 and RISC-V cores

Three and a half years after the RP2040, the microcontroller that powered the Raspberry Pi Pico and hundreds of boards from other makers, Raspberry Pi introduced its successor this Thursday, August 8: the RP2350. Along with it comes the Raspberry Pi Pico 2, which keeps the form factor and electrical compatibility of the original Pico, and costs just 5 dollars.



The Pico 2 and the new RP2350 microcontroller. Illustration: The Joy Robot.



More power on every front

  • Two Arm Cortex-M33 cores at 150 MHz, with a floating-point unit and DSP extensions. The RP2040's Cortex-M0+ had no hardware floating point.
  • 520 KB of SRAM, split into ten banks that can be accessed simultaneously: almost double the RP2040.
  • The Pico 2 board includes 4 MB of flash memory, double the original Pico.
  • Three PIO blocks (12 state machines), compared with two on the RP2040.
  • A new HSTX peripheral for high-speed data output, for example to generate DVI video.
  • Two packages: QFN60 with 30 GPIOs (RP2350A) and QFN80 with 48 GPIOs (RP2350B), plus versions with 2 MB of built-in flash (RP2354).

The main differences between the RP2040 and the RP2350. Table: The Joy Robot.



The surprise: two RISC-V cores

The most unexpected new feature is that the RP2350 includes, in addition to the two Cortex-M33s, a pair of RISC-V Hazard3 cores, an open-hardware design created by Luke Wren, a Raspberry Pi engineer. At boot, the chip can use either the Arm cores or the RISC-V cores (not both at once). The boot ROM even detects which architecture the program was compiled for and restarts the chip in the right mode.

It's Raspberry Pi's first product with RISC-V, the open, license-free instruction set architecture that's gaining ground in the microcontroller world. With the C SDK 2.0, choosing the architecture is as simple as specifying the platform when configuring the project:



Terminal
# For the Arm Cortex-M33 cores
cmake -DPICO_BOARD=pico2 ..

# For the RISC-V Hazard3 cores
cmake -DPICO_BOARD=pico2 -DPICO_PLATFORM=rp2350-riscv ..

Security, at last

One of the criticisms of the RP2040 was that it offered no way to protect the code stored in flash memory. The RP2350 includes a full security architecture based on Arm TrustZone for Cortex-M, with signed boot (it only runs programs signed with a private key), 8 KB of one-time-programmable OTP memory to store keys, hardware SHA-256 acceleration and protections against fault injection attacks.

To show its confidence, Raspberry Pi commissioned external audits and is offering a 10,000-dollar bounty to the first person who manages to break the signed boot. In addition, this year's official DEF CON hacker conference badge uses an RP2350.



Price and availability

The Pico 2 is already on sale for 5 dollars. The standalone RP2350 chip will cost 0.80 dollars in high volumes and will be generally available before the end of the year. Several makers, such as Adafruit, Pimoroni, Seeed Studio and SparkFun, have already announced their own boards based on it.



Our take

The Pico 2 fixes exactly what the Pico was missing most: hardware floating point, more memory and security. For the same price as before, plus a dollar, we get a much more capable microcontroller, compatible with what we already had. For those of us who build microcontroller projects, the jump from 264 to 520 KB of RAM and the floating point open the door to tasks like audio processing or small machine learning models.

The RISC-V part seems like a brilliant move to us. Being able to try the same board and the same code with two different architectures is an excellent opportunity to learn how RISC-V works without buying special hardware. We have only one doubt left: the Pico 2 doesn't have a Wi-Fi version yet, and for many IoT projects that's essential.




The Joy Robot