Microchip MPLAB for VS Code, OpenAI Codex, and AVR GNU Toolchain 4.0.0 Agentic embedded software development: environment configuration, build automation, and machine-code verification
This article examines the organization of software development for eight-bit AVRmicrocontrollers in Visual Studio Code using the official Microchip MPLAB extensions andthe OpenAI Codex agent. It describes extension installation, manual registration of thestandalone AVR GNU Toolchain 4.0.0 (GCC 15.1.0), automatic dependency provisioning,project creation, and build management through CMake and Ninja. In an experimenttargeting the ATmega328P architecture, the agent was tasked with implementing Blink in Cwithout Arduino Core. The resulting .text section was 176 bytes long, and its SHA-256 hashmatched that of the earlier standalone AVR-07 build. The article discusses the capabilitiesand limitations of this verification method, the division of responsibilities between theengineer and the agent, and the conditions for subsequent hardware testing.
Authors
- Alex Malachevsky (ORCID: https://orcid.org/0009-0008-6009-3196)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24710113
- Primary Topic
- Embedded Systems Design Techniques
- Type
- preprint