AnsweredAssumed Answered

STM32F3/F7 SPI with DMA implementation

Question asked by Anh_Tuan.Tran on May 24, 2016
Hello,

I want to use SPI to transmit/receive data on two board (F3 vs F7), that using SPI/DMA. But I don't know how to implement.

I have seen SPI/DMA examples in STM32Cube Firmware packages but it seem transmit/receiver ONCE TIME them sleep sleep forever.

Now, I need to continuous transmission in fulltime. What's way to do that? Put all mechanism of SPI/DMA (HAL_SPI_Transmit_DMA, HAL_SPI_Transmit_DMA...etc,) in a while(){....} or how to do?

I'm doing with 2 board:
1. STM32F3DISCOVER: Read quadrature encorder and send data to STM32F7DISCOVER via SPI/DMA continuously.

2. STM32F7DISCOVER receiver data from STM32F3 continuously. I want to use benefit of SPI/DMA in non-blocking access.

Please help me, thanks!

Outcomes