cancel
Showing results for 
Search instead for 
Did you mean: 

Reading and writing to sd card

DLowry
Associate

Hello everyone, I am currently trying to test an sd card by writing and reading data from it. I have uploaded a copy of my main.c which contains my test function and some configuration. I've also uploaded the bsp drivers for the sd card. As of right now whenever I call f_mount it returns FR_NOT_READY despite me calling BSP_SD_INIT and FATFS_LinkDriver prior to this. If you have any questions or need more information please do not hesitate to ask.

1 REPLY 1
AScha.3
Chief II

so i think, you have no access to sdcard. to check, you should make a new project in CubeIDE, no rtos, just debug and sdio pins with fatfs (no dma!, 1-bit mode). 

generate, make simple main : mount, open_dir, read_dir() =no error -> fine, no go on with your complex project.

If you feel a post has answered your question, please click "Accept as Solution".