Skip to main content
Aarra.1
Associate III
April 5, 2022
Question

Read and write SDRAM using Dual Core STM32H7

  • April 5, 2022
  • 2 replies
  • 1043 views

Hello,

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

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
April 5, 2022

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Aarra.1
Aarra.1Author
Associate III
April 6, 2022

Thank you for your response sir.