Skip to main content

Low-level protocol library for communicating with Microchip CMSIS-DAP based debuggers

Project description

pyedbglib

pyedbglib is a low-level protocol library for communicating with Microchip CMSIS-DAP based debuggers

Usage

pyedbglib does not provide any end-user functionality on its own. It is implemented according to the "Atmel EDBG-based Tools Protocols" document although the code and the documentation may not always be in sync. pyedbglib is intended to be used by Python applications communicating with Microchip target devices via Microchip CMSIS-DAP based debuggers.

The following Atmel/Microchip debuggers are supported:

  • JTAGICE3 (only firmware version 3.x)
  • Atmel-ICE
  • Power Debugger
  • EDBG
  • mEDBG
  • PKOB nano (nEDBG)
  • MPLAB PICkit 4 In-Circuit Debugger (only when in 'AVR mode')
  • MPLAB Snap In-Circuit Debugger (only when in 'AVR mode')

Not all debuggers support all protocols or functions within them.

Linux systems

HIDAPI needs to build using packages: libusb-1.0.0-dev, libudev-dev

Create udev rules for the debuggers:

Example udev rules file Store in /etc/udev/rules.d

#HIDAPI/libusb:

# JTAGICE3
SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2140", MODE="0666"
# Atmel-ICE
SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2141", MODE="0666"
# Power Debugger
SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2144", MODE="0666"
# EDBG - debugger on Xplained Pro
SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2111", MODE="0666"
# mEDBG - debugger on Xplained Mini
SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2145", MODE="0666"
# PKOB nano (nEDBG) - debugger on Curiosity Nano
SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2175", MODE="0666"
# MPLAB PICkit 4 In-Circuit Debugger
SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2177", MODE="0666"
# MPLAB Snap In-Circuit Debugger
SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2180", MODE="0666"

pyedbglib also provides helper functions for accessing serial ports. The user has to be part of the 'dialout' group to allow this. This can be done by executing:

sudo adduser $USER dialout

It may also be necessary to grant read+write permission to the port, for example:

sudo chmod a+rw /dev/ttyACM0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyedbglib-2.17.7.70-py3-none-any.whl (60.9 kB view details)

Uploaded Python 3

File details

Details for the file pyedbglib-2.17.7.70-py3-none-any.whl.

File metadata

  • Download URL: pyedbglib-2.17.7.70-py3-none-any.whl
  • Upload date:
  • Size: 60.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for pyedbglib-2.17.7.70-py3-none-any.whl
Algorithm Hash digest
SHA256 b4085459f2f395a70b8705c5d3ce47edab7cd83abb283d3e96d28447cd7b7eed
MD5 e91babcd53b1fd71df9de69b87ca4dba
BLAKE2b-256 bdad3761412622338b78d0423a2945a0abb21a5c5e63a0e8b9d9a87fef6b8b32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page