Skip to main content

CMSIS-DAP debugger access for Python

Project description

pyDAPAccess is an Open Source python 2.7 library for communicating with ARM Cortex-M microcontrollers through CMSIS-DAP over USB. Currently Linux, OSX, and Windows are supported.

For more information on CMSIS-DAP you can find the official standard:

Installation

No user installation of this library is necessary. Tools which rely on pyDAPAccess must specify it as a dependency. This will cause pip to install it automatically as soon as something depends on it.

One case where pyDAPAccess will need to be installed manually is when doing development. Installation can be done with pip using the following command:

$ pip install pydaplink
Note that you may run into permissions issues running this command.
You have a few options here:
  1. Run with sudo -H to install pyDAPAccess and dependencies globally

  2. Specify the --user option to install local to your user

  3. Run the command in a virtualenv local to a specific project working set.

Development Setup

pyDAPAccess developers are recommended to setup a working environment using virtualenv. After cloning the code, you can setup a virtualenv and install the pyDAPAccess dependencies for the current platform by doing the following:

$ virtualenv env
$ source env/bin/activate
$ pip install -r dev-requirements.txt

On Windows, the virtualenv would be activated by executing env\Scripts\activate.

Examples

For examples you can look into pyDAPAccess’s usage in pyOCD:

Project details


Download files

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

Source Distribution

pyDAPAccess-0.1.4.zip (57.2 kB view hashes)

Uploaded Source

Supported by

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