Part Number: AM3358
Tool/software: Code Composer Studio
Using CCS 9.0.1.00004 running under Ubuntu to check the MMU configuration in ti-processor-sdk-rtos-am335x-evm-05.01.00.11/pdk_am335x_1_0_12/packages/MyExampleProjects/USB_DevMsc_evmAM335x_armExampleProject found that the when calling the Page Table Visibility DSS API's from the CCS Scripting Console that they display confusing information if the target is running. Used a AM335x Starter Kit with onboard XDS100v2.
1. If the target is running then ptvSummary displays a zero TTBR0 Base Address:
js:> ptvSummary MMU mode is Short Format ( 32 Bit ) Number of root page tables is 1 TTBR0 Base Address=0x0 Min VA=0x0 Max VA=0xffffffff
And address lookups report no mapping:
js:> ptvLookupAddress 0x47401400
Virtual Address = 0x0000000047401400 --> Physical Address = Not mapped
= >
TTBR0 Base Address = 0x0
Min VA = 0x0
Max VA = 0xffffffff
= >
Type = Invalid
Index = 0x474
Min VA = 0x0
js:> ptvReverseLookup 0x47401400
Physical Address = 0x0000000047401400 --> Virtual Address = Not mapped
2. Whereas if the target is halted the expected MMU mode summary and mappings are reported:
js:> ptvSummary
MMU mode is Short Format ( 32 Bit )
Number of root page tables is 1
TTBR0 Base Address=0x80200000 Min VA=0x0 Max VA=0xffffffff
js:> ptvLookupAddress 0x47401400
Virtual Address = 0x0000000047401400 --> Physical Address = 0x0000000047401400
= >
TTBR0 Base Address = 0x80200000
Min VA = 0x0
Max VA = 0xffffffff
= >
Type = L1 Section
Index = 0x474
Min VA = 0x47400000
Min PA = 0x47400000
Region Size = 0x100000
S = 0x0
AP[1:0] = 0x3
nG = 0x0
AP[2] = 0x0
NS = 0x0
TEX[2:0] = 0x0
XN = 0x1
Domain[3:0] = 0x0
js:> ptvReverseLookup 0x47401400
Physical Address = 0x0000000047401400 --> Virtual Address = 0x0000000047401400
Can the Page Table Visibility DSS API's be changed to display a message if the target is running, and produce no output, rather than producing confusing MMU information?