AnsweredAssumed Answered

memory synchronization

Question asked by Alexei Merkushin on Oct 4, 2018
Latest reply on Oct 22, 2018 by LPP

Hello, 

I try to synchronize caching and I/O memory in my project. 

I have mapping of one physical memory area to two virtual blocks. First block has cache-able access and second standard I/O access. 

I write to physical memory via cache and try to read from I/O. 

Between the write and read process, I add call to sync() function, for flash cache data to memory. 

I can't read correct data from memory via I/O mapping block. 

Also I tried to use assembly call "mbr" with or without parameter. 

The result is same - wrong data after read operation.

Is somebody know how to synchronize the cache and I/O access?

Thanks in advance 

Alexei

Outcomes