bfd-flash-programmer

Automate STM32 flash programming and verification via J-Link or ST-Link.

27|1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/Sonder4/STM32-BFD-Kit --skill bfd-flash-programmer
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bfd-flash-programmer
Source: https://github.com/Sonder4/STM32-BFD-Kit/tree/main/skills/claude/bfd-flash-programmer
Command: npx skills add https://github.com/Sonder4/STM32-BFD-Kit --skill bfd-flash-programmer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Streamlines the process of flashing STM32 firmware and verifying results across J-Link and ST-Link workflows, reducing debugging time and ensuring repeatable outcomes.

Core Features & Use Cases

  • Deterministic Flash & Verify: Flash firmware to STM32 MCUs with verification and logging for repeatable results.
  • Multi-Tool Support: Leverages J-Link, PyOCD fallback, and STM32CubeProgrammer CLI wrappers for broad tool compatibility.
  • Diagnostics & Logging: Generates and stores logs under logs/flash for audit and troubleshooting.
  • Bootstrap & Automation: Provides bootstrap-style scripts to streamline project-specific detection and profiling.

Quick Start

Flash the STM32 device using the provided J-Link or ST-Link workflows, verify the flash, and collect logs to logs/flash.

Frequently Asked Questions about bfd-flash-programmer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate STM32 flash programming and verification?▼

Automating STM32 flash programming and verification uses CLI-driven Python scripts to orchestrate erase, flash, verify, and reset operations with J-Link or ST-Link. This ensures deterministic, repeatable firmware deployment and generates logs for audit and troubleshooting.

Can I use J-Link and ST-Link workflows for deterministic STM32 flashing?▼

Yes, deterministic STM32 flashing supports both J-Link and ST-Link workflows. It leverages J-Link, PyOCD fallback, and STM32CubeProgrammer CLI wrappers for broad tool compatibility, applying bootstrap-style scripts to streamline project-specific device detection and profiling.

What is the best way to verify STM32 firmware after flashing?▼

Verifying STM32 firmware after flashing is handled by CLI-driven Python scripts that execute an optional readback and verification step. The process stores diagnostic logs under a dedicated logs directory, ensuring repeatable results and simplified troubleshooting for regression testing.

Does STM32 flashing support regression testing and field diagnostics?▼

STM32 flashing supports regression testing and field diagnostics by applying deterministic flash and verify workflows. It automates firmware deployment across J-Link and ST-Link tools, providing consistent outcomes and logging capabilities required for continuous integration and on-site debugging.

How do I collect diagnostic logs for STM32 flash programming?▼

Collecting diagnostic logs for STM32 flash programming is automatic via the Python orchestration scripts. The system generates and stores logs under a dedicated logs/flash directory during erase, flash, verify, and readback operations, providing an audit trail for troubleshooting and regression analysis.