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.

TM4C123GH6PGE: Read and write through USB

Part Number: TM4C123GH6PGE

Hello 

I want to read and write files to USB Stick Memory device via USB Host interface.

I want to write and read "Hello USB" content after  create the file in text file format.

I have seen the USB API function, but I do not know what to do.

Please Sending the sample source code will help.

thanks.

  • Hi Jame,
    There is a usb_stick_demo example under <TivaWare_Installtion>\examples\boards\dk-tm4c123g\usb_stick_demo that you can reference.
  • Hi Charles

    Thank you for your reply.
    Refer to and analyze "usb_stick_demo" example.
    I referenced all the other examples, For a long time.
    Among them, "usb_dev_msc" example seemed to help me.
    PC (Host) <---> DK-TM4C123G (Device) can access MicroSD from PC by USB communication.
    However, I could not find the implementation method I wanted. !!
    "\third_party\fatfs\doc\en" I also looked at the file system API documentation.

    <I want to implement>
    1. DK-EVB board(host mode) create file test.txt & delete_test.txt in USB stick memory
    2. Added "Test-1 (Tab Space) OK (carriage return)" in the test.txt file
    3. Add "Test-2 (Tab Space) NG (carriage return)" at the end of the text in test.txt file
    4. Delete the delete_test.txt file

    Q1> Is there any way to find Open Source code in e2e?
    Q2> Can you help me to implement Source Code?

    regards.