> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Raspberry Pi

> Find Raspberry Pi computers, Compute Modules, Pico boards, and RP2 MCUs in the catalog, and set up flashing, serial output, and debugging for Pico firmware.

Select your Raspberry Pi computer, Compute Module, Pico board, or RP2 MCU during project setup. In chat, say whether you're working on a Linux application or microcontroller firmware, and include the operating system or SDK version and the way you connect to the target.

There are no Raspberry Pi board skills, so attach your board's pinout or schematic for questions about board wiring.

> [!NOTE]
>
> Check the project setup picker for current availability. Flashing and debugging depend on the tools and connections supported by your board.

## Build, flash, and debug Pico and RP2 firmware

1. Install the SDK and tools your project uses, such as the Pico SDK and `picotool`. Inlay runs them but doesn't supply them.
2. Run `/init` so Inlay records your build and flash commands, such as `picotool load`, in [INLAY.md](/docs/core-concepts/inlay-md.md). Check the commands and the serial port before the first flash.
3. Ask Inlay to flash. It runs the recorded command and can capture the board's output from the serial port you name. See [Flashing firmware](/docs/debug-mode/flashing.md).
4. To follow the output while the firmware runs, see [UART](/docs/debug-mode/uart.md).

* **Debug:** GDB debugging goes through [OpenOCD](/docs/debug-mode/openocd.md) or [SEGGER J-Link](/docs/debug-mode/jlink.md). For a CMSIS-DAP probe, such as the Raspberry Pi Debug Probe, set `Debug Interface = cmsis-dap` in INLAY.md and check that OpenOCD supports your exact device. See [How Inlay picks a debugger](/docs/debug-mode/gdb.md#how-inlay-picks-a-debugger).
* **USB CDC:** for USB CDC with the Pico SDK or TinyUSB on RP2040 or RP2350, run the `usb-cdc-tinyusb` skill from the `/` menu.

## Catalog platforms

| Family | Platforms |
| - | - |
| Compute Module | `Compute Module 1`, `Compute Module 3`, `Compute Module 3+`, `Compute Module 4`, `Compute Module 4S`, `Compute Module 5` |
| Pico and RP2 | `Raspberry Pi Pico`, `Raspberry Pi Pico 2`, `Raspberry Pi Pico 2 W`, `Raspberry Pi Pico H`, `Raspberry Pi Pico W`, `Raspberry Pi Pico WH`, `RP2040`, `RP2350A`, `RP2350B`, `RP2354A`, `RP2354B` |
| Raspberry Pi computers | `Raspberry Pi 2 Model B`, `Raspberry Pi 3 Model A+`, `Raspberry Pi 3 Model B`, `Raspberry Pi 3 Model B+`, `Raspberry Pi 4 Model B`, `Raspberry Pi 400`, `Raspberry Pi 5`, `Raspberry Pi 500`, `Raspberry Pi Model A+`, `Raspberry Pi Model B+` |
| Zero | `Raspberry Pi Zero`, `Raspberry Pi Zero 2 W`, `Raspberry Pi Zero W` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.