Guest
#3364049
Hi, I have a little problem with the use of Fatfs on my DSP. In fact, opening a file on a microSD doesn't work...:( Smple code: //...Variable initializations... // Mount return FR_OK f_mount(&FatFs, "0:", 0); // Opening fails... f_open(&File, "Tes.txt", FA_OPEN_EXISTING | FA_READ); // It returns FR_NOT_READY because it the disk_initialize function // dosn't work and satisfy the condition STA_NO_INT which return //FR_NOT_READY... So, I have no more idea where I could search. The micro_SD is a Kingston (4GB) class 10 which is inserted in a SD adaptater which is linked to the DSP. On my computer or mobile phones everything is OK on the card, so it's not the health of the card but what ? What can do this kind of error ? The clock speeed of SPI is 300kHz so it's not really great to cause issue... I give you the diskio.c file which is the only one I change to adapt on my target. If somebody could understand something and know the FatFs module, I really thank him/her to help me to understand...