The simple code here:
- Code: Select all
#include <petit_fatfs.h>
FATFS* fatfs;
[...]
void setup() {
gb.begin();
pf_mount(fatfs);
int ldverr=pf_open("DF01.LDV");
always returns the error code FR_NOT_ENABLED meaning the SD-Card is not mounted.
This happens even when I am able to press C and install another game from bootloader (!) prooving of course that the SD is available...
I tried opening "/DF01.LDV" instead of "DF01.LDV" to no avail.
Any people here managed to make use of Petit FatFs lib to open a SD file, seek inside it, and read a buffer ?
Thanks in advance for any tip
Nicolas