Skip to main content

Python interface library for OpenOCD

Project description

openocd

Python interface library for OpenOCD.

Dependencies

  • Python >= 3.6

Installation

Prerequisites:

To install this package, run:

python setup.py install

Example

from openocd import OpenOcd

with OpenOcd() as oocd:
    oocd.halt()
    registers = oocd.read_registers(['pc', 'sp'])

    print('Program counter: 0x%x' % registers['pc'])
    print('Stack pointer: 0x%x' % registers['sp'])

    oocd.resume()

License

This project is licensed under the GPLv3+ - see the LICENSE file for details.

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

openocd-0.2.0.tar.gz (17.5 kB view hashes)

Uploaded Source

Built Distribution

openocd-0.2.0-py3-none-any.whl (18.5 kB view hashes)

Uploaded Python 3

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