Registry / devops / pyocd-pemicro

pyocd-pemicro

JSON →
library1.1.5pypypiunverified

A PyOCD debug probe plugin for PEMicro debug probes (e.g., Cyclone, Multilink). Currently at v1.1.5, released with pypemicro v0.1.10 compatibility. Low release cadence, mostly maintenance.

pip install pyocd-pemicro
INSTALL
IMPORT
SIG · PYOCD-PEMICRO
P
pyocd-pemicro
devopspythonv1.1.5
Install
1.8s avg
Import
Disk
26MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.1.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 28.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 29MB
26MB installed
● package 26MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PemicroProbe
from pyocd_pemicro import PemicroProbe
from pyocd.probe.pemicro import PemicroProbe

Minimal example to discover and connect to a PEMicro probe via PyOCD.

import os from pyocd.core.helpers import ConnectHelper # Ensure PEMicro library is available (install pypemicro) # List available probes probes = ConnectHelper.get_all_connected_probes(blocking=False) for probe in probes: print(probe.product_name) # Connect to the first available PEMicro probe if probes: session = ConnectHelper.session_with_chip(probe=probes[0], target='target_name') session.open() # ... debugging commands ... session.close()
Debug
Known issues
breakingpyocd-pemicro v1.0.4 added a dependency on pyocd, but v1.0.5 removed it to avoid circular dependency. If you upgrade from <1.0.5 to >=1.0.5, you may need to install pyocd separately.
fix
Install pyocd explicitly if needed: pip install pyocd
affects: from 1.0.4 to 1.0.5
deprecatedpypemicro v0.1.8 introduced an AttributeError in __del__(), causing v1.1.2 to revert to v0.1.7. Use pypemicro >=0.1.9 or >=0.1.10 with pyocd-pemicro >=1.1.3.
fix
Upgrade pyocd-pemicro to >=1.1.3, which requires pypemicro >=0.1.9
affects: pyocd-pemicro <1.1.3 with pypemicro 0.1.8
gotchaPEMicro library is not available on all architectures (e.g., Apple M1). pyocd-pemicro catches missing library exceptions and returns no probes silently.
fix
Check that your system architecture is supported by the PEMicro backend. On M1, use Rosetta or a x86_64 Python environment.
affects: all versions
gotchapyocd-pemicro is a plugin and must be installed in the same environment as pyocd. If installed separately, pyocd may not detect it automatically.
fix
Install both in the same environment; verify with: python -c "import pyocd.probe.pemicro"
affects: all versions
Upgrade
Version history
1.1.5latest on PyPI · released Feb 23, 2023
Audit
Dependencies
pypemicrorequiredUnderlying library to communicate with PEMicro probes
pyocdoptionalDebug probe framework (optional at runtime but needed for probe listing)
Agent activity
12 hits · last 30 days
node
6
Resources
pyocd-pemicro — pip install pyocd-pemicro · libregistry