2024-02-12 07:55 AM
Hi!
I'm using STM32H745 dual core. The reason behind it is as I have to do very fast measurement on one core (M7) and the rest of the slower things on the M4. The M4 is mostly used for communicating with the external world.
I have setup SPI3 and SPI4. SPI3 is on the M7 and the SPI4 is on the M4.
SPI3 is the slave. SPI4 is the master.
I have used this example to get the cores to communicate, which works!
What I'm trying to achieve is for the M4 (master) to use the transmitreceive function (it can be in any mode - polling, it or dma) to send config data and receive measurement data from the M7. For now I can use the given example.
What I'm trying to do is to move the SPI receiving, packing the data and sending it back to the master in an interrupt routine on the M7. Is that possible to do? Or is it done by setting a flag and computing it in the main while loop?
Thanks!
Solved! Go to Solution.
2024-02-12 01:33 PM
Okay, can me give me a general direction I should go for finding examples and documents for this? Thanks!
2024-02-12 01:38 PM
one user even posted a full "library" to use. Will try it, but is it any good?
2024-02-12 02:01 PM
It seems like a fine approach to me.
2024-02-13 01:13 AM
https://github.com/MaJerle/stm32h7-dual-core-inter-cpu-async-communication/tree/main
This works very well! Closing!