Skip to main content
Visitor II
March 31, 2023
Solved

SD Card Not Working (FR_NOT_READY) on Cube IDE Version 1.12.0

  • March 31, 2023
  • 4 replies
  • 6910 views

Hi, I have STM32F413VHT6 board and trying to use FATFS and SDIO card slot, but f_mount returns FR_NOT_READY. i worked in 1 bit mode is working perfectly but SDIO in 4 bit mode f_mount return FR_NOT_READY.i am using below code for both 1 bit and 4 bit mode i am changing the clock divider value 4 to 10 and check clock divider in 96 also 4 bit is not working.

Any ideas what is the issue and how to solve this problem?

    This topic has been closed for replies.
    Best answer by KDJEM.1

    Hello @AA.27​ ,

    Is your project generated with STM32CubeMX?

    If yes, could you please check that the workaround provided in this thread: SDCARD does not work (FR_NOT_READY) when migrating from FW_F4 V1.27.0 to newer FW_F4 V1.27.1.

    When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

    Kaouthar

    4 replies

    Graduate II
    March 31, 2023

    You describe a chip not a board.

    Check wiring and trace length for socket.

    You have pullups on data and command lines?

    Debug at DISKIO/SDIO level.​

    AA.27Author
    Visitor II
    March 31, 2023

    i received this error

    #define HAL_SD_ERROR_REQUEST_NOT_APPLICABLE  SDMMC_ERROR_REQUEST_NOT_APPLICABLE /*!< Error when command request is not applicable         */  

    i checked both pullup and no pullup and trace length of the socket also correct.

    i am using NUCLEO-F413ZH board. In my SDIO card reader pullup resister available.

    i am using 32GB micro SDHC card class 1.This is my SD card reader0693W00000bhHsoQAE.jpg

    Visitor II
    April 4, 2023

    I am getting the same error. what was your solution? thank you!

    Explorer II
    April 2, 2023
    KDJEM.1Answer
    Technical Moderator
    April 24, 2023

    Hello @AA.27​ ,

    Is your project generated with STM32CubeMX?

    If yes, could you please check that the workaround provided in this thread: SDCARD does not work (FR_NOT_READY) when migrating from FW_F4 V1.27.0 to newer FW_F4 V1.27.1.

    When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

    Kaouthar