2019-10-08 03:19 PM
for the function HAL_SPI_TransmitReceive_DMA, It says in the documentation that it is non-blocking, in that case in slave mode would that mean it won't start until the master started the spi clock? Thanks
2019-10-08 03:24 PM
What you want to do is set up an interrupt on RX DMA complete (requires fixed known number of transfers).
The call above is non-blocking setup after which your app can continue doing whatever.
Hope that helps!
Best Regards, Dave
2019-10-08 04:06 PM
Hi thanks for the reply,I am a little confused, So do I still need to call HAL_SPI_TransmitReceive_DMA beforehand? if not how do I setup SPI slave? Do it just set the pointer of the dma buffer to the pointer to my buffer? Thanks
2019-10-17 03:36 AM
hi! I use stm32h743 spi work in dma, it can`t trasmit data! could you give me you spi hal init file.thank you! This is spend lots of my time