Problem of Communication between M4 and A9 on SOLOX

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

Problem of Communication between M4 and A9 on SOLOX

517 Views
alessandromaggi
Contributor I

We need to transfer some data from M4 to A9. For this purpose we use a shared memory in RAM (DDR). M4 writes the data and then rise a GPIO to tell the A9 data is available. M4 is running free RTOS with cache disabled. A9 is running linux 4.1.5 with PREEMT RT patch , cache enabled and it is suspended on the GPIO change with the poll primitive. Usually the process works, but sometimes when the A9 reads old data. We suspect that it's accessing its own cache and not the RAM. We tried to disable the cache in the kernel but without success (kernel hangs very early after u-boot launch it we don't see a single print).

So questions are:

  1.  Is there a way to declare a part of the RAM as uncacheable in the A9 core when running Linux ?
  2. Are there better alternatives for communication between cores ? We need to be very fast (-> we need to minimize latency).
Labels (1)
0 Kudos
1 Reply

384 Views
igorpadykov
NXP Employee
NXP Employee

Hi Alessandro

-linux device driver - how to allocate non-cacheable physical memory in kernel? - Stack Overflow 

-seems not

had you tried with nxp releases described on

i.MX 6 / i.MX 7 Series Software and Development Tool|NXP 

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

0 Kudos