-
Notifications
You must be signed in to change notification settings - Fork 0
Home
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.
This is inspired by apps like:
- ST's CubeMonitor
- ST's older STM Studio
- TI's GUI Composer
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.
- pyOCD_read_uwTicks.py - trivial console app that reads uwTicks from firmware
- tkgui_read_usTicks.py - Similar to pyOCD_read_uwTicks.py but uses a tk gui. Also can clear uwTicks.