Again, you seem to have skipped filling in the template. Please do that. There are marked headers for you to put your information in (i.e. Description, Code sample).
I am assuming that pcfs_open is from lv_tutorial_images.c.
A quick read of the relevant code shows that the path is always relative to whatever directory you are running the executable in (if you are using an IDE, that could be the Debug or Release folder, or the project folder).
So you are going to have to put zzz.bin in that directory and then try and open just zzz.bin (without any drive prefix).
Okay so the folder is the root of the LVGL lib.
Trouble is when I / run / debug, it works for only about 1 out of 10 times. The other times it just says no data. But if I stop and run over and over eventually it works, and then stop and try again and it stops working again� Any Ideas?
This is indicative of a confused debugger. Since itās in the main loop it obviously must have returned (unless you are using multiple threads).
Did you put a breakpoint on that line and then step into (not over)? Iām just checking the exact sequence of steps because some debuggers are a bit picky.
if ((long int)f <= 0) {
//if code reaches here, then will not work
//(shows "No Data" on screen)
return LV_FS_RES_UNKNOWN;
} else {
//if the code reaches here then it works okay
//(image is shown)
fseek(f, 0, SEEK_SET);
/* 'file_p' is pointer to a file descriptor and
* we need to store our file descriptor here*/
pc_file_t* fp = file_p; /*Just avoid the confusing casings*/
*fp = f;
}
'''