memory synchronization

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

memory synchronization

533 Views
alexeimerkushin
Contributor I

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

0 Kudos
3 Replies

444 Views
LPP
NXP Employee
NXP Employee

Please refer to Section 3.4 of this application note:

https://www.nxp.com/docs/en/application-note/AN3441.pdf 

Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

444 Views
lisettelozano
NXP Employee
NXP Employee

Hello Alexei, 

Do you have the part number of the NXP device that you are using?

Best Regards, 

Paulina

0 Kudos

444 Views
alexeimerkushin
Contributor I

Dear Paulina,

We use next NXP device:

P4080, p/n-P4080NSN7PNC

Best Regards

Alexei

0 Kudos