Skip to content
Jim Frederick edited this page May 3, 2023 · 14 revisions

Use your Python app to create a customized live-watch window for your firmware by talking over SWD.

Firmware debuggers have nice capabilities to inspect and modify variables in firmware. Some debuggers have 'live-watch' windows for variable access without pausing or stopping firmware.

Live-Watch Window in STM32CubeIDE

These capabilities are available to Python apps which is handy for building test applications without adding code to the firmware. Examples here leverage libraries like pyOCD.

Graviz Diagram

This is inspired by apps like:

But, unlike these apps, a Python interface allows more capabilities, like automated testing, firmware download/update and all this without burdening embedded firmware with additional code.

The examples here are typically based on STM32 microcontrollers using ST's tool suite like CubeMX, CubeIDE, and use SWD (ST-Link) to access 'live-watch' data over USB.

  • pyocd - directory has examples based on pyOCD for the debug interface and .elf parser.
Clone this wiki locally