cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F767 SDMMC no DMA callback

axinno
Associate II

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
axinno
Associate II

I solved!

 

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

 

Thanks to all

View solution in original post

3 REPLIES 3

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
axinno
Associate II

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.

 

axinno
Associate II

I solved!

 

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

 

Thanks to all