cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect work f_mkdir() FatFs SD SDIO

diogen-ht
Associate
Posted on September 14, 2016 at 14:53

Hi, everybody!

SD 2Gb connected by SDIO to stm32F407. FatFs.

f_mount(), f_open(), f_write(), f_close() work well. But f_mkdir(''DR'') creates failed directory. Its name - ''DR. 1'', and if i try to open it, the message -''you try to get to inaccessible place''(my free translation)-appears. Please help.

#sdio #sd #stm32 #fatfs
2 REPLIES 2
slimen
Senior
Posted on September 14, 2016 at 16:30

Hi,

I suggest you start with ''FatFs_uSD'' example working with SD-Card for your board within

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef4.html

package:

STM32Cube_FW_F4_V1.13.0\Projects\STM324xG_EVAL\Applications\FatFs\FatFs_uSD

This example provides a description on how to use STM32Cube firmware with FatFs and  to develop an application exploiting FatFs offred features with microSD drive configuration.

You can compare your generated code with this provided application, get that working, then copy or merge the functions you need.

This user manual

http://www.st.com/content/ccc/resource/technical/document/user_manual/61/79/2b/96/c8/b4/48/19/DM00105259.pdf/files/DM00105259.pdf/jcr:content/translations/en.DM00105259.pdf

“Developing Applications on STM32Cube with FatFs� provides a description of how to use the STM32Cube firmware components with a generic FAT File System (FatFs).

Regards

Posted on July 19, 2017 at 06:02

I am having the same problem. did you find a solution for this problem?  f_mkfs doesnt work either.

thanks