برای ارتباط با حافظه این کد رو نوشتم :
FATFS *fs;
FRESULT res;
FILINFO fno;
res = f_mount(0,fs);
if (res != 0)
{
lcd_clear();
lcd_gotoxy(0,0);
lcd_putsf("drive number invalid.");
}
else
while (1)
{
unsigned long int fre_clust;
char *string;
res= f_getfree("", &fre_clust, &fs);
lcd_gotoxy(0,0);
lcd_puts(error_msg[res]);
delay_ms(200);
};
}
که این لرور رو میده :
FR_NOT_ENABLED
اینم توضیح Error :
The logical drive has no work area.
اینم راهنمای دستور :
http://elm-chan.org/fsw/ff/en/getfree.html
فکر می کنید مشکل از کجاست ؟
متشکرم