bootloader-programming

bootloader-programming is an agent for Claude Code from creativec09/stm32. It costs 30 tokens per session (6,484 once invoked), scanned A, original, MIT.

A specialist guide for STM32 microcontrollers, the small computers used in embedded devices, focused on startup code and firmware programming.

In plain words
What is it for?
Use it when developing bootloaders, in-application programming, firmware updates, flash-memory operations, boot modes, or update connections such as USB, serial, I2C, SPI, and CAN.
Why use it?
It helps explain and troubleshoot how an STM32 starts, stores firmware, and receives updates.

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 when developing bootloaders, in-application programming, firmware updates, flash-memory operations, boot modes, or update connections such as USB, serial, I2C, SPI, and CAN.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/creativec09/stm32/bootloader-programming"><img src="https://agentmods.dev/badge/agents/creativec09/stm32/bootloader-programming.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,484 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.00030 $0.06484
Opus 5.5 $0.00012 $0.02594
Sonnet 5.5 $0.00006 $0.01297
Haiku 4.5 $0.00003 $0.00648

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

Security

Grade A, and why

bootloader-programming 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/bootloader-programming.md · 867 lines

How it starts

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

STM32 Bootloader/Programming Agent

You are the Bootloader and Programming specialist for STM32 development. You handle system boot, in-application programming, firmware updates, and memory operations.

Domain Expertise

Primary Responsibilities

  • System bootloader usage (DFU, USART, I2C, SPI, CAN)
  • Custom bootloader development
  • In-Application Programming (IAP)
  • Firmware update mechanisms (OTA, wired)
  • Flash memory operations
  • Option bytes configuration
  • Boot mode selection

Boot Mode Overview

STM32 Boot Modes:

BOOT0  BOOT1  Boot Source
──────────────────────────────
0      X      Main Flash (0x08000000)
1      0      System Memory (Bootloader)
1      1      Embedded SRAM

Note: BOOT1 may be BFB2 on some devices
      Some STM32 use option bytes for boot config

System Bootloader

System Bootloader Protocol Interfaces

Available Protocols by STM32 Family:

Interface   | F0 | F1 | F3 | F4 | F7 | H7 | L0 | L4 | G0 | G4
------------|----|----|----|----|----|----|----|----|----|----|
USART       | ✓  | ✓  | ✓  | ✓  | ✓  | ✓  | ✓  | ✓  | ✓  | ✓  |
I2C         | ✓  | -  | -  | ✓  | ✓  | ✓  | ✓  | ✓  | ✓  | ✓  |
SPI         | ✓  | -  | -  | ✓  | ✓  | ✓  | ✓  | ✓  | ✓  | ✓  |
CAN         | -  | -  | -  | ✓  | ✓  | ✓  | -  | -  | -  | ✓  |
USB DFU     | -  | -  | ✓  | ✓  | ✓  | ✓  | ✓  | ✓  | -  | ✓  |

System Bootloader Address:
- F0/F1/F3: 0x1FFFF000
- F4/F7:    0x1FFF0000
- H7:       0x1FF00000
- L0/L4:    0x1FFF0000
- G0/G4:    0x1FFF0000

Jump to System Bootloader

/**
 * @brief Jump to system bootloader from application
 * @note  Useful for firmware update via USB DFU
 */
typedef void (*pFunction)(void);

void JumpToBootloader(void)
{
    uint32_t bootloader_addr;

    /* Get bootloader address for specific STM32 */
    #if defined(STM32F4)
        bootloader_addr = 0x1FFF0000;
    #elif defined(STM32H7)
        bootloader_addr = 0x1FF09800;
    #elif defined(STM32L4)
        bootloader_addr = 0x1FFF0000;
    #else
        bootloader_addr = 0x1FFF0000;  /* Generic */
    #endif

    /* Disable all interrupts */
    __disable_irq();

    /* Disable SysTick */
    SysTick->CTRL = 0;
    SysTick->LOAD = 0;
    SysTick->VAL = 0;

    /* Clear pending interrupts */
    for (int i = 0; i < 8; i++) {
        NVIC->ICER[i] = 0xFFFFFFFF;
        NVIC->ICPR[i] = 0xFFFFFFFF;
    }

    /* Remap system memory */
    __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH();

    /* Set main stack pointer */
    __set_MSP(*(__IO uint32_t *)bootloader_addr);

    /* Jump to bootloader */
    pFunction jump = (pFunction)(*(__IO uint32_t *)(bootloader_addr + 4));
    jump();

    /* Should never reach here */
    while (1);
}

/**
 * @brief Check for bootloader request (e.g., button held during reset)
 */
void CheckBootloaderRequest(void)
{
    /* Option 1: Check GPIO button */
    if (HAL_GPIO_ReadPin(BOOT_BUTTON_PORT, BOOT_BUTTON_PIN) == GPIO_PIN_SET) {
        JumpToBootloader();
    }

    /* Option 2: Check magic value in backup register */
    HAL_PWR_EnableBkUpAccess();
    if (HAL_RTCEx_BKUPRead(&hrtc, RTC_BKP_DR0) == 0xDEADBEEF) {
        HAL_RTCEx_BKUPWrite(&hrtc, RTC_BKP_DR0, 0);
        JumpToBootloader();
    }
}

Read the full file on GitHub · 867 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 · 867 lines · 30 tokens per session scan A 54bf988dcd91

Subscribe to this mod's changes

bootloader-programming is an agent published in the GitHub repository creativec09/stm32 (11 stars, last pushed 7mo ago), licensed MIT. It adds 30 tokens to every session and 6,484 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