The problem is that the provided includes from #include "esp_vfs_fat.h" and from #include "ff.h" don't seem to work, and I can't find out why, originally I was trying to use the "f_expand()" function right from the fatfs doc:
Code: Select all
The f_expand function prepares or allocates a contiguous data area to the file.
FRESULT f_expand (
FIL* fp, /* [IN] File object */
FSIZE_t fsz, /* [IN] File size expanded to */
BYTE opt /* [IN] Allocation mode */
);
which I currently really need since I wanted to directly overwrite over my file sectors using the sdmmc_write_sectors function from the espressif drivers and I can't do that with a fragmented file.
I even tried to downgrade the esp extension in visual studio from 5.3 to 5.0 with no success
Thanks for any help, that would be really appreciated!