qemu-embedded-simulation

qemu-embedded-simulation is a skill for Claude Code, Codex from mohitmishra786/low-level-dev-skills. It costs 78 tokens per session (1,153 once invoked), scanned A, original, MIT.

A guide to using QEMU to simulate embedded processors and boards without physical hardware. QEMU is a virtual machine that can run selected ARM and RISC-V firmware models and connect them to GDB.

In plain words
What is it for?
Use it to boot bare-metal or RTOS firmware, choose a matching board model, test serial output, run CI smoke tests, and debug with GDB.
Why use it?
It helps test startup code and firmware earlier, or run repeatable checks when a development board is unavailable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to boot bare-metal or RTOS firmware, choose a matching board model, test serial output, run CI smoke tests, and debug with GDB.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mohitmishra786/low-level-dev-skills/qemu-embedded-simulation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mohitmishra786/low-level-dev-skills --skill qemu-embedded-simulation
Clone the repo
git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qemu-embedded-simulation

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/qemu-embedded-simulation/github.svg)](https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/qemu-embedded-simulation)
Your own site
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/qemu-embedded-simulation"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/qemu-embedded-simulation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for qemu-embedded-simulation

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/qemu-embedded-simulation"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/qemu-embedded-simulation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,153 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.01153
Opus 5 $0.00039 $0.00576
Sonnet 5 $0.00016 $0.00231
Haiku 4.5 $0.00008 $0.00115

Measured 9d ago against content hash 18388c0fb4fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

qemu-embedded-simulation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/qemu/qemu-embedded-simulation/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

QEMU Embedded Simulation

Purpose

Guide agents through QEMU for bare-metal and RTOS firmware: machine selection, loading ELF images, semihosting, peripheral models, and GDB debug — distinct from Linux-focused skills/virtualization/qemu-kvm and skills/kernel-dev/qemu-for-kernel-development.

When to Use

  • Test Cortex-M firmware without board
  • CI smoke test for linker script / startup
  • GDB single-step before OpenOCD on hardware
  • RISC-V bring-up on virt machine

Workflow

1. ARM Cortex-M (QEMU STM32 boards)

QEMU models a subset of STM32 boards (see qemu.org STM32 docs):

Machine MCU Core
stm32vldiscovery STM32F100RBT6 Cortex-M3
netduino2 STM32F205RFT6 Cortex-M3
netduinoplus2 STM32F405RGT6 Cortex-M4F
olimex-stm32-h405 STM32F405RGT6 Cortex-M4F
# stm32vldiscovery — Cortex-M3 (not F4); match -mcpu to the board
arm-none-eabi-gcc -mcpu=cortex-m3 -T linker.ld -o firmware.elf main.c startup.s
qemu-system-arm \
  -machine stm32vldiscovery \
  -kernel firmware.elf \
  -nographic \
  -serial mon:stdio

Boot with -kernel firmware.bin or .elf per QEMU STM32 boot options.

Machine list: qemu-system-arm -machine help. GPIO, DMA, and I2C are not modeled on current QEMU STM32 machines — USART/SPI/ADC/timer are partially supported.

2. Generic ARM virt (Cortex-A test)

qemu-system-aarch64 -machine virt -cpu cortex-a53 -m 128M \
  -kernel firmware.elf -nographic

3. RISC-V bare metal

qemu-system-riscv32 -machine virt -nographic \
  -bios none \
  -kernel firmware.elf

-bios none starts at reset vector without OpenSBI.

4. GDB stub

qemu-system-arm -machine stm32vldiscovery -kernel firmware.elf \
  -S -gdb tcp::3333 -nographic

arm-none-eabi-gdb firmware.elf
(gdb) target remote :3333
(gdb) monitor reset halt
(gdb) load

Pair with skills/embedded/openocd-jtag for on-target workflow.

Read the full file on GitHub · 119 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 119 lines · 78 tokens per session scan A 18388c0fb4fe

Subscribe to this mod's changes

qemu-embedded-simulation is a skill published in the GitHub repository mohitmishra786/low-level-dev-skills (203 stars, last pushed 2mo ago), licensed MIT. It adds 78 tokens to every session and 1,153 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.