$npx skillfedfor your agent

pyocd

Cortex-M debugger for Python

Worth itPyPI Software DevelopmentReleased Jul 20261.4M downloads / moApache 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pyocd-0.45.1-py3-none-any.whl
v0.45.1 · released 2026-07-21 · Python >=3.9.0 · 17 runtime deps: capstone, cmsis-pack-manager, colorama, hidapi, importlib_metadata, importlib_resources, intelhex, intervaltree

Yes. pyOCD is actively maintained, has low install friction, carries no security vulnerabilities, and is licensed permissively. It is the right choice if you need a Python-native, cross-platform debugger for Cortex-M development or CI automation. The only prerequisite is a supported debug probe and libusb; if you have those, installation and basic use are straightforward.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires libusb and a supported debug probe (CMSIS-DAP, J-Link, STLink, etc.) connected via USB.
  • Python 3.9.0 or later required.
  • Low install friction with a pure-Python wheel and 17 runtime dependencies that are widely available.

License · maintenance · safety

Apache 2.0 (permissive) — Apache 2.0 is permissive, allowing commercial and private use without restriction or copyleft obligation.

last release 2026-07-21 (24 days) · last repo commit 2026-07-24 · 1,443 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,372,352 downloads/mo, #3,991 on PyPI

Verify before relying

pip install pyocd

from pyocd.core.target import Target
from pyocd.probe.pydaplink import DAPLink

probe = DAPLink.get_connected_probes()[0]
target = Target(probe.create_target())
target.halt()
memory = target.read_memory(0x0, 4)
target.resume()
  • Whether the 70+ built-in MCU support claim is current or if that list has grown since v0.45.1.
  • Specific performance characteristics when handling large binary or ELF files during flash programming.
  • Compatibility matrix detail for all listed debug probes across different OS versions.
Same gist for agents: .md · .json

What it is and what it does

pyOCD is a cross-platform Python tool and library for programming and debugging Arm Cortex-M microcontrollers using a wide range of debug probes. It provides both a command-line interface with subcommands for common tasks (gdbserver, load, erase, reset, rtt, etc.) and a Python API for custom control and automation. The tool supports more than 70 popular MCUs natively and can extend support through CMSIS Device Family Packs to cover nearly every Cortex-M device on the market.

The package is built on 17 runtime dependencies including capstone for disassembly, hidapi and pyusb for USB communication, pyelftools for ELF parsing, and cmsis-pack-manager for device pack handling. It offers memory read/write, register access, breakpoint and watchpoint management, flash programming, binary/hex/ELF file loading, SWO/SWV support, and CoreSight DP/AP access. Configuration is supported through config files, user scripts, and direct API use, making it suitable for both interactive debugging and CI/CD test automation.

Use it for

  • Debug Arm Cortex-M firmware interactively using gdb via the gdbserver subcommand with GUI debugger support.
  • Automate flash programming and testing in CI pipelines by loading binaries and controlling device execution via the Python API.
  • Stream Segger RTT I/O from any supported debug probe without needing vendor-specific tools.
  • Inspect and modify MCU memory and registers in real time using the commander interactive REPL.
  • Program multiple MCU variants by managing CMSIS Device Family Packs for devices without built-in support.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

pyOCD is actively maintained, has low install friction, carries no security vulnerabilities, and is licensed permissively. It is the right choice if you need a Python-native, cross-platform debugger for Cortex-M development or CI automation. The only prerequisite is a supported debug probe and libusb; if you have those, installation and basic use are straightforward.

Install

pyocd on PyPI

Before you install

Low install friction with a pure-Python wheel and 17 runtime dependencies that are widely available. Active maintenance with a release 24 days ago and ongoing repository activity.

Requires libusb and a supported debug probe (CMSIS-DAP, J-Link, STLink, etc.) connected via USB. Python 3.9.0 or later required.

License in practice

Apache 2.0 is permissive, allowing commercial and private use without restriction or copyleft obligation.

Quickstart

pip install pyocd

from pyocd.core.target import Target
from pyocd.probe.pydaplink import DAPLink

probe = DAPLink.get_connected_probes()[0]
target = Target(probe.create_target())
target.halt()
memory = target.read_memory(0x0, 4)
target.resume()

Verify before relying

  • Whether the 70+ built-in MCU support claim is current or if that list has grown since v0.45.1.
  • Specific performance characteristics when handling large binary or ELF files during flash programming.
  • Compatibility matrix detail for all listed debug probes across different OS versions.

Package facts

LicenseApache 2.0 permissive
Python supportSupports the current Python release >=3.9.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
17 packages
capstonecmsis-pack-managercoloramahidapiimportlib_metadataimportlib_resourcesintelhexintervaltreelarklibusb-packagenatsortprettytablepyelftoolspylink-squarepyusbpyyamltyping-extensions
MaintenanceActively maintained 24 days since the last release
Last repo commit
First released
Downloads1,372,352 / month, #3,991 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: ManufacturingIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: POSIX :: BSDOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software DevelopmentTopic :: Software Development :: DebuggersTopic :: Software Development :: Embedded SystemsTopic :: Software Development :: TestingTopic :: Utilities

Evidence: pyocd-0.45.1-py3-none-any.whl

Tags

Capabilities
arm cortex-m debuggermicrocontroller programming toolgdb remote server for embeddedflash programming pythondebug probe interfaceembedded systems debuggingcmsis-dap debugger
Topics
embedded-systemsarm-cortexgdb-compatible
PyPI keywords
embeddeddebugdebuggerarmgdbgdbserverflashtest

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “arm cortex-m debugger”

  • pyocdpyOCD is a Python-based debugger and programmer for Arm Cortex-M…
  • pyocd-pemicroA PyOCD plugin that adds support for PEMicro debug probes…
  • cmsis-pack-managerQueries and manages device information from CMSIS PACKs, providing…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also pyocd-pemicro · spsdk-pyocd · pyudev · pypemicro · pylink-square · freertos-gdb · pygdbmi · Adafruit-Blinka · libusbsio · spsdk-mcu-link