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.

creating a txt file on usb or sd card LM4f120

hi all, here i am again :D

is there a way to create a txt file on a sdcard or a usb pen with lm4f120h5? shoul I use tivaware usb driver library and base on qs-scope example?

i have to create a data logger that store the data on a usb or the sd card

thanks!

  • Hi Giuseppe,

       Regarding, storing data to USB pen, you can check how it is done at qs-logger example program for Tiva Evaluation Kit. See partial description below from readme file.

    "Using the data logger:

    Use the CONFIG menu to configure the data logger. The following choices
    are provided:

    - CHANNELS - enable specific channels of data that will be logged
    - PERIOD - select the sample period
    - STORAGE - select where the collected data will be stored:
    - FLASH - stored in the internal flash memory
    - USB - stored on a connected USB memory stick
    - HOST PC - transmitted to a host PC via USB OTG virtual serial port
    - NONE - the data will only be displayed and not stored"

         There is also an sd_card example program for Tiva Evaluation Kit. However, does not demonstrate creating text files.

    -kel