Skip to main content
Visitor II
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

 

 

    This topic has been closed for replies.
    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

    Graduate II
    January 24, 2024

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

    axinnoAuthor
    Visitor II
    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
    Visitor II
    January 25, 2024

    I solved!

     

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

     

    Thanks to all