Showing results for 
Search instead for 
Did you mean: 

Read and write SDRAM using Dual Core STM32H7



I have been working with STM32H7 microcontrollers for a while now but have always used the single core. Now I want to use the Dual core to read and write data in the external SDRAM. I have looked through all materials available online but could not find a particular way.

I have a few other questions

  1. Can read write operations take place simultaneously into the SDRAM from the 2 cores. Eg: Read SDRAM using core M7 at the same time write write data into the SDRAM using core M4
  2. Exchange of data between the two cores

Kindly help me out with these clarifications

Thank you


It should access just like any other memory, via its specific address space.

It doesn't "take place simultaneously", one core gets there first, and the accesses are arbitrated by the bus.

For basic inter-core messaging, use the dual-ported RAM, and HSEM as the primary methods.

The SDRAM can be used, but will be relatively less efficient.

Watch cache-coherency, you'd probably want caching on the M7 side, to reduce the latency/penalties, but you could subdivide the MPU space to cached/non-cached.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Thank you for your response sir.