2026-02-24 6:16 AM - last edited on 2026-02-24 7:38 AM by Andrew Neil
Title edited - originally said, "sharing data between two boards"
Good day y'all,
I'm trying for the first time to have the two cores on a H7 board share data between one another on shared memory, in particular cm7 writing data and cm4 read it.
From what I understand I need to use a semaphore to signal back and forth to alert the cm4 when there is new data in every iteration, the theory I get, but I'm not sure of the shared memory allocation and the semaphore correct availability. Is there any example code I can see to understand how it's supposed to go? I tried looking at the ide examples, but anytime I try to open the example folder the ide application just dies :\
Thx all for the advices,
P.S. I'm also using FREERTOS but it's not supposed to cause any problem but you never know
2026-02-24 7:22 AM
A few options:
STM32H7 Dual-Core: How to communicate between CM4 ... - STMicroelectronics Community
How to implement inter-processor communication in ... - STMicroelectronics Community
2026-02-24 7:28 AM
@Jack_DB Your title says, "sharing data between two boards", but you actually seem to be talking about sharing data between the cores in one chip - therefore on the same board ?
2026-02-24 7:34 AM
Yeah sorry misspoke, I meant two cores...
2026-02-24 7:41 AM
OK - title edited.
I think OpenAMP (Open Asymmetric Multi-Processing) is what you're looking for - see:
2026-02-25 1:47 AM - edited 2026-04-13 2:06 AM
Almost the same question asked in this post: How can I bridge between two cores in STM32H745 to share data?
As you are using FreeRTOS, from the AN5617: the usage of stream buffer/message buffer in FreeRTOS context:
2026-02-25 2:15 AM
@Jack_DB wrote:P.S. I'm also using FREERTOS
So take a look what facilities FreeRTOS itself provides for inter-processor comms & multiple cores; eg,
Multicore advice and suggestions
Simple Multicore Core to Core Communication Using FreeRTOS Message Buffers