2017-12-15 08:38 AM
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 #spi2017-12-18 07:47 AM
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.