I have tried debugging, and the error comes whenever
f_mkfs -> find_volume-> checkfs -> move_window -> disk_write is called.
looking at it, i see the implementation in diskio.c
DRESULT disk_write (
BYTE pdrv, /* Physical drive nmuber to identify the drive */
const BYTE *buff, /* Data to be written */
DWORD sector, /* Sector address in LBA */
UINT count /* Number of sectors to write */
)
{
DRESULT res;
res = disk.drv[pdrv]->disk_write(disk.lun[pdrv], buff, sector, count);
return res;
i think its a function pointer, during debugging i cant step into it, and see its implementation in both projects.
can anyone please help me?
i have attached both projects,
however, the project FatFs_uSD_Standalone ( demo project) might not build correctly; there might be some files missing. i am not sure about how the include structure works on this project.