Read the Docs Template Documentation, Release
cd
~/esp/play_mp3
make menuconfig
Save the configuration.
1.8 Build, Flash and Monitor
Now you can build, upload and check the application. Run:
make flash monitor -j5
This will build the application including ESP-IDF / ESP-ADF components, upload binaries to your ESP32 board and
start the monitor.
...
I (303) PLAY_MP3_FLASH: [ 1 ] Start audio codec chip
I (323) PLAY_MP3_FLASH: [ 2 ] Create audio pipeline, add all elements to pipeline,
˓
→
and subscribe pipeline event
I (323) PLAY_MP3_FLASH: [2.1] Create mp3 decoder to decode mp3 file and set custom
˓
→
read callback
I (333) PLAY_MP3_FLASH: [2.2] Create i2s stream to write data to codec chip
I (343) PLAY_MP3_FLASH: [2.3] Register all elements to audio pipeline
I (353) PLAY_MP3_FLASH: [2.4] Link it together [mp3_music_read_cb]-->mp3_decoder-->
˓
→
i2s_stream-->[codec_chip]
I (363) PLAY_MP3_FLASH: [ 3 ] Setup event listener
I (363) PLAY_MP3_FLASH: [3.1] Listening event from all elements of pipeline
I (373) PLAY_MP3_FLASH: [ 4 ] Start audio_pipeline
W (373) AUDIO_ELEMENT: [mp3] RESUME:Element has not running,state:3,task_run:1
W (393) AUDIO_ELEMENT: [i2s] RESUME:Element has not running,state:3,task_run:1
I (403) PLAY_MP3_FLASH: [ * ] Receive music info from mp3 decoder, sample_rates=44100,
˓
→
bits=16, ch=2
W (433) AUDIO_ELEMENT: [i2s] RESUME:Element has not running,state:3,task_run:1
I (7183) PLAY_MP3_FLASH: [ 5 ] Stop audio_pipeline
W (7183) AUDIO_PIPELINE: There are no listener registered
If there are no issues, besides the above log, you should hear a sound played for about 7 seconds by the speakers or
headphones connected to your audio board. Reset the board to hear it again if required.
Now you are ready to try some other
, or go right to developing your own applications. Check how the
are made aware of location of the ESP-ADF. Open the
and you should see
PROJECT_NAME := play_mp3
include $(ADF_PATH)/project.mk
The second line contains
$ADF_PATH
to point the toolchain to the ESP-ADF. You need similar
Makefile
in your
own applications developed with the ESP-ADF.
1.9 Update ESP-ADF
After some time of using ESP-ADF, you may want to update it to take advantage of new features or bug fixes. The
simplest way to do so is by deleting existing
esp-adf
folder and cloning it again, which is same as when doing initial
installation described in sections
10
Chapter 1. Get Started
Summary of Contents for ESP32-LyraT
Page 1: ...Read the Docs Template Documentation Release Read the Docs Jul 01 2018...
Page 2: ......
Page 4: ...ii...
Page 6: ...Read the Docs Template Documentation Release 2 Contents...
Page 92: ...Read the Docs Template Documentation Release 88 Chapter 4 Resources...
Page 94: ...Read the Docs Template Documentation Release 90 Chapter 5 Copyrights and Licenses...