Skip to main content
contact239955_stm1
Associate
April 17, 2017
Question

Need SPI example with DMA mode for STM32F411

  • April 17, 2017
  • 1 reply
  • 1299 views
Posted on April 17, 2017 at 09:01

Does anyone have some example code for the STM32F411VE to allow me to use the function 'HAL_SPI_TransmitReceive_DMA'?

I had a look through the ST examples and none of them seemed to use this code. If someone has some sample code or can point me in the direction of some ST supplied sample code, that would be great. I'm struggling to understand how it is supposed to work, and particularly which callback I'm supposed to grab - and how.

#stm32f411ve #dma
This topic has been closed for replies.

1 reply

Max
ST Employee
April 17, 2017
Posted on April 17, 2017 at 09:37

Did you have a look at the SPI_FullDuplex_ComDMA example available in the CubeF4 package for most of the DISCOVERY boards?

contact239955_stm1
Associate
April 17, 2017
Posted on April 17, 2017 at 10:01

I thought I had, I guess I havent! I'll have another look - thanks! 

Sorry about the apparently silly question, it has been a long project, particularly being my first with ARM devices.