Skip to main content
Associate
January 24, 2024
Solved

STM32F767 SDMMC no DMA callback

  • January 24, 2024
  • 3 replies
  • 1009 views

Hi All

I want write on the SDMMC using HAL_SD_WriteBlocks_DMA system call. The function itself works, the sector on the SD is written, but no callback function (HAL_SD_TxCpltCallback) is called.

Did someone experienced such trouble ?

Thanks

 

 

Best answer by axinno

I solved!

 

in CubeMX also the SDMMC1 global interrupt shall be enabled in addition to DMA interrupts.

 

Thanks to all

3 replies

Tesla DeLorean
Guru
January 24, 2024

Make sure you have all the IRQ Handlers set up and that they call into the HAL layer

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
axinnoAuthor
Associate
January 25, 2024

Hi

the RX callback is working, only the TX isn't. I registered the callback in both manners: by the _weak pragma and using the HAL_SD_RegisterCallback, but still only the RX callback works.

 

axinnoAuthorAnswer
Associate
January 25, 2024

I solved!

 

in CubeMX also the SDMMC1 global interrupt shall be enabled in addition to DMA interrupts.

 

Thanks to all