Yes! I allude to it in Profiling Firmware on Cortex-M | Interrupt. You can setup ITM to output data over SWO when the DWT is triggered:
- DWT Data trace: When enabled, events are generated when a specific data address (or range of addresses) is accessed. The events contain the PC, the data address, and the data value.
Is there a way to set a data watchpoint in code during execution on ARM926 hardware?