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.

TM4C1294NCPDT: Reading a mp3 file from a USB pen drive .

Part Number: TM4C1294NCPDT

How to read mp3 file from pendrive???

and play using "pwm" ..I know about pwm to "DAC" but how read the mp3 file from usb drive.?

... 

  • KISHAN PATEL said:
    How to play music from pen-drive in tm4c1294xl board how it is possible???

    PWM, external D/A, MIDI interface, DMX interface

    KISHAN PATEL said:
    Give some program... 

    Umm, no.

    Robert

  • Yes I know using " pwm" analog signal is generate but, How to read ".mp3" file inside usb I need this library for media file read ...
  • You need to separate the problems...

    Reading a file from a USB pen drive requires:

    - USB driver configuration
    - FAT32 for dealing with the files

    You can search the forum for solutions for these things.

    Then, once you have the MP3 bytes streaming into your RAM, you need to decode them into audio. There are some non-proprietary decoding libraries in c, I have no clue how they work or what will you need to run them in a Tiva, but... Here's just one example quickly googled out...

    http://www.mpg123.de/api/

    Then, only then, output the digital audio to a DAC.

    Quite a challenge... this should take at least some 8 hours to accomplish...

    Enjoy the music.

    Bruno
  • May I advise first trying to reproduce a a .wav file. Then find out how to take the music info out of a .mp3 file? (maybe, don't know how hard it is to interpret a mp3)

    If you search MCU .wav audio generation you will find good general info on how to do it. It's with a integrated DAC but you can use a external of course.

    And do break the problems into smaller ones (layers even) like Bruno suggested. Makes it seem much easier
  • Luis Afonso said:
    May I advise first trying to reproduce a a .wav file

    That's a good suggestion, Luis!

    Let me add that this recent/ongoing thread - despite the misleading name - is a good source of posts as to understanding the generation of audio from a wav file:

    e2e.ti.com/.../613086

    Bruno