Skip to main content
ZOvna
Visitor II
April 14, 2019
Question

Code sample for stm32l451xx SPI DMA unavailable - HAL_SPI_RxCpltCallback not called

  • April 14, 2019
  • 0 replies
  • 481 views

I have SPI2 set up to access external flash - and it works well without DMA.

Setting up SPI2 to access flash with DMA, a read correctly fills the buffer provided - but my callback functions (overriding their __WEAK counterparts) aren't called (HAL_SPI_RxCpltCallback, HAL_SPI_TxRxHalfCpltCallback, HAL_SPI_ErrorCallback). Please help resolve issue. Please provide source code example for this. See my code attached - flash_read_dma().

This topic has been closed for replies.