Hi @scarletlee
Do you mean, the SD card with the FatFs filesystem, then you put the .xml file in the SD card, then read it with the RT1172, right?
You can try to use the fatfs file to open it, whether it will Ok or not?
Eg:
error = f_open(&g_fileObject, _T("/dir_1/f_1.dat"), (FA_WRITE | FA_READ | FA_CREATE_ALWAYS));
You can use:
error = f_open(&g_fileObject, _T("/dir_1/f_1.xml"), (FA_WRITE | FA_READ | FA_CREATE_ALWAYS));
If the error is not success, it means the fatfs can't support it.
More details, you can check the fatfs file system:
http://elm-chan.org/fsw/ff/doc/filename.html
Wish it helps you!
Best Regards,
Kerry
Hi @scarletlee
Do you mean, the SD card with the FatFs filesystem, then you put the .xml file in the SD card, then read it with the RT1172, right?
You can try to use the fatfs file to open it, whether it will Ok or not?
Eg:
error = f_open(&g_fileObject, _T("/dir_1/f_1.dat"), (FA_WRITE | FA_READ | FA_CREATE_ALWAYS));
You can use:
error = f_open(&g_fileObject, _T("/dir_1/f_1.xml"), (FA_WRITE | FA_READ | FA_CREATE_ALWAYS));
If the error is not success, it means the fatfs can't support it.
More details, you can check the fatfs file system:
http://elm-chan.org/fsw/ff/doc/filename.html
Wish it helps you!
Best Regards,
Kerry