Quiero usar la biblioteca FatFS usando la memoria flash interna STM32F303. Creé el archivo user_diskio.c y describí las funciones necesarias USER_write , USER_read y USER_ioctl para leer y escribir datos en / desde flash interno
if (FATFS_LinkDriver(&USER_Driver, USER_Path) == 0)
{
result = f_mount(&FATFS_Obj,(TCHAR const*)USER_Path, 1);
...
}
f_mount obtiene el error FR_NO_FILESYSTEM. El uso de la función f_mkfs((TCHAR const*)USER_Path, 0, 512); obtiene FR_NOT_ENABLED de error. No entiendo, ¿cómo debo formatear el sector del disco para usar la biblioteca FatFS?