Bfd stlink interface

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

Bfd stlink interface is an AI agent skill from the GitHub repository Sonder4/STM32-BFD-Kit. Use when flashing, reading memory, writing memory, or starting debug sessions through ST-Link tools such as STM32_Programmer_CLI or ST-LINK_gdbserver, especially when J-Link-specific commands do not apply.

How to use this skill

Skill file

BFD ST-Link Interface

Use this skill for ST-Link-specific probe control. This skill is independent from J-Link and does not describe HSS flows.

Quick Start

python3 ./.codex/skills/bfd-project-init/scripts/bootstrap.py --project-root . --mode check
/opt/st/stm32cubeclt_1.19.0/STM32CubeProgrammer/bin/STM32_Programmer_CLI -l stlink
python3 BFD-Kit/skills/codex/bfd-flash-programmer/scripts/stlink_flash.py --firmware "${STM32_HEX}"

Core Commands

# Connect and identify target
STM32_Programmer_CLI -c port=SWD mode=UR reset=HWrst freq="${STM32_SPEED_KHZ}"
# Read memory
STM32_Programmer_CLI -c port=SWD mode=UR reset=HWrst freq="${STM32_SPEED_KHZ}" -r32 0x20000000 4
# Write memory
STM32_Programmer_CLI -c port=SWD mode=UR reset=HWrst freq="${STM32_SPEED_KHZ}" -w32 0x20000000 0x12345678 -nv
# Start ST-Link GDB server
ST-LINK_gdbserver -p 61234 -m 1

Hard Rules

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.