cancel
Showing results for 
Search instead for 
Did you mean: 

STMH7 SPI slave DMA question

Logann123321
Associate III

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

3 REPLIES 3

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

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

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