Question
1-bit SDIO SD Card Interfacing problem in f_open() function for STM32F4 Discovery Board
Posted on July 25, 2016 at 19:21
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 workfine. 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??
#stm32f4 #f_open() #sd-card