I'm having some problems with the fatfs.
As stated in the title, the function call init_flash_fs(1) fails in the main().
The debugger shows that this line in f_mkfs() causes the error:
Code: Select all
if (sz_vol < 50) return FR_MKFS_ABORTED; /* Check if volume size is >=50s */
What would cause this? The flash section used is 24kiB with a 8kiB cache in RAM. I tried completely erasing the flash, but that did nothing at all.
I included a screenshot of the debugger with the variables in case they are useful.
Thanks
-ExXec