AnsweredAssumed Answered

MFS install

Question asked by Nitin Kothari on Oct 9, 2013
Latest reply on Oct 10, 2013 by Daniel Chen

Hello all,


I am using MFS with USB Host stack for Mass Storage Device and I am pretty new to it.


I am trying to read a text file from the connected MSD. Here is the sequence of funciton calls I am using for the purpose :




_io_usb_mfs_install("USBD:", 0, (pointer)msg.ccs);  /* msg.ccs is a pointer to class_call_structure poitner*/



DEV_FD_PTR = fopen("USBD:", NULL);  /* First fopen to open the device*/



FS_FD_PTR = fopen("C:\\my_read_file.txt", "a+");  /* 2nd fopen to open the file*/



So instead of reading the data from the file, all I could read was the data from Sector 0.


Can anyone please tell me what am I doing wrong ?



Appreciate your time.