Skip to main content
Associate
June 20, 2023
Question

Reading and writing to sd card

  • June 20, 2023
  • 1 reply
  • 1619 views

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.

    This topic has been closed for replies.

    1 reply

    AScha.3
    Super User
    June 20, 2023

    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""."