arXiv · 2502.18905
Automated Code Generation and Validation for Software Components of Microcontrollers
Abstract
This paper proposes a method for generating software components for embedded systems, integrating seamlessly into existing implementations without developer intervention. We demonstrate this by automatically generating hardware abstraction layer (HAL) code for GPIO operations on the STM32F407 microcontroller. Using Abstract Syntax Trees (AST) for code analysis and Retrieval-Augmented Generation (RAG) for component generation, our approach enables autonomous code completion for embedded applications.
Explore related subjects
Keep this discovery
Sebastian Haug, Christoph Böhm, Daniel Mayer. 2025-02-26. Automated Code Generation and Validation for Software Components of Microcontrollers. https://arxiv.org/abs/2502.18905
Cite the original work for its findings. Save a collection to share your selection of sources.