I want to use FatFS library using STM32F303 internal flash memory. I created user_diskio.c file and described necessary functions USER_write
, USER_read
and USER_ioctl
for reading and writing data to/from internal flash
if (FATFS_LinkDriver(&USER_Driver, USER_Path) == 0)
{
result = f_mount(&FATFS_Obj,(TCHAR const*)USER_Path, 1);
...
}
f_mount gets FR_NO_FILESYSTEM error. Using function f_mkfs((TCHAR const*)USER_Path, 0, 512);
gets FR_NOT_ENABLED
error. I don't understand, how should I format disk sector to use FatFS library.