|Non-Confidential||PDF version||ARM DUI0446Z|
|Home > Debugging Embedded Systems > About debugging caches|
DS-5 Debugger allows you to view contents of caches in your system. For example, L1 cache or TLB cache.
You can either view information about the caches in the Cache Data view or by using the cache list and cache print commands in the Commands view.
The Cache debug mode option in the DTSL Configuration Editor dialog enables or disables the reading of cache RAMs in the Cache Data view. Selecting this option enables the reading of cache RAMs every time the target stops, if the Cache Data view is suitably configured.
Enabling the Preserve cache contents in debug state option in the DTSL Configuration Editor preserves the cache contents while the core is stopped. If this option is disabled, there is no guarantee that the cache contents will be preserved when the core is stopped.
You can either enable the options prior to connecting to the target from the Debug Configurations dialog, or after connecting from the Debug Control view context menu.
You can use the Memory view to display
the target memory from the perspective of the different caches present on the target. On
the command line, to display or read the memory from the perspective of a cache, prefix
the memory address with
the Cortex-A15 processor, possible values of
# Display memory from address 0x9000 from the perspective of the L1D cache. x/16w N<cacheViewID=L1D>:0x9000 # Dump memory to myFile.bin, from address 0x80009000 from the perspective of the L2 cache. dump binary memory myFile.bin S<cacheViewID=L2>:0x80009000 0x10000 # Append to myFile.bin, memory from address 0x80009000 from the perspective of the L3 cache. append memory myFile.bin <cacheViewID=L3>:0x80009000 0x10000