2021-01-19 05:44 AM
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?
Solved! Go to Solution.
2021-04-30 09:46 AM
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
2021-01-19 08:36 AM
Hardware is capable, do you need a demo?
2021-01-19 08:49 AM
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?
2021-01-19 08:59 AM
> 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.
2021-04-29 12:11 PM
Hi, could you provide demo?
2021-04-29 12:34 PM
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.
2021-04-29 12:59 PM
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
2021-04-29 01:24 PM
I don't have hardware that replicates that. 1-bit is totally going to kill speed.
UART/Pins for output?
2021-04-29 01:36 PM
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.
2021-04-30 09:46 AM
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