- For engineers of LS, before debugging & development, please follow the steps below to compile:
-
Git clone audio_play_demo locally based on internal repository url.
-
Use command "git submodule update --init" to fetch submodules (LS_SDK & audio_play) with corresponding versions.
-
Modify user_audio_config.h(including audio_hw.h if RESOLUTION_DEFAULT need to be modified). Do not make any modification for the head files in the following steps!!!
-
Enter audio_play portfolio and execute "Scons install" to generate lib file in target directory(LS_SDK/soc/arm_cm/le501x/bin).
-
Enter app portfolio and execute "Scons" to generate production hex file.
-
Erase flash and download audio files to flash by JFlash or other programming tools. Before programming, ensure that the start address for of the audio files required by JFlash should be equal with the base address configuration in user_audio_config.h. The default demo audio file is laid under directory app\audio_format\xxx while xxx is the audio format.
-
Download production hex file to flash. Do not erase flash anymore in this step!!!
- For clients, please follow the steps below to compile:
-
Download the audio_play_demo zip file then unzip it. Another way is fetching audio_play_demo with the repository url by git.
-
Unzip the zip file of LS_SDK in the root directory of audio_play_demo.
-
Modify user_audio_config.h, and copy the corresponding lib file(app/libs/lib_audio_play_xxx.o) to "LS_SDK/soc/arm_cm/le501x/bin", if can be found. Remember renaming it to "lib_audio_play.o" after copy. Try to contact the AE/FAE if no corresponding lib file can be found.
If you are using VS Code & ARMGCC:
- Enter app portfolio and execute "Scons" to generate production hex file.
If you are using Keil:
- Enter audio_play_demo\app\le501x\uvision5, open Keil project, then compile the default application.
Then:
-
Erase flash and download audio files to flash by JFlash or other programming tools. Before programming, ensure that the start address for of the audio files required by JFlash should be equal with the base address configuration in user_audio_config.h. The default demo audio file is laid under directory app\audio_format\xxx while xxx is the audio format.
-
Download production hex file to flash. Do not erase flash anymore in this step!!!