cancel
Showing results for 
Search instead for 
Did you mean: 

Keeping a struct updated via SPI with DMA on two µCUs

carlosdelfino
Associate III

 

Maybe my question should be on Stackoverflow, but I thought there would be qualified people here to help me.

I need to keep a data structure updated between two processors, with a size around 100B to 200B and something around 1 to 3 updates per second. The two µCUs are connected via SPI and I haven't determined which one is the master yet. But one µCU is STM32 and the other ESP32

I've never used DMA, but I'm researching the ST database and Google for information on how it works and how it would be to keep such structures constantly updated.

Would this be the best choice? SPI + DMA
Or keep a timer sending data via SPI?

0 REPLIES 0