Skip to main content

Python interface library for OpenOCD

Project description

openocd

Python interface library for OpenOCD.

Dependencies

  • Python >= 3.10
  • typing_extensions >= 4.0.0

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()

Support

If you appreciate the project, feel free to donate on Liberapay:

Liberapay donation link

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.3.0.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

openocd-0.3.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file openocd-0.3.0.tar.gz.

File metadata

  • Download URL: openocd-0.3.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for openocd-0.3.0.tar.gz
Algorithm Hash digest
SHA256 dc9f88ea54728b86b7cc2e1026d4528c40bcb4bdd7855c9960f65d3169361c36
MD5 a97f8d9cfd504e3493bfc7763ccab0fa
BLAKE2b-256 c06c88623469c3a62a7f104c42b9acd99c895ac39c154c6f9177b290b71eba39

See more details on using hashes here.

File details

Details for the file openocd-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: openocd-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for openocd-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d56b7cc577ac0777edbf393d455cd358f50dfe22780b46cdc70bf3accc76503
MD5 0be954011f6f0f66c0570f3f0371d9ac
BLAKE2b-256 d1790e533be78bea73951734b376af99f7d84414416e9923922bfab20db63a68

See more details on using hashes here.

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