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.

CCS/MSP-EXP430F5438: CCS/MSP-EXP430F5438:

Part Number: MSP-EXP430F5438

Tool/software: Code Composer Studio

Hi All,

I have been using RealwavfileXCPU.xls file to convert .wav Audio files to MSP430 compatibale hex files to Play Audio with MSP430F4358A.

However, I see some additional buzz noise or TIC noise at starting and ending of file. When I removed first 2 rows of hex file data and last 5 to 6 rows, I get better Audio with less noise.

Is there any convertion Software or tool to convert Audio file to PCM 8 bit, 8ksps, mono data,which is MSP430 compatible HEX file.

Are there any options availble in Code Composer Studio tool to convert them.

Please suggest your experience to convert Audio files to required Format of MSP430.

Regards,

Raju

  • Hi Raju,

    I gather that you are using the SLAA405 software resources, keep in mind that these were developed for the MSP430FG4618 and the difference in memory organization from the MSP430F5438 may require some flash sector changes. You should also refer to the TIDM-VOICEBANDAUDIO.

    TI does not have any kind of software for converting sound files to hex. It is good practice to round off the playback length of any file generated as converters sometimes add non-sound data to the end of files that cause bad noise.  The algorithm could also get off track due to lack of source samples at the end, which would also result in noise. 

    Regards,
    Ryan

  • Raju,

    We do not  provide software for that purpose however I do have some source code (JAVA) that I could send you. This code reads/writes a wave file. You will need to understand the code and study it. Then you will be able to customize it for your own use. Do you have any interest in that?

    -Nima

  • Hi Nima,
    Please provide the script and provide instructions to use it. I dont kow Java, but I will try it.
    Can it be used with CCS? or any other tool to execute Java source code?

    Regards,
    Raju
  • Hi Ryan,

    Thanks for the clarification. Please recommend any other 3rd Party tool or converter to generate hex files as it is critical to generate Audio without noise. Also, pls provide info what to install from TIDM-VOICEBANDAUDIO Software Folders.

    Regards,
    Raju
  • Raju,

    Here are some notes to get you started,

    A wave file contain a header which defined the sample rate, data width, single channel (mono) or dual channel (stereo) and more information. After the header section, the actual audio data is present. If you view your .wave file with a text editor, you will be able to identify these fields.

    Here is a link with full description of .wave file: 

    Next you can use this to take out the audio data section and change the sample rate,

    If your new sample rate is higher, that means you will be using the same value multiple times.

    If your new sample rate is lower, that means you will be ignoring some data.

    There are software examples in python and java for this,

    Python:  

    Java: 

    You have to use these files + some custom code to write a hex file which you can use with your EXP-board.

**Attention** This is a public forum