ST adds AI-agent flashing to STM32CubeProgrammer 2.24
An MCP connector gives coding agents access to STM32 programming commands, alongside new microcontroller support and security updates. Password-based locking is supported, but agent-driven unlocking is not.

STMicroelectronics has added an MCP server to STM32CubeProgrammer 2.24 so AI coding agents can program STM32 devices through its command-line interface, the company announced on its blog. The release connects agent prompts to memory flashing and device configuration while adding support for newer microcontrollers.
The connection uses STM32CubeProgrammer Context, a context document paired with a dedicated server and skills in the AI STM32CubeProgrammer connector. An agent can use that material to invoke the programming utility rather than leave every device-programming operation to a developer working directly in the interface.
For common tasks, a prompt can initiate programming of internal or external memory or set option bytes. Those bytes hold device configuration, including readout-protection settings and power modes, and are loaded early during boot. The connector therefore reaches beyond writing application firmware into the configuration that governs a device’s operation.
Password-based protection has a specific limit: agents can lock a device at RDP Level 1 or Level 2, but cannot currently unlock it through the connector. The supplied context can instead guide a developer through an unlocking walkthrough. ST’s description of agent-assisted development does not remove that distinction between an executable command and instructions for a person.
Programming and protection across newer devices
The same release adds the STM32G5 series, covering devices for motor-control and digital-power applications. It also supports the STM32H7P, which combines a Cortex-M7 with a Neural-ART NPU and a Hardware Signal Processor. For most of the newly covered microcontrollers, the available operations include internal-memory programming, boot loading, option-byte changes, and firmware encryption and signing.
Security support differs by family and interface. Secure firmware installation with key wrapping is available on the STM32U3 and STM32V8. The STM32G5 gains key wrapping, but secure firmware installation through its debug interface is still due later. On the STM32V8, installation is supported through both debug and UART connections.
Firmware encryption now covers the STM32G5, STM32V8, STM32H7P and STM32WL4. Other additions include RDP-lock verification for the STM32C5, Serial Wire Viewer compatibility with that family, and secure secret provisioning and debug authentication for the new STM32N6 devices. These are device-specific additions, not a declaration that every security operation works on every supported chip.
The graphical interface also changes how developers inspect and recover a programming session. Panels are less intrusive, logs have a revised viewing experience, and error messages provide more information for troubleshooting. A single action can save a device’s entire memory, while the Option Bytes panel makes restoration of default settings more explicit. The fault analyzer extends its coverage to Cortex-M55 and Cortex-M85 processors.
Existing automation remains part of the workflow
The MCP connection builds on a utility that already supports scripted programming. Its CLI script manager can retain a connection to the target across commands, work with local variables, and execute loops and conditional logic. Developers do not have to reconnect the device after every command in a session. These are existing scripting capabilities rather than features first introduced by the new agent connector.
Earlier releases also introduced incremental programming, which updates changed flash sectors instead of rewriting the entire firmware. Separately, project mode lets teams save and restore connection settings, option-byte values, firmware lists and other programming parameters. That gives developers existing ways to repeat a configuration or share it with colleagues without manually entering the same settings again.
Execution options still depend on the host package. The Linux ARM 64-bit CLI package, introduced in version 2.23 for systems such as Raspberry Pi, can program flash and configure option bytes without a graphical interface. Its security coverage includes legacy RDP models and password-based RDP regression, but excludes debug authentication, product life-cycle functions and secure firmware installation.




















