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 3mo 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 3mo 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. 3mo 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 (13 stars, last pushed 8mo 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

bootloader-programming compared with agents from other repositories

bootloader-programming next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bootloader-programmingcreativec09/stm32Agent138mo agoMITA30Claude Code
it-engineerserejaris/personal-corp-osAgent2502d agoMITA66Claude Code
cocotb-reviewerbabyworm/rtl-agent-teamAgent72todayMITA51Claude Code
fabricatorpjt222/agent-almanacAgent46todayMITA25Claude Code
persona-highvibeic/vibe-icAgent33todayApache-2.0A111Claude Code
rtl-plannerbabyworm/rtl-agent-teamAgent72todayMITA43Claude Code
antenna-engineerK-Dense-AI/scientific-agentsAgent2692mo agoMITA97Claude Code