cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H745 SPI Cores communicating

__silardg
Associate III

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!

13 REPLIES 13

Okay, can me give me a general direction I should go for finding examples and documents for this? Thanks! 

https://community.st.com/t5/stm32cubemx-mcus/best-easiest-way-to-share-data-between-cores-in-stm32h745/td-p/304488

one user even posted a full "library" to use. Will try it, but is it any good? 

It seems like a fine approach to me.

If you feel a post has answered your question, please click "Accept as Solution".
__silardg
Associate III