Skip to main content
Hhadd.2
Associate
January 12, 2021
Question

STM32L4 SDMMC Peripheral Problem

  • January 12, 2021
  • 2 replies
  • 1137 views

hello,

I use a custom board with an MCU STM32L462VETX and i try to create a file system over an SD CARD using the SDMMC peripheral .

the hardware connection between the sd card and the MCU are the same the eval board : STM32L476G-EVAL

I use a sandisk 16go sd card

I have used the STM32L4Cube V1.16 and CubeMX6.1.1

I used the YouTube video from ST : https://www.youtube.com/watch?v=I9KDN1o6924

The problem :

the f_open and f_mount with forced mount option return FR_DISK_ERR always

i checked also the community questions and topics like the problem of delay after power on in HAL driver.

So i search any idea or a support to resolve this problem because we must use the sd card to save data in our project.

#SDMMC​ #FatFS​ 

This topic has been closed for replies.

2 replies

M4R10
Associate III
January 31, 2021

Exactly the same problem with my Nucleo-L452RE.

I'm start thinking that there is some issue using L4 and sdmmc

Tesla DeLorean
Guru
April 1, 2021

Definitely works on the NUCLEO-L452RE

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Hhadd.2
Hhadd.2Author
Associate
April 1, 2021

can you share your project in gihub please?

and can you tell us the steps to get sdmmc with dma work please ?

lukin
Associate III
April 1, 2021

Do you have a right clock setup?

Hhadd.2
Hhadd.2Author
Associate
April 1, 2021

yes , i use under 10 Mhz for sdmmc (using the divider ) i tried many clocks