Microchip / Arduino (AVR & ARM)
Arduino Leonardo (ATmega32U4)
Native-USB ATmega32U4 HID and macro-pad board tracked in devboard-top40.json with AVR USB peripheral support (ct-periph/src/avr/usb.rs).
Target Clock16 MHzATmega32U4
Memory32 KB2.5 KB SRAM SRAM
Evidence StandingprovisionalDatasheet / SVD importable
CPU Profileavr5microchip.avr
Hardware specification
| MCU | ATmega32U4 | Core | AVR 8-bit RISC + Native USB |
|---|---|---|---|
| Max clock | 16 MHz | Flash / RAM | 32 KB / 2.5 KB SRAM |
| Primary buses | USB 2.0 FS, TWI (I2C), SPI, USART1, 10-bit ADC | ||
| Evidence basis | Indexed in datasheet corpus; generate locally via ct twin generate (/docs/twin-generation). | ||
Published verification & bring-up status
Tracked in devboard-top40.json; shares our differential-checked AVR CPU core and ATmega USB/TWI/SPI/USART peripherals.
Run locally with ct CLI
Shell
ct twin generate ATmega32U4.atdf && ct run --json --board arduino-leonardo.board.yaml build/sketch.elf
# Start a GDB server with reverse execution attached to the twin
ct debug --board arduino-leonardo --gdb-port 3333 build/app.elfGitHub Actions CI workflow
.github/workflows/firmware-ci.yml
name: Firmware Twin CI (ATmega32U4)
on: [push, pull_request]
jobs:
simulate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run firmware on Arduino Leonardo twin
uses: circuittwin/action@v1
with:
board: arduino-leonardo
firmware: build/app.elf
suite: tests/suite.yaml
junit-out: results/arduino-leonardo.xml