PEMicro Debug Probe Python Interface
raw JSON → 0.1.11 verified Mon Apr 27 auth: no python
Python library to control PEMicro debug probes (e.g., Multilink, Cyclone) for programming and debugging embedded targets. Current version 0.1.11, supports Python >=3.7, with limited API stability.
pip install pypemicro Common errors
error ImportError: cannot import name 'ProbeInterface' from 'pypemicro' ↓
cause ProbeInterface was renamed to PyPEMicro in version 0.1.10+.
fix
Change import to
from pypemicro import PyPEMicro. error AttributeError: 'PyPEMicro' object has no attribute 'enumerate_probes' ↓
cause The method was renamed to `enumerate_devices` in version 0.1.9+.
fix
Use
PyPEMicro.enumerate_devices() instead. error pypemicro.exceptions.ProbeNotFoundError: No probe found ↓
cause No PEMicro debug probe is connected or drivers are missing.
fix
Verify probe connection and install required drivers (PEMicro driver for your OS).
Warnings
deprecated The old import `from pypemicro import ProbeInterface` is removed in 0.1.10+; use `from pypemicro import PyPEMicro`. ↓
fix Replace `ProbeInterface` with `PyPEMicro`.
breaking The method `enumerate_probes()` no longer exists; use `probe_list = PyPEMicro.enumerate_devices()` instead. ↓
fix Call `PyPEMicro.enumerate_devices()` and iterate the returned list.
Imports
- PyPEMicro
from pypemicro import PyPEMicro - PYDEBUG_OPEN
from pypemicro import PYDEBUG_OPEN
Quickstart
from pypemicro import PyPEMicro, PYDEBUG_OPEN
probe = PyPEMicro()
probe.connect()
probe.open(open_mode=PYDEBUG_OPEN)
print("Connected to", probe.get_serial_number())
probe.close()