3 replies
September 2020

eclig

Excellent post, as always. You have content of incredible high quality here, thank you very much!

There is a question I have since quite some time now: can the DWT unit be used together with SWO for tracing a variable value without interrupting the program flow?

1 reply
September 2020

francois

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:

  1. 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.
April 2023

bkausbk

Is there a way to set a data watchpoint in code during execution on ARM926 hardware?