2024-09-06 12:41 AM
Hello Team,
how can a simple core to core communication on the STM32H7 be implemented? We want to exchange 2kByte of data in bidirectional way between CM7 and CM4.
Best regards,
Jochen
Solved! Go to Solution.
2024-09-09 02:16 AM
Or just create a shared memory region common to the two cores on each Core's linker. But you need to ensure at least two things:
- Synchronization of read and write operation between the two cores using HSEM to ensure the consistency of the data.
- Either to manage the data coherency from CM7 side when Cache is enabled or declare that region as Strongly-Ordered or Device (non cacheable) using MPU.
2024-09-06 01:00 AM - edited 2024-09-06 01:01 AM
Hello,
Please refer to the AN5617 STM32H745/755 and STM32H747/757 lines inter-processor communications
See also this article.
You can use OpenAMP to exchange data between two cores. Please refer to these examples in STM32CUbeH7 on github:
Hope I answered your question.
2024-09-06 02:26 AM
This example ist not working, we get compiler errors. Do you have a working example of the OpenAmp PingPong project?
2024-09-06 03:15 AM
@JR1 wrote:
This example ist not working, we get compiler errors. Do you have a working example of the OpenAmp PingPong project?
You need to give more details about that. What compiler you are using and what errors you are facing.
2024-09-06 04:46 AM
It seems that the directories are not complete, including the HAL libraries.
Could you try to download the Open AMP PingPong example and build it with the STM32 Cube IDE?
2024-09-06 05:06 AM - edited 2024-09-06 06:00 AM
Please tell how did you download the example via github or from this page?
When you clone with git you, need to set the option recursive:
git clone --recursive
2024-09-06 06:22 AM
2024-09-06 06:33 AM
Sorry. Don't know about the CMake option.
What I asked you is to test the native project provided under C:\Users\<User name>\STM32Cube\Repository\STM32Cube_FW_H7_V1.11.2\Projects\STM32H745I-DISCO\Applications\OpenAMP\OpenAMP_PingPong
and open the CubeIDE project from here:
From my side I didn't have any errors during the compilations of CM4 & CM7 projects.
2024-09-06 08:44 AM
The code is running now on both cores. Is there any better documentation available than the readme.txt?
2024-09-06 08:57 AM
Please refer to the AN5617 STM32H745/755 and STM32H747/757 lines inter-processor communications
See also this article.
@JR1 ;
Already provided the documentation in my first answer.