This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123GH6PM: Read data points stored in text file from Pen drive.

Part Number: TM4C123GH6PM

Hello guys,

I am using TM4C123GH6PM controller for my application.

I want to read data points stored in text file from pen drive.

Basically data points are the x,y and z coordinates of 3D object file.

Here I am using ucb_dev_bulk.c example and with the help of this i am able to create text file in

pen drive. But i am not able to read text file stored in pendrive. 

Any help of above matter would be helpful.

Sample program would be of great help.

Thanks in advance.

  • Hi,
    Have you looked at the usb_host_msc and the usb_dev_msc examples that demostrates USB mass storage class device? They can be found under <TivaWare_Installation>\examples\boards\dk-tm4c123g.
  • Hi Charles Tsai,

    Thanks for your quick reply.

    As per your suggestions, I have used usb_host_msc.c for my application.

    With some modification in usb_host_msc.c, i am able to read the directory,foders and files  stored in pen drive.

    I have some doubts regarding following points, please help.

    1.Now i want to open file_name.txt file from pen drive and store it in some variable.

    2.file_name.txt file contain x,y,z coordinates of 3D object and it looks something like this.

    Any help on above matter would be highly appreciated.

    Thanks in advance.