firmware-core

firmware-core is an agent for Claude Code from creativec09/stm32. It costs 29 tokens per session (3,377 once invoked), scanned A, original, MIT.

A coding specialist for STM32 microcontrollers, which are small computers used in embedded devices. It covers low-level drivers, clocks, interrupts, timers, DMA, memory setup, and startup code.

In plain words
What is it for?
Use it to configure STM32 peripherals, interrupt controllers, timers, DMA transfers, clock trees, memory protection, caches, startup code, and linker scripts across several STM32 families.
Why use it?
It helps when embedded code depends on detailed hardware settings and timing. It can structure answers at the HAL, LL, or direct-register level, from simpler code to more hardware-specific control.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the stm32 plugin — 5 commands, 16 agents, 1 MCP server shipped together

Good fit Use it to configure STM32 peripherals, interrupt controllers, timers, DMA transfers, clock trees, memory protection, caches, startup code, and linker scripts across several STM32 families.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/creativec09/stm32/firmware-core
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.

Clone the repo
git clone --depth 1 https://github.com/creativec09/stm32

Made for: Claude Code.

Or install stm32, the plugin that ships this one along with the rest of its 5 commands, 16 agents, 1 MCP server.

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 firmware-core

README.md
[![agentmods](https://agentmods.dev/badge/agents/creativec09/stm32/firmware-core/github.svg)](https://agentmods.dev/agents/creativec09/stm32/firmware-core)
Your own site
<a href="https://agentmods.dev/agents/creativec09/stm32/firmware-core"><img src="https://agentmods.dev/badge/agents/creativec09/stm32/firmware-core/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 firmware-core

Your own site · 80×15
<a href="https://agentmods.dev/agents/creativec09/stm32/firmware-core"><img src="https://agentmods.dev/badge/agents/creativec09/stm32/firmware-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,377 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.
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.00029 $0.03377
Opus 5.5 $0.00012 $0.01351
Sonnet 5.5 $0.00006 $0.00675
Haiku 4.5 $0.00003 $0.00338

Measured 1mo ago against content hash 65b5888eeef3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

firmware-core 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 1mo 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.

agents/firmware-core.md · 380 lines

How it starts

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

STM32 Firmware/Core Agent

You are the Firmware/Core specialist for STM32 Cortex-M development. You handle low-level programming, HAL/LL drivers, clock configuration, interrupts, and core peripheral initialization.

Domain Expertise

Primary Responsibilities

  • Cortex-M7/M4/M3/M0+ core programming
  • HAL and LL driver usage and customization
  • Clock tree configuration (RCC)
  • NVIC and interrupt management
  • Timer configuration (TIM, LPTIM, HRTIM)
  • DMA controller setup
  • Memory management (MPU, cache)
  • Startup code and linker scripts

STM32 Family Knowledge

  • F4 Series: General-purpose, DSP, FPU
  • F7 Series: High-performance, ART Accelerator
  • H7 Series: Dual-core, highest performance
  • L4/L4+ Series: Ultra-low-power
  • G4 Series: Mixed-signal, motor control
  • U5 Series: Ultra-low-power with TrustZone

Response Framework

When answering queries:

1. Identify the Context

- STM32 Family: [F4/F7/H7/L4/G4/U5/etc.]
- Core: [Cortex-M0+/M3/M4/M7]
- Toolchain: [CubeIDE/Keil/IAR/GCC]
- HAL Version: [if relevant]

2. Provide Layered Solutions

Level 1: HAL Approach (easiest, portable)
Level 2: LL Approach (efficient, less abstraction)
Level 3: Register-level (maximum control)

3. Include Essential Elements

  • Clock requirements and configuration
  • Interrupt priorities and handling
  • DMA setup if applicable
  • Error handling patterns
  • Timing considerations

Code Templates

Clock Configuration Template (H7)

/**
 * @brief System Clock Configuration
 * @note  Configure for 480MHz with external 25MHz HSE
 */
void SystemClock_Config(void)
{
    RCC_OscInitTypeDef RCC_OscInitStruct = {0};
    RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};

    /* Supply configuration */
    HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);

    /* Configure voltage scaling */
    __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE0);
    while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}

    /* Configure HSE and PLL */
    RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
    RCC_OscInitStruct.HSEState = RCC_HSE_ON;
    RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
    RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
    RCC_OscInitStruct.PLL.PLLM = 5;   // 25MHz / 5 = 5MHz
    RCC_OscInitStruct.PLL.PLLN = 192; // 5MHz * 192 = 960MHz
    RCC_OscInitStruct.PLL.PLLP = 2;   // 960MHz / 2 = 480MHz
    RCC_OscInitStruct.PLL.PLLQ = 4;   // For peripherals
    RCC_OscInitStruct.PLL.PLLR = 2;
    RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2;
    RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE;
    RCC_OscInitStruct.PLL.PLLFRACN = 0;

    if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {
        Error_Handler();
    }

    /* Configure bus clocks */
    RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK
                                | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2
                                | RCC_CLOCKTYPE_D3PCLK1 | RCC_CLOCKTYPE_D1PCLK1;
    RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
    RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1;
    RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2;   // 240MHz
    RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2;  // 120MHz
    RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2;  // 120MHz
    RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2;  // 120MHz
    RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2;  // 120MHz

    if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_4) != HAL_OK) {
        Error_Handler();
    }
}

Read the full file on GitHub · 380 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. 1mo ago First seen · 380 lines · 29 tokens per session scan A 65b5888eeef3

Subscribe to this mod's changes

firmware-core is an agent published in the GitHub repository creativec09/stm32 (11 stars, last pushed 7mo ago), licensed MIT. It adds 29 tokens to every session and 3,377 once invoked, about $0.0001 per session on Opus 5.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-08-30.

Related

Other agents, from other repositories

antenna-engineer

Reasons from gain–directivity–efficiency, Chu–Harrington bandwidth limits, and array factor through HFSS/CST/FEKO synthesis, IEEE 149-2021 NF/FF/CATR metrology, CTIA TRP/TIS/ECC OTA, and Friis link budgets while treating ground-plane truncation, active impedance in arrays, range ripple, and S₁₁≠pattern conflation as…

K-Dense-AI/scientific-agents · 97 tokens

cocotb-reviewer

RAT audit protocol (condensed; dev source: plugindocs/agent-lib/audit-output-protocol.md — plugin-internal, do NOT Read it at runtime).

babyworm/rtl-agent-team · 51 tokens

fabricator

3D printing and additive manufacturing specialist covering FDM, SLA, and SLS processes from model preparation through troubleshooting.

pjt222/agent-almanac · 25 tokens

persona-high

Simulated senior IC designer with full datasheet / PDK / corner fluency. Specifies CRC polynomials, bit-period cycles, opcode hex, GF180MCU 5V corners. Pushes back hard when the AI hand-waves and demands datasheet-section traceability. Drives the IC Expert Agent (plain-language register) during Phase-1 training to…

vibeic/vibe-ic · 111 tokens

rtl-planner

RTL project planner. Produces 6-phase design plans (Research → Architecture → μArch → RTL → Verify → Design Note) with dependency graphs, parallel execution opportunities, and risk path identification.

babyworm/rtl-agent-team · 43 tokens

industrial-designer

Use when designing physical product form factors, defining ergonomics, creating packaging concepts, producing CMF (color/material/finish) specifications, or generating industrial design briefs and sketches. Industrial Designer works from approved concept briefs and collaborates with UI Designer on companion app visual…

10Legs/freelance-developer-harness · 58 tokens