Associate III
February 5, 2020
Question
f_mount returns FR_NO_FILESYSTEM
- February 5, 2020
- 1 reply
- 1259 views
I use stm32F407ZG, when I update mxcube to 5.3 version and stm32f4 package to 1.24.2 fatfs version updated to R0.12c while previous fatfs version was R0.11 and work perfectly. after code generate and compile I realized f_mount function returns FR_NO_FILESYSTEM.(f_mount(&SDFatFs,"1:/", 1))
I attach cube setting.
please help me.
if (INSERT_SD ==0)
{
res=disk_initialize (0);
if (res==0)
{
res=f_mount(&SDFatFs,"1:/", 1);
if (res!=FR_OK && res!=FR_EXIST)
{
// printf("<ERR*SD NOT Ready:%d*>\r\n",res);
sprintf(str,"<ERR*SD NOT Ready:%d*>\r\n",res);
if (start_debug==1) print(DEBUG_PORT,str);
else if (start_debug==2) print(LAN_PORT,str);
return 0;
}
res = f_findfirst(&SD_dir,&fno,"1:/LOG","*.LOG"); /* Start to search for log files */
}
}
