Ports
A port is the C code that sits under the VM for one chip family: startup, memory map, USB or UART, and the machine bindings. A board is a pinout and a set of compile flags inside that port.
Official ports
| Port | Chips | Notes |
|---|---|---|
| rp2 | RP2040, RP2350 | Pico, Pico W, Pico 2. UF2. Strong machine. |
| esp32 | ESP32, S2, S3, C2, C3, C5, C6, H2, P4 | Wi-Fi / BLE (BLE only on the H2). IDF based. |
| esp8266 | ESP8266 | Small heap. Tier 3. |
| stm32 | STM32 F0, F4, F7, G0, G4, H5, H7, L0, L1, L4, N6, U5, WB, WL | pyboard origin. USB CDC. machine.CAN from 1.28. |
| samd | SAMD21 / SAMD51 | Many Adafruit-shaped boards. |
| nrf | nRF51 / nRF52 / nRF91 | micro:bit, BLE-heavy boards. |
| mimxrt | i.MX RT | Teensy 4 class, lots of RAM. |
| unix / windows / webassembly | Host OS / WASM | No GPIO. Language + stdlib + embed. |
| alif, psoc-edge, renesas-ra, zephyr, cc3200, qemu, embed, … | Various | See Other. Tiers in 1.27+ say how complete they are. |
Adding a board
Inside an existing port you usually add a directory under boards/:
mpconfigboard.h— board name, heap size, which peripherals to compilempconfigboard.mkor CMake fragments — CPU variant, linker scriptpins.csvor equivalent — named pins forPin("LED")- Optional
manifest.py— frozen modules baked into the image
A new chip family is a new ports/foo/: main.c, mpconfigport.h, a UART for the REPL, a heap, and then machine bindings one class at a time. The developer docs walk through it; embed is the smallest “port” if you only want the VM inside another program.
Tiers
From 1.27 the project places every port in a tier by how mature and how actively maintained it is. Tier 1 is esp32, mimxrt, rp2, samd, stm32, unix and windows. Tier 2 is alif, embed, nrf, psoc-edge, renesas-ra, webassembly and zephyr. Tier 3 is cc3200, esp8266 and pic16bit. Tier M (bare-arm, minimal and qemu) is for maintenance, development and testing. Lower tiers still run; they may lag on machine APIs. Check the release notes when a class is missing — it may be the port, not your script.