Skip to content

HonzaMat/PyOpenocdClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

984d654 · Feb 9, 2025

History

36 Commits
Feb 9, 2025
Sep 8, 2024
Feb 9, 2025
Feb 9, 2025
Nov 16, 2024
Sep 5, 2024
Sep 5, 2024
Jul 13, 2024
Sep 8, 2024
Sep 5, 2024
Sep 5, 2024
Sep 6, 2024
Jul 13, 2024
Sep 5, 2024
Sep 5, 2024
Sep 5, 2024
Nov 17, 2024
Jul 21, 2024

Repository files navigation

PyOpenocdClient

PyOpenocdClient is a Python library for controlling OpenOCD software tool.

It allows to send TCL commands from Python programs to OpenOCD — for instance commands like halt execution of the program, view data in memory, place breakpoints, single-step, ...

Main features of PyOpenocdClient:

  • allow to send any TCL command to OpenOCD and obtain its result;

  • shorcuts for quick use of most common OpenOCD commands are provided;

  • command failures are detected (and reported as Python exceptions by default);

  • the code is fully covered via unit tests;

  • automatic integration testing against multiple version of OpenOCD;

  • the code is multiplatform and portable — it does not have any dependencies except for the Python's standard library;

  • fully open-source under a permissive license (MIT license).

Quick instructions

Install PyOpenocdClient package using Pip:

$ python3 -m pip install PyOpenocdClient

Basic usage:

from py_openocd_client import PyOpenocdClient

with PyOpenocdClient(host="localhost", port=6666) as ocd:

    ocd.reset_halt()
    ocd.cmd("load_image path/to/program.elf")
    ocd.resume()
    # ...

Documentation

For full documentation, please visit: https://pyopenocdclient.readthedocs.io/en/latest/

 

About

Python library for controlling OpenOCD

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published