cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 SDMMC1 / FatFs / MDMA Not working

MBrön.1
Associate

Hello,

does anyone have experience with using SDMMC1 (1 bit-mode) and FatFs with enabled dma template on a STM32H730VBTx controller?

Without dma template I got it working (but it is requiered for FreeRtos)

I am using CubeMx in Version 6.1.1

Sorry, I am not able to upload scrennshots (?!)

Settings:

FatFs:

·      SDMMC1

·      Use dma template enabled

SDMMC1

·      SD 1 bit

MDMA

·      Channel 1

·      Transfer 1

·      MDMA request: SDMMC1 data end

Thats it.

Result is: Returns FR_DISK_ERR from following line

FRESULT fresult = f_mount(&FatFs, "0:", 1);

Please let me know if further information is needed

Regards Marcus

6 REPLIES 6
Amel NASRI
ST Employee

Hi @Marcus Brönstrup​ ,

2 comments but not really the solution:

  • do you have same issue with STM32CubeMX 6.2.0?
  • use the "Image" icon to upload screenshots, copy-paste will not work.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Should be able to attach .ZIP of things, not sure why the Mountain/Sun icon wouldn't let you in-line images

H7 is going to need to have caching managed appropriately, and memory within the scope of the DMA unit.

For CubeMX fixes on the ST side you'd be generally well advised to attach the .IOC file

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Indeed, for DMA usage please consider this FAQ article: DMA is not working on STM32H7 devices.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

MBrön.1
Associate

Hi, I tested it with CubeMx 6.2 and have the same result. I have attached the CubeMx file

SSorr.1
Associate II

Hello, was there any solution on this issue? Or can we conclude that DMA with STM32H7 and SDMMC is broken?

I experience exactly the same problem, with CubeIde 1.6.0.

>>Or can we conclude that DMA with STM32H7 and SDMMC is broken?

HW works fine, but it is complex and unforgiving.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..