AN2931
If you run the Muse.exe program and press the Source File Browse button, the File
Selection dialog appears, prompting you to select a WAV source file. As mentioned before,
the WAV file should meet the following requirements:
●
Audio format: PCM
●
Audio sample size: 16 bits
●
Channels: 1 (mono)
●
Audio sample rate: from 8 kHz to 44.1 kHz
If your WAV file does not satisfy these conditions, you must previously convert it using an
audio converter tool, like sndrec32.exe, which is the Microsoft
records.
Once you have selected the file to be converted, the New File Selection dialog appears,
prompting you to select the save location of your ADPCM converted file.
You can retrieve the PCM format of the encoded audio file by ticking the Make a recovered
PCM file check box. In this case, the generated ADPCM file is decoded and formatted into a
WAV file. This WAV file is called Recover.wav and it is generated in the same directory as
your WAV source file. In this way you can listen to both the original WAV file and the
recovered one to compare the sound quality.
2.3
ADPCM file loading
Use the DfuSe software to load the ADPCM file into the NOR Flash memory. To do so, two
steps are necessary:
1.
generating the .dfu image
2.
loading the .dfu image into the NOR Flash memory
Generating the .dfu image
To generate the .dfu image, you have to use the DFU File Manager software provided within
the DfuSe package. For that, open the DFU File Manager program and choose the DFU file
generation option. The window shown in
ID, meaning that the file is loaded into the NOR Flash memory. Then, click on the Multi
BIN... button to open the source browser and select your ADPCM file.
Figure 2
opens. You have to select 2 for the target
Doc ID 15349 Rev 2
Implementation example
®
default program for audio
9/15
Need help?
Do you have a question about the STM32F103 Series and is the answer not in the manual?
Questions and answers