AnsweredAssumed Answered

STM32f4 discorvery, fatfs, SD card problem

Question asked by JOK K on Mar 29, 2018
Latest reply on Apr 25, 2018 by Clive One

Hi all,

 

I'm working on getting a discovery board working with an SD card. I'm using CubeMx v4.25.0 with package v1.21.0.

Hardware connection is validated and is correct. 

 

I run into a problem when I try to open a file. A FR_DISK_ERR error is returned. 

The error looks like the problem mentioned in:

https://community.st.com/thread/44874-stm32f407-sdio-fatfs-no-connection-to-the-%C2%B5sd-no-fmount-no-fopen

 

The error seems to come from this line:

if (disk_read(fs->drv, fs->win.d8, sector, 1) != RES_OK) in ff.c

 

Possible fixes mentioned in the linked post do not work.

 

Any clues about this?

Outcomes