bootloaders-embedded

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

A guide for building Cortex-M bootloaders, the small programs that start before the main firmware and can update it or pass control to it.

In plain words
What is it for?
Use it to plan flash regions, relocate the interrupt vector table, check whether an application image is valid, jump safely to application code, and implement UART, USB DFU, or custom firmware updates.
Why use it?
It helps avoid startup failures when the application is stored at a non-zero flash address, especially when it works alone but not after a bootloader handoff.

Skill for Claude CodeCodex

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

Good fit Use it to plan flash regions, relocate the interrupt vector table, check whether an application image is valid, jump safely to application code, and implement UART, USB DFU, or custom firmware updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mohitmishra786/low-level-dev-skills/bootloaders-embedded
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 bootloaders-embedded
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 bootloaders-embedded

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/bootloaders-embedded/github.svg)](https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/bootloaders-embedded)
Your own site
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/bootloaders-embedded"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/bootloaders-embedded/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 bootloaders-embedded

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/bootloaders-embedded"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/bootloaders-embedded.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,159 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.00074 $0.01159
Opus 5.5 $0.00030 $0.00464
Sonnet 5.5 $0.00015 $0.00232
Haiku 4.5 $0.00007 $0.00116

Measured 13d ago against content hash 7efe518e29e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bootloaders-embedded 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 13d 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/baremetal/bootloaders-embedded/SKILL.md · 131 lines

How it starts

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

Embedded Bootloaders

Purpose

Guide agents through embedded bootloader fundamentals: vector table relocation, safe handoff from bootloader to application, flash partitioning, and basic firmware-update patterns (UART, USB DFU, or custom protocol) on Cortex-M and similar MCUs.

Triggers

  • Application must run at non-zero flash offset (e.g. 0x08010000)
  • Implementing OTA or USB DFU without vendor HAL
  • Debugging "app works when flashed alone but not via bootloader"
  • Integrating with skills/baremetal/baremetal-startup and skills/baremetal/stm32-baremetal

Workflow

1. Memory layout (typical STM32)

Region Address Size Content
Bootloader 0x08000000 16–64 KB BL code, update logic
Application 0x08010000 remainder App vector + code

Linker script for app must set FLASH ORIGIN to app base; vector table must live at app base.

2. Valid application image check

Before jump, verify:

App vector[0] (initial SP) points into RAM region
App vector[1] (Reset) points into flash region and has Thumb bit set (LSB=1)
Optional: CRC or magic word in app metadata section
#define APP_BASE  0x08010000U

static int app_valid(uint32_t base)
{
    uint32_t sp = *(uint32_t *)base;
    uint32_t reset = *(uint32_t *)(base + 4);
    if (sp < SRAM_BASE || sp > SRAM_END)
        return 0;
    if ((reset & 1U) == 0U)
        return 0;
    if (reset < base || reset > FLASH_END)
        return 0;
    return 1;
}

3. Cortex-M handoff sequence

typedef void (*app_entry_t)(void);

void jump_to_app(uint32_t app_base)
{
    uint32_t sp    = *(uint32_t *)app_base;
    uint32_t reset = *(uint32_t *)(app_base + 4);

    /* Disable interrupts and de-init peripherals/boot-owned hardware */
    __disable_irq();
    SysTick->CTRL = 0;
    for (int i = 0; i < 8; i++) {
        NVIC->ICER[i] = 0xFFFFFFFFU;
        NVIC->ICPR[i] = 0xFFFFFFFFU;
    }

    SCB->VTOR = app_base;
    __set_MSP(sp);
    __DSB();
    __ISB();

    app_entry_t entry = (app_entry_t)reset;
    entry(); /* does not return */
}

Read the full file on GitHub · 131 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. 13d ago Changed · +1 lines 7efe518e29e8
  2. 3mo ago First seen · 130 lines · 74 tokens per session scan A deb386c55c46

Subscribe to this mod's changes

bootloaders-embedded is a skill published in the GitHub repository mohitmishra786/low-level-dev-skills (310 stars, last pushed 14d ago), licensed MIT. It adds 74 tokens to every session and 1,159 once invoked, about $0.0003 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

bootloaders-embedded compared with skills from other repositories

bootloaders-embedded next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bootloaders-embeddedmohitmishra786/low-level-dev-skillsSkill31014d agoMITA74Claude Code, Codex
telnyx-iot-curlteam-telnyx/aiSkill232yesterdayMITA45Claude Code
telnyx-networking-curlteam-telnyx/aiSkill232yesterdayMITA35Claude Code
altium-designeralivirgo/Major-AI-SkillsSkill6todayMITA30Claude Code
eartrumpetalivirgo/Major-AI-SkillsSkill6todayMITA32Claude Code
fusion-360alivirgo/Major-AI-SkillsSkill6todayMITA27Claude Code
codesysalivirgo/Major-AI-SkillsSkill6todayMITB27Claude Code