cancel
Showing results for 
Search instead for 
Did you mean: 

SD acces to directory error STm32f4Discovery

KANAN ALRIFAI
Associate
Posted on December 15, 2017 at 17:38

Hi,

I initialized the SD carte by SPI Protocole and this returned and response no error ( so it's working).

Then i tried to mount the sd card by using f_mount(0,&SD) and this is working too.

But the problem is when i try to access to the sd's directory, i used f_opendirectory and it return an ERROR.

I tried to access to a file on the sd card by using f_open ('file.txt', FA_ALWAYS_OPEN) and this return an error too.

Do you have an idea ?

Thank's.

#sd #f_open #f_mount #sd-acces #stm32f4discovery #spi
1 REPLY 1
Posted on December 18, 2017 at 16:47

What ERROR specifically? Check that the read/write functions in diskio.c are actually functional, ie do the right job and don't return bad data or errors.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..