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.

TM4C129ENCPDT: wav files in Tiva?

Part Number: TM4C129ENCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Hello,

Using CCS v6, Tiva TM4C EK and TivaWare...

I am having some issues with .wav files. I have done some research before, and none of the content I found helped me. 

I need to read a 3 second .wav file stored on the board to do some processing on it later. The file will come from an online server via Ethernet. It will only be read once; there is no need to write anything nor read it multiple times. I just need to get the samples in it and store them in a vector.

One of the issues is here, where and how can I store a 300kB .wav file on the Tiva board? Flash maybe? 

The other thing is, I found 'wavfile' in TivaWare, so I will use them to read the .wav file.

I was going to test it, but I have literally no clue how to use the parameters of the functions. Documentation does'nt help and I didn't find any example to this uC or board.

It might be confusing, but any help is welcome,

Luiz.

  • Are you using the EK-TM4C1294XL evaluation kit? That board alone is not good for handling such a large file. You probably need to add external RAM or FLASH, depending on what access speed you need to the .wav file. Trying to store it in the on-chip program flash is probably not a good idea as you  would basically need to treat it like a custom Ethernet boot loader. I would suggest writing to an external flash via USB, or external flash or RAM on a booster pack.

  • *** LIKE ***

    Bravo Bob - forcing any MCU (any vendor) to perform (far) beyond its norm (i.e. "Kitchen Sink") is usually a losing proposition. As you well note - external memory (my vote is for (first to RAM) - then copy to Flash only as/if needed. (long duration storage required...)

    As always - poster will benefit from conducting a "broader based search" (there exist (other) vendors - some more specialized than others) and by a review of (near/similar) commercially based products - to discover the key features - maybe even the "methods" - which, can be expected to, "Speed, Ease, Enhance" project development (thus justify) such "added investigation..."

  • thanks for the reply,

    I am using EK-TM4C129EXL, and access speed to the file is not a critical point. But looking at the user guide and manual, I find that there may not be sufficient space for storing such file, so a BoosterPack with more RAM may be the solution?

    thanks in advance