Skip to content

cdleonard/pyopenocd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python OpenOCD wrapper

This is a simple module for interfacing with openocd via TCL api.

Installation

pip install git+https://github.com/cdleonard/pyopenocd

Usage

>>> from openocd import OpenOcdTclRpc
>>> with OpenOcdTclRpc() as openocd:
...     print(openocd.run('expr 1 + 1'))
...
2

Command line

The openocd module is executable and can serve as a simple openocd remote from shell scripts:

$ openocd-remote run expr 1 + 2
3
$ openocd-remote run targets
...

Testing

pytest and tox are used for testing. Most useful tests require openocd to be running but they are skipped by default unless --openocd-running is passed on cmdline:

tox -- --openocd-running

About

Python wrapper for OpenOCD tclrpc api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages