A VS Code extension for one-click firmware flashing with pyOCD. Auto-discovers firmware files (.elf, .hex, etc.), provides target selection, and flashes with a single click.
Features
Status bar ?Flash button for one-click flashing.
Auto-detects firmware files by configured extensions (default: .elf, .hex) with priority order. When multiple formats exist for the same base name, only the highest-priority one is shown.
Prefers common build folders (build/, out/, Debug/, Release/, bin/).
Requirements
pyocd must be installed and on PATH: pip install pyocd
Python 3 recommended.
Usage
Run PyOCD: Select Target to choose your board; or just click Flash and pick when prompted.
Build your project to produce a firmware file (e.g. .elf, .hex).
Click the ?Flash status bar button or run PyOCD: Flash, pick the firmware file, done.
Commands
Command
Description
PyOCD: Select Target
Choose target chip
PyOCD: Flash
Pick a firmware file and flash
PyOCD: Toggle Reset After Load
Toggle post-flash reset
Configuration
Setting
Type
Default
Description
pyocd-one-click-loader.target
string
""
Target name, e.g. stm32f407vgtx
pyocd-one-click-loader.resetAfterLoad
boolean
true
Reset after load (false passes --no-reset)
pyocd-one-click-loader.firmwareExtensions
string[]
[".elf", ".hex"]
Firmware file extensions to search for, in priority order. Example: [".elf", ".hex", ".bin"]
pyocd-one-click-loader.elfSearchPaths
string[]
[]
Custom firmware search dirs, e.g. ["build", "out/Debug"]. Leave empty to auto-detect.
In folder workspaces, settings are written to the current folder's .vscode/settings.json.
Troubleshooting
No firmware files found: Build the project, or set elfSearchPaths to point to your output directory.
pyOCD not found: Run pyocd --version in a terminal to verify installation. If you did install, run Developer: Reload Window may work
中文
一个 VS Code 扩展,使用 pyOCD 快速烧录固件。自动发现工作区中的固件文件(如 .elf、.hex),提供目标芯片选择,一键完成烧录。