We are using a Zynq-7000 SoC, and we are trying to do read and write to a locked L2 Cache through JTAG.
From JTAG, Read works properly but writes makes the specific cache line corrupted,
Step 1 : Initial Setup
1. Wrote an application Which runs from OCRAM
2. Load and lock entire L2 cache(pl310) to non existent address (physically not present SRAM address). L2 Cache is in Write-back, write-allocate mode
3. After that verified the L2 cache data from application itself and it works
Step2: Read from JTAG - Proper
Reading the L2 cache mapped locations from JTAG (using xilinx XSDB console) and it gives the application written value
Write through JTAG
Next, to check support for writing, we tried to write to a location in L2 cache from JTAG.
After writing, when we read back from same location through JTAG(using xilinx XSDB console) and application, we found that cache line size gets “corrupted”.
So could someone please tell me why locked L2 cache data get corrupted after writing through JTAG ?
ThanksAbhilash VR