Associate II
May 17, 2023
Solved
STM32F401 SDIO FATFS always returnig FR_DISK_ERR
- May 17, 2023
- 3 replies
- 3275 views
Hi all,
I am trying to do a simple code for writing and reading files in a SDHC Card, i am trying to start with this example code:
https://community.st.com/s/article/how-to-create-a-file-system-on-a-sd-card-using-stm32bubeide
However, when the code reaches
- f_mkfs((TCHAR const*)SDPath, FM_ANY, 0, rtext, sizeof(rtext));
It stucks for 30 seconds an then returns FR_DISK_ERR, if i repeat the same operation without the SD Card, it returns FR_NOT_READY
I have tried formatting the card, different cards, etc, same result.
I attached the .ioc file, just if there is any missing configuation or something wrong...
Thanks in advance
