Why can't I open a file in MFS without searching for it first using ioctl(filesystem_handle, IO_IOCTL_FIND_FIRST_FILE,(void*)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why can't I open a file in MFS without searching for it first using ioctl(filesystem_handle, IO_IOCTL_FIND_FIRST_FILE,(void*)

554 Views
markwatson
Contributor III

Using MQX 4.1 on a Vybrid.  This seems simple, but I can't get the system to open a file unless I search through the directory using FIND_FIRST_FILE and then FIND_NEXT_FILE.  Then, I can use the name that it finds and use fopen in the usual way.  The SD card interface is proven in the design so I don't believe it is a hardware problem.

Thanks,

Mark

Labels (1)
1 Reply

366 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi Mark,

Can you share the code to reproduce the problem?

Best Regards,

Alejandro

0 Kudos