Bfd register capture

From Sonder4/STM32-BFD-Kit · View interactive version

Bfd register capture is an AI agent skill from the GitHub repository Sonder4/STM32-BFD-Kit. Use when sampling STM32 peripheral registers, tracking register changes over time, or exporting register snapshots to CSV for hardware-state analysis.

How to use this skill

Skill file

BFD Register Capture

Self-Improvement Loop (Required)

Use this skill to capture register evidence with repeatable scripts.

Quick Start

  1. Run bootstrap profile first.
  2. Select peripheral and register set.
  3. Capture short first, then extend duration.

Core Commands

# 0) Bootstrap profile (required)
python3 ./.codex/skills/bfd-project-init/scripts/bootstrap.py --project-root . --mode check
# USART1, 1 second
./.codex/skills/bfd-register-capture/scripts/capture_registers.sh -p USART1 -d 1 -o logs/debug/usart1_1s.csv
# CAN1 key status registers (STM32F427 bxCAN)
./.codex/skills/bfd-register-capture/scripts/capture_registers.sh -p CAN1 -r MCR,MSR,TSR,RF0R,RF1R,ESR,BTR -d 5 -o logs/debug/can1_status.csv
# Fast status check
./.codex/skills/bfd-register-capture/scripts/capture_registers.sh -p CAN1 -s
# High-frequency batch capture
./.codex/skills/bfd-register-capture/scripts/jlink_batch_capture.sh USART1 10 logs/debug/usart1_batch.csv

Workflow

  1. Run bootstrap profile.
  2. Define peripheral and registers.
  3. Run short validation capture.
  4. Run production capture and export CSV.

Hard Rules

Scripts

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.