News

ST adds agentic-AI framework to STM32Cube tooling

STMicroelectronics has launched a beta framework that feeds AI coding agents verified STM32 data to cut errors and token use during embedded development.
Official press image: ST adds agentic-AI framework to STM32Cube tooling

STMicroelectronics has introduced STM32Cube for Agentic AI, a framework that supplies AI coding agents with manufacturer-verified information about STM32 microcontrollers during embedded software development. The tool is now in beta and is described by the company as preparing for public launch.

The framework is built to give AI agents accurate, STM32-specific context so they can select appropriate ecosystem assets, such as choosing between a ready-made code example or a code-generation tool, rather than working from general-purpose training data. ST says this approach helps avoid hallucinations and reduces token consumption.

Developers can choose the context that fits their workflow, including the option to use STM32CubeIDE or another IDE. The framework also integrates STM32CubeMX, ST's deterministic code generation tool, so that agents can call verified reference examples rather than generating code from scratch. After code is produced, the framework carries out an initial review that checks API calls, verifies correct interaction with MCU hardware and suggests workarounds, before handing control back to the developer for debugging within their existing project environment.

Also referenced is STM32Sidekick, which ST describes as a recently introduced 24/7 digital assistant providing first-line support and links to relevant documentation.

Vendor-reported test results

ST has published results from internal research in which AI agents were tasked with generating code for STM32 MCUs, comparing agents given STM32Cube for Agentic AI context and guidelines against agents working without that assistance. According to ST, the assisted agents produced functional code where the unassisted agents failed, and used 15 times fewer tokens. These figures come from ST's own testing and have not been independently verified.

Benjamin Schwartz, Managing Director for Partnerships at OpenAI, said the framework combines OpenAI model intelligence with STM32Cube's data and skills to help developers work more efficiently. Serge Robin, lead architect at Somfy, said the tool gives validated configurations, reference examples and code review capability while allowing developers to retain control within a familiar workflow. Patrick Aidoune, Group Vice President and General Purpose and Automotive Microcontrollers Division General Manager at STMicroelectronics, said the framework is designed to support a pairing of developer and AI agent, with the developer expressing intent and checking output.

STM32Cube for Agentic AI is currently in beta, with ST stating it is preparing the tool for a public launch.

Continue reading