There is a bug in the fatfs code that causes a compile error at line 268 in lv_fs_fatfs.c
Code: Select all
do {
res = f_readdir(dir_p, &fno);
if(res != FR_OK) return LV_FS_RES_UNKNOWN;
if(fno.fname[0] == 0) break; /* End of the directory */
if(fno.fattrib & AM_DIR) {
lv_snprintf(fn, fn_len, "/%s", fno.fname);
}
else lv_strlcpy(fn, fno.fname, fn_len);
} while(lv_strcmp(fn, "/.") == 0 || lv_strcmp(fn, "/..") == 0);
return LV_FS_RES_OK;
}Code: Select all
Bootloader binary size 0x5dc0 bytes. 0x240 bytes (2%) free.
[7/9] Linking CXX executable Test_fatfs.elf
FAILED: Test_fatfs.elf 