I write into ddr or ram ,then I read in PL. As cache, I sometimes get the old value. Somebody help me in sdk.
But I don't know how to do it in petalinux.
In SDK, the solution is in
It only Xil_DCacheDisable();
He also told me a link ablout petalinux as
I can't know how to do,although it has a solution.
In fact, I don't want to disable the cache. I only need ensure that the data is really written into ram.
I follow the function Xil_DCacheDisable(), In fact, I only need the Xil_DCacheFlush().
What's the function name in petalinux for Xil_DCacheFlush()? DCacheFlush() ?
After I change ram, follow with Xil_DCacheFlush(), the ram read with PL is right.
I google and find:
in linux, cacheflush is for it, maybe the answer.