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

# STMicroelectronics

> Find STM32 platforms and Nucleo board skills, and prepare CubeMX or CubeMX2 projects and ST-LINK debugging for Inlay.

Select your STM32 device or board during project setup. Inlay then loads its STM32 skills for CubeMX and CubeMX2 projects and generated code. Nucleo board skills add connector and pinout references when your project's platform matches the board.

When you ask for hardware work, include the board revision, your STM32CubeMX or CubeMX2 project configuration, and the debug probe you use.

> [!NOTE]
>
> A listing gives Inlay hardware context. Flashing and debugging also depend on your probe, connections, and installed tools. Check the project setup picker for current availability.

## Work with STM32Cube projects

`STM32` and `stm32-cubemx2` load automatically for ST projects, and `STM32N6` for STM32N6 platforms. You can also run any of these skills by name from the `/` menu.

| Skill | Use it for |
| - | - |
| `STM32` | STM32 firmware, legacy STM32CubeMX projects (`.ioc`), and generated code. |
| `stm32-cubemx2` | STM32CubeMX2 projects (`.ioc2`) driven through the CubeMX2 command line. |
| `STM32N6` | STM32N6 projects. Loads when the platform starts with `STM32N6` or `NUCLEO-N657`. Its board-specific sections cover the STM32N6570-DK (MB1939). |
| `usb-cdc-stm32` | USB CDC with the STM32Cube USB Device stack or USBX. Run it from the `/` menu. |
| `ethernet-stm32` | Ethernet with lwIP in STM32Cube HAL projects. Run it from the `/` menu. |

What to expect in a CubeMX project:

* Inlay writes your code only between matching `USER CODE BEGIN` and `USER CODE END` comment markers, because CubeMX overwrites everything else when it regenerates.
* Inlay doesn't hand-edit the `.ioc` file, generated initialization code, or `SystemClock_Config()`. It asks you to change pins, clocks, or peripherals in CubeMX and regenerate.

What to expect in a CubeMX2 project:

* Install STM32CubeMX2 so the `cube` command is available. If Inlay can't find it, it tells you to install CubeMX2 or add it to your `PATH`.
* Inlay can create the project from a board or MCU, configure pins, peripherals, clocks, and middleware, save the `.ioc2`, generate the IDE project, and build it.
* Project creation and code generation can download CMSIS packs that have their own license terms. Inlay tells you before that happens.
* Keep the `.ioc2` file in version control and review its diff after each configuration change.
* CMake output needs CMake 3.30 or newer and the Arm GNU toolchain that the generated project expects. Inlay builds the generated project before it reports success, and flashes only when you ask.

## Flash and debug

To flash, Inlay runs the flash command recorded in [INLAY.md](/docs/core-concepts/inlay-md.md) with the tools you have installed. It doesn't supply a flash utility. For a CMake project and an ST-LINK, the recorded commands can look like this, with the STM32CubeProgrammer command-line tool doing the programming:

```text theme={"theme":"css-variables"}
build_command = cmake --build build
flash_command = STM32_Programmer_CLI -c port=SWD -w build/app.elf -v -rst
```

Replace the build folder and ELF path with your project's. See [Flashing firmware](/docs/debug-mode/flashing.md).

To debug over an ST-LINK with GDB, set `Debug Interface = st-link` in INLAY.md. Inlay then connects through OpenOCD, which must support the exact STM32 device. A normal debug connection programs the ELF before it runs to `main`, so debugging doesn't need a separate flash step. With a J-Link probe, use [SEGGER J-Link](/docs/debug-mode/jlink.md) instead. See [OpenOCD](/docs/debug-mode/openocd.md) and [How Inlay picks a debugger](/docs/debug-mode/gdb.md#how-inlay-picks-a-debugger).

## Board-specific skills

Each Nucleo skill covers the boards built on one PCB. It's available only when the project's platform is one of those boards; an MCU-only platform such as `STM32F031` doesn't enable the `NUCLEO_32_MB1180` skill for `NUCLEO-F031K6`.

Most boards in this table aren't separate platforms in the catalog; in the current listings, only `NUCLEO-C5A3ZG` is. If the picker shows only the MCU family for your board, select that MCU, attach the board's user manual and schematic, and follow [board-skill setup](/docs/supported-hardware/overview.md#use-a-board-specific-skill).

Sharing a PCB number with a listed board doesn't guarantee the same connectors or pin assignments. Check the exact board model and revision before you apply a pin mapping.

| Form factor and PCB | Skill | Covered boards |
| - | - | - |
| Nucleo-32 MB1180 | `NUCLEO_32_MB1180` | `NUCLEO-F031K6`, `NUCLEO-F042K6`, `NUCLEO-L011K4`, `NUCLEO-L031K6`, `NUCLEO-L412KB`, `NUCLEO-L432KC` |
| Nucleo-32 MB1430 | `NUCLEO_G431KB` | `NUCLEO-G431KB` |
| Nucleo-32 MB1455 | `NUCLEO_G031K8` | `NUCLEO-G031K8` |
| Nucleo-64 MB1136 | `NUCLEO_64_MB1136` | `NUCLEO-F030R8`, `NUCLEO-F070RB`, `NUCLEO-F072RB`, `NUCLEO-F091RC`, `NUCLEO-F103RB`, `NUCLEO-F401RE`, `NUCLEO-F446RE`, `NUCLEO-L010RB`, `NUCLEO-L053R8`, `NUCLEO-L073RZ`, `NUCLEO-L452RE`, `NUCLEO-L476RG` |
| Nucleo-64-P MB1319 | `NUCLEO_64P_MB1319` | `NUCLEO-L412RB-P`, `NUCLEO-L433RC-P`, `NUCLEO-L452RE-P` |
| Nucleo-64 MB1355 | `NUCLEO_WB55RG` | `NUCLEO-WB55RG` |
| Nucleo-64 MB1360 | `NUCLEO_64_MB1360` | `NUCLEO-G070RB`, `NUCLEO-G071RB`, `NUCLEO-G0B1RE` |
| Nucleo-64 MB1367 | `NUCLEO_64_MB1367` | `NUCLEO-G431RB`, `NUCLEO-G474RE`, `NUCLEO-G491RE` |
| Nucleo-64 MB1389 | `NUCLEO_WL55JC` | `NUCLEO-WL55JC`, including the WL55JC1 and WL55JC2 radio-band order codes |
| Nucleo-64 MB1641 | `NUCLEO_WB15CC` | `NUCLEO-WB15CC` |
| Nucleo-64 MB1717 | `NUCLEO_C031C6` | `NUCLEO-C031C6` |
| Nucleo-64 MB1801 and MB1803 | `NUCLEO_WBA55CG` | `NUCLEO-WBA55CG` |
| Nucleo-64 MB1801 and MB2032 | `NUCLEO_64_WB0` | `NUCLEO-WB05KZ`, `NUCLEO-WB09KE` |
| Nucleo-64 MB1814 | `NUCLEO_H533RE` | `NUCLEO-H533RE` |
| Nucleo-64 MB1841 | `NUCLEO_64_MB1841` | `NUCLEO-U385RG-Q`, `NUCLEO-U545RE-Q` |
| Nucleo-64 MB1932 | `NUCLEO_64_MB1932` | `NUCLEO-U031R8`, `NUCLEO-U083RC` |
| Nucleo-64 MB2046 | `NUCLEO_C071RB` | `NUCLEO-C071RB` |
| Nucleo-144 MB1137 | `NUCLEO_144_MB1137` | `NUCLEO-F207ZG`, `NUCLEO-F429ZI`, `NUCLEO-F439ZI`, `NUCLEO-F446ZE`, `NUCLEO-F756ZG`, `NUCLEO-H743ZI` |
| Nucleo-144 MB1312 | `NUCLEO_144_MB1312` | `NUCLEO-L496ZG`, `NUCLEO-L496ZG-P`, `NUCLEO-L4A6ZG`, `NUCLEO-L4P5ZG` |
| Nucleo-144 MB1361 | `NUCLEO_L552ZE_Q` | `NUCLEO-L552ZE-Q` |
| Nucleo-144 MB1363 | `NUCLEO_144_MB1363` | `NUCLEO-H745ZI-Q`, `NUCLEO-H755ZI-Q` |
| Nucleo-144 MB1364 | `NUCLEO_144_MB1364` | `NUCLEO-H743ZI2`, `NUCLEO-H753ZI` |
| Nucleo-144 MB1404 | `NUCLEO_H563ZI` | `NUCLEO-H563ZI` |
| Nucleo-144 MB1549 | `NUCLEO_144_MB1549` | `NUCLEO-U575ZI-Q`, `NUCLEO-U5A5ZJ-Q` |
| Nucleo-144 MB1737 | `NUCLEO_H7S3L8` | `NUCLEO-H7S3L8` |
| Nucleo-144 MB1940 | `NUCLEO_N657X0_Q` | `NUCLEO-N657X0-Q` |
| Nucleo-144 MB2310 | `NUCLEO_C5A3ZG` | `NUCLEO-C5A3ZG` |

## Catalog platforms

| Family | Platforms |
| - | - |
| STM32C0 | `STM32C0`, `STM32C011`, `STM32C031`, `STM32C071` |
| STM32C5 | `STM32C5A3` |
| STM32F0 | `STM32F0`, `STM32F030`, `STM32F031`, `STM32F038`, `STM32F042`, `STM32F048`, `STM32F051`, `STM32F058`, `STM32F070`, `STM32F071`, `STM32F072`, `STM32F078`, `STM32F091`, `STM32F098` |
| STM32F1 | `STM32F1`, `STM32F100`, `STM32F101`, `STM32F102`, `STM32F103`, `STM32F107` |
| STM32F2 | `STM32F2`, `STM32F207` |
| STM32F3 | `STM32F3` |
| STM32F4 | `STM32F401`, `STM32F407`, `STM32F417`, `STM32F429`, `STM32F439`, `STM32F446`, `STM32F479` |
| STM32F7 | `STM32F723`, `STM32F733`, `STM32F756`, `STM32F779` |
| STM32G0 | `STM32G0`, `STM32G030`, `STM32G031`, `STM32G041`, `STM32G051`, `STM32G061`, `STM32G070`, `STM32G071`, `STM32G081`, `STM32G0B0`, `STM32G0B1`, `STM32G0C1`, `STM32G0x0`, `STM32G0x1` |
| STM32G4 | `STM32G4`, `STM32G431`, `STM32G441`, `STM32G473`, `STM32G474`, `STM32G483`, `STM32G484`, `STM32G491`, `STM32G4A1` |
| STM32H5 | `STM32H5`, `STM32H533`, `STM32H563`, `STM32H573` |
| STM32H7 | `STM32H7`, `STM32H743`, `STM32H745`, `STM32H747`, `STM32H750`, `STM32H753`, `STM32H755`, `STM32H757`, `STM32H7B0`, `STM32H7B3`, `STM32H7R3`, `STM32H7R7`, `STM32H7S3`, `STM32H7S7` |
| STM32L0 | `STM32L010`, `STM32L011`, `STM32L021`, `STM32L031`, `STM32L041`, `STM32L051`, `STM32L052`, `STM32L053`, `STM32L062`, `STM32L063`, `STM32L071`, `STM32L072`, `STM32L073`, `STM32L081`, `STM32L082`, `STM32L083`, `STM32L0x0`, `STM32L0x1`, `STM32L0x2`, `STM32L0x3` |
| STM32L4 | `STM32L412`, `STM32L422`, `STM32L431`, `STM32L433`, `STM32L442`, `STM32L443`, `STM32L451`, `STM32L452`, `STM32L462`, `STM32L471`, `STM32L476`, `STM32L485`, `STM32L486`, `STM32L496`, `STM32L4A6`, `STM32L4P5`, `STM32L4Q5`, `STM32L4R9`, `STM32L4S9` |
| STM32L4+ | `STM32L4+` |
| STM32L5 | `STM32L5`, `STM32L552`, `STM32L562` |
| STM32N6 | `STM32N6` |
| STM32U0 | `STM32U0`, `STM32U031`, `STM32U073`, `STM32U083` |
| STM32U3 | `STM32U3`, `STM32U375`, `STM32U385` |
| STM32U5 | `STM32U5`, `STM32U535`, `STM32U545`, `STM32U575`, `STM32U585`, `STM32U595`, `STM32U5A5` |
| STM32WB | `STM32WB0`, `STM32WB10`, `STM32WB15`, `STM32WB50`, `STM32WB55`, `STM32WB5MMG` |
| STM32WBA | `STM32WBA`, `STM32WBA55` |
| STM32WL | `STM32WL`, `STM32WL55`, `STM32WL5x`, `STM32WLE5`, `STM32WLEx` |
| Nucleo boards in the catalog | `NUCLEO-C5A3ZG` |


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