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
- Use
freq=<kHz>forSTM32_Programmer_CLISWD connections; do not usespeed=<kHz>. - Lock the probe by serial number when multiple ST-Links may be connected.
- Treat ST-Link memory access as polling/snapshot style access, not as an HSS-equivalent path.
- Keep ST-Link guidance separate from J-Link-only flows.
Related Skills
bfd-flash-programmerbfd-debug-interfacebfd-strtt-rtt