AnsweredAssumed Answered

1-bit SDIO SD Card Interfacing problem in f_open() function for STM32F4 Discovery Board

Question asked by Stark on Jul 25, 2016
Latest reply on Jul 26, 2016 by Stark
Hello,
         I am using CubeMx to generate 1-bit SDIO SD card code. I have done so much programming using CubeMx and all those codes work fine. But When I generate SD code it is giving error (Hard Fault) at the function f_open(). Here is the code sequence which I used.

res = BSP_SD_Init();
if(res!=FR_OK)
{
    Error_Handler();
}  
res = f_mount(&SDFatFs,"",1);
if(res!=FR_OK)
{
    Error_Handler();
}
     
res = f_open(&myFile,"test.txt",FA_READ);

it goes into the hard fault at f_open(). Anyone have done SD card with STM32F4??

Outcomes