cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4P5, working with sdmmc in dma mode possible?

SYako
Associate III

Recently I swithc project to STM32L4P5CET as main mcu. I can't see any option to use sdmmc in dma mode (In stm32cubeide/mx). Is ST planning to add support later, or it's impossible?

1 ACCEPTED SOLUTION

Accepted Solutions
SYako
Associate III

Okey, I managed to port FatFS from other L4(non plus) MCU. For people reading this in future: STM32L4+ SDMMC has it own IDMA, there is no need to initialize DMA at all. Here is my test code: https://github.com/Maobuff/STM32L4P5CET_FATFS_SDMMC_DMA

View solution in original post

9 REPLIES 9

Hardware is capable, do you need a demo?

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

Thank you. I'm so attached to stm32cubeide and just wondering is that possible(now I know that is possible). When such support will be added to stm32cubeide?

TDK
Guru

> When such support will be added to stm32cubeide?

Given the history of barely/almost working support of SD/MMC in HAL, I wouldn't hold your breath. It's been in the current state for at least a couple years. If it was a priority, it would have been done by now.

If you feel a post has answered your question, please click "Accept as Solution".

Hi, could you provide demo?

I'm using NUCLEO-L4P5ZG w/Keil and HAL

https://www.st.com/en/evaluation-tools/nucleo-l4p5zg.html

For custom board I'd need details of HSE clock, USART, LEDs, pins, etc.

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

Only MCU(STM32L4P5CET6) with SDMMC2 without HSE, I'm experimenting with FreeRTOS and SD card(FatFS).

Because of previous experience its only 1bit connection.

PB14 SDMMC2_D0

PB12 SDMMC2_CK

PA1 SDMMC2_CMD

I don't have hardware that replicates that. 1-bit is totally going to kill speed.

UART/Pins for output?

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

For debug I'm using Trace Asynchronous Sw:

PA13 - SWDIO

PA14 - SWCLK

PB3 - SWO

It's just a test, I had speed up to 3-4Mbits/s in blocking mode(no DMA) without FreeRTOS. Which is more than enough.

SYako
Associate III

Okey, I managed to port FatFS from other L4(non plus) MCU. For people reading this in future: STM32L4+ SDMMC has it own IDMA, there is no need to initialize DMA at all. Here is my test code: https://github.com/Maobuff/STM32L4P5CET_FATFS_SDMMC_DMA