Benchmarking Large Language Models for Embedded Systems Programming in Microcontroller-Driven IoT Applications
Marek Babiuch, Pavel Smutný
VSB - Technical University of Ostrava
Key points
From the paper's conclusion- This study systematically evaluates 27 state-of-the-art LLMs across eight embedded systems scenarios of increasing complexity, from basic sensor reading to complete cloud database integration with visualization dashboards.
Abstract
Large language models (LLMs) have shown strong potential for automated code generation in software development, yet their effectiveness in embedded systems programming—requiring understanding of software logic and hardware constraints—has not been well studied. Existing evaluation frameworks do not comprehensively cover practical microcontroller development scenarios in real-world Internet of Things (IoT) projects. This study systematically evaluates 27 state-of-the-art LLMs across eight embedded systems scenarios of increasing complexity, from basic sensor reading to complete cloud database integration with visualization dashboards. Using ESP32 microcontrollers with environmental and motion sensors, we employed the Analytic Hierarchy Process with four weighted criteria: functional, instructions, output and creativity, evaluated independently by two expert reviewers. Top-performing models were Claude Sonnet 4.5, Claude Opus 4.1, and Gemini 2.5 Pro, with scores from 0.984 to 0.910. Performance degraded with complexity: 19–23 models generated compilable code for simple applications, but only 3–5 produced functional solutions for complex scenarios involving Grafana and cloud databases. The most frequent failure was hallucinated non-existent libraries or incorrect API usage, with functional capability as the primary barrier and instruction-following quality the key differentiator among competent models. These findings provide empirical guidance for embedded developers on LLM selection and identify limitations of zero-shot prompting for hardware-dependent IoT development.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Closed-loop evaluation of LLM agents for embedded software developmentarXiv · 2026
- RealEmbedBench: Benchmarking LLMs on Real-World Application-Layer Embedded Software TasksarXiv · 2026
- ElecSafety: Diagnosing Large Language Model Safety Judgments for Microcontroller BoardsarXiv · 2026
- Micro Operational Robustness of LLMs on Code GenerationarXiv · 2026
- Security and Quality in LLM-Generated Code: A Multi-Language, Multi-Model AnalysisIEEE Transactions on Dependable and Secure Computing · 2026
- LLM-based Hardware Development with Hierarchical IRs and End-to-End Multi-Agent WorkflowarXiv · 2026