Skip to content

screwer/OpenOCD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

OpenOCD

This library allows to control OpenOCD debug server via it's telnet connection port.

Getting Started

TODO: Write more detailed documentation.

The main purpose is automated debug scripts.

Typcal usage scenario

    from OpenOCD import OpenOCD

    ocd = OpenOCD()
    ocd.Reset(Init=True)

    ocd.RemoveBPs() # remove all (previous) installed BreakPoints
    ocd.RemoveWPs() # remove all (previous) installed WatchPoints

    [set need break/watch points and other automated debug session prerequisites]

    while True:
        r = ocd.Resume()    # run until stop condition
        r = ocd.Readout()   # read all OpenOCD output

        [read registers, change some of them and other debug logic here]


Examples

Rich example of library functions usage is 'dbgbot', tool i wrote for reverse Iron Soldering Station firmare, based on STM32 MCU.

Known Bugs

Some FLASH-oriented methods are unfinished.

About

OpenOCD python library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages