Is there a way to view Data and Program cache hits on the Cortex Core from within CCSv4?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is there a way to view Data and Program cache hits on the Cortex Core from within CCSv4?
To get cache performance on A series, you need to use the A-series performance monitoring unit. You can read about it here: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0388f/BEHGGDJC.html
I doubt that this is available from PMU, but I could be mistaken. Some c6x CPU such as 6455 have similar ability. PMU is designed for statistics at a more macro level.
Another way to get such information would be to do cycle accurate instruction trace and look at timestamps to find addresses where it stalls out for program or data. From looking at the large stalls, you can get the addresses and then spend time to figure out whether it is program or data stall. If you do this, ETB would probably not be enough information, and you would likely need an external trace receiver with a very large buffer such as Lauterbach Trace 32. This also assumes you have the appropriate connector on the card.