Hi,
I'm trying to use fatfs with freertos and f_stat call is returning FR_NO_PATH even though path is correct.
/*Code*/
bool IFileSystem::FileExists(const GCPString &Filename, const bool bSecureCheck /* = false */)
{
PRINTF("IFileSystem::FileExists >>>> Filename = %s\r\n",Filename.c_str());
bool rv = false;
#ifdef GCPOS_FREERTOS
FRESULT fr;
FILINFO fno;
fr = f_stat(Filename.c_str(), &fno);
switch (fr) {
case FR_OK:
rv = true;
break;
case FR_NO_FILE:
rv = false;
break;
default:
rv = false;
PRINTF("IFileSystem::FileExists default case FR_NO_FILE = (%d)\r\n",(int)fr);
}
return rv;
*/Code
Filepath : "./hon/data/Panel.sqlite";
Can someone pls help?
Board:iMXRT1050EVKB
Thanks
Hello
Hope you are well.
It will be helpful to check an SDK example as a reference. When passing the file path parameter the examples use _T("filepaht").
It could also be helpful if you share more details about your project so I can reproduce this issue.
If you have more questions do not hesitate to ask me.
Best regards,
Omar