Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PyOCD One-Click ProgrammerNew to Visual Studio Code? Get it now.
PyOCD One-Click Programmer

PyOCD One-Click Programmer

COITSILLE

|
38 installs
| (0) | Free
One-click flashing with pyOCD - auto-detects targets and ELF files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PyOCD One-Click Programmer / PyOCD һ����¼

���� | English


����

һ�� VS Code ��չ��ʹ�� pyOCD ������¼�̼����Զ����ֹ������е� ELF �ļ����ṩĿ��оƬѡ��һ�������¼��

����

  • ״̬�� ?Flash ��ť��һ����¼��
  • �Զ����� .elf �ļ�������������������Ŀ¼��build/��out/��Debug/��Release/��bin/����

����

  • �谲װ pyocd ������ PATH��pip install pyocd
  • ���鰲װ Python 3��

ʹ�÷���

  1. ͨ������������� PyOCD: Select Target ѡ��Ŀ��оƬ����ֱ�ӵ� Flash����չ����ʾ��ѡ��
  2. ������Ŀ���� .elf �ļ���
  3. ���״̬�� ?Flash ��ť������ PyOCD: Flash��ѡ�� ELF �ļ����ȴ���¼��ɡ�

����

���� ˵��
PyOCD: Select Target ѡ��Ŀ��оƬ
PyOCD: Flash ѡ�� ELF ����¼
PyOCD: Toggle Reset After Load �л���¼���Ƿ�λ

����

������ ���� Ĭ��ֵ ˵��
pyocd-one-click-loader.target string "" Ŀ��оƬ���ƣ��� stm32f407vgtx
pyocd-one-click-loader.resetAfterLoad boolean true ��¼���Ƿ�λ��false �� --no-reset��
pyocd-one-click-loader.elfSearchPaths string[] [] �Զ��� .elf ����Ŀ¼���� ["build", "out/Debug"]���������Զ����

�ļ��й������У�����д�뵱ǰ�ļ��е� .vscode/settings.json��

��������

  • �Ҳ��� .elf �ļ���������Ŀ����ͨ�� elfSearchPaths ����ָ�� .elf ����Ŀ¼��
  • �Ҳ��� pyOCD�����ն����� pyocd --version ȷ���Ѱ�װ��

English

A VS Code extension for one-click firmware flashing with pyOCD. Auto-discovers ELF files, provides target selection, and flashes with a single click.

Features

  • Status bar ?Flash button for one-click flashing.
  • Auto-detects .elf files, preferring common build folders (build/, out/, Debug/, Release/, bin/).

Requirements

  • pyocd must be installed and on PATH: pip install pyocd
  • Python 3 recommended.

Usage

  1. Run PyOCD: Select Target to choose your board; or just click Flash and pick when prompted.
  2. Build your project to produce a .elf file.
  3. Click the ?Flash status bar button or run PyOCD: Flash, pick the ELF, done.

Commands

Command Description
PyOCD: Select Target Choose target chip
PyOCD: Flash Pick an ELF 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.elfSearchPaths string[] [] Custom .elf 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 .elf 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.

CHANGELOG

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft