This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to use DWT mechanism of cortex-m33 to obtain the corresponding instruction and accessed memory in the run time?

I used two registers to configure and monitor continuous memory being accessed, the code shows as following:

Then, every instruction writes the memory will trigger an exception and invoke the DebugMon_Handler.

What I want is to do is to obtain which instruction to write the memory in DebugMon_Handler and the exact memory address involved.

Any suggestions on how to obtain the exact instruction & memory address that triggers the interrupt?

0