Is it possible to use HW tracing from software?
Means enable trace and read the contents of the ETB from the code running on the same core.
Cheers
Hi again,
If you are using a Cortex-A9 then it uses Program Flow Trace (PFT) to provide instruction flow (trace) via a Program Trace Macrocell (PTM).
To program up the PTM to trace all, take a look here :
https://developer.arm.com/docs/ihi0035/b/program-trace-macrocell-programmers-model/programming-the-ptm-to-trace-all-execution
Of course, you will have to look at the NXP documentation to find the memory addresses. And I am assuming you are doing this under an RTOS, otherwise if it's Linux then use CSAL as described earlier.
Regards
Stuart
Hi Stuart,
strange, your earlier answer (and my reply to it) vanished. And with it the link to the CSAL, so I repeat it here:github.com/.../CSAL
HI,
Yes, I also see the same problem as well. I will see what had happened internally. Please bear with me.
In the meantime I hope all the previous information helped.
Regards,