Automated Code Generation and Validation for Software Components of Microcontrollers

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Haug, Sebastian, Böhm, Christoph, Mayer, Daniel
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915173617369088
author Haug, Sebastian
Böhm, Christoph
Mayer, Daniel
author_facet Haug, Sebastian
Böhm, Christoph
Mayer, Daniel
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_18905
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Automated Code Generation and Validation for Software Components of Microcontrollers
Haug, Sebastian
Böhm, Christoph
Mayer, Daniel
Software Engineering
Machine Learning
68N20 (primary), 68M07 (secondary)
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.
title Automated Code Generation and Validation for Software Components of Microcontrollers
topic Software Engineering
Machine Learning
68N20 (primary), 68M07 (secondary)
url https://arxiv.org/abs/2502.18905