You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.