ddllxxrr 发表于 2021-9-5 21:11

[ESP32-Audio-Kit音频开发板测评]二、下载音频固件

<p>这周我在官网下了下载FLASH的软件。</p>

<p>也下了音频开发板的固件。<a href="https://docs.ai-thinker.com/esp32-audio-kit-factory-bin">https://docs.ai-thinker.com/esp32-audio-kit-factory-bin</a></p>

<p>总共三个bin文件,我把第一个最全的烧进去了。</p>

<p></p>

<p>&nbsp;</p>

<p>我用串口助手观察,发现没有声音,只有噪声。我想得改那个I2C引脚。那就得搭开发环境了。</p>

<p>以下是我串口的数据,按KEY2是WIFI同SD卡的切换。</p>

<pre>
<code>event
 Volume set to 0 
 touch tap event
 Volume set to 5 
 touch tap event
 Volume set to 10 
 touch tap event
 Volume set to 15 
 touch tap event
 Volume set to 20 
 touch tap event
 Volume set to 25 
 touch tap event
 Volume set to 30 
 touch tap event
 Volume set to 25 
 touch tap event
 Volume set to 20 
 touch tap event
 Volume set to 15 
 touch tap event
 Volume set to 10 
 touch tap event
 Volume set to 15 
 touch tap event
 Volume set to 20 
 touch tap event
 Volume set to 25 
ets Jun8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5564
load:0x40078000,len:0
load:0x40078000,len:13756
entry 0x40078fb4
I (28) boot: ESP-IDF v3.0.1 2nd stage bootloader
I (28) boot: compile time 13:49:50
I (28) boot: Enabling RNG early entropy source...
I (32) boot: SPI Speed      : 40MHz
I (37) boot: SPI Mode       : DIO
I (41) boot: SPI Flash Size : 4MB
I (45) boot: Partition Table:
I (48) boot: ## Label            Usage          Type ST Offset   Length
I (56) boot:0 nvs            WiFi data      01 02 00009000 00004000
I (63) boot:1 otadata          OTA data         01 00 0000d000 00002000
I (70) boot:2 phy_init         RF data          01 01 0000f000 00001000
I (78) boot:3 factory          factory app      00 00 00010000 00300000
I (85) boot: End of partition table
I (90) boot: Defaulting to factory image
I (94) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x40a94 (264852) map
I (196) esp_image: segment 1: paddr=0x00050abc vaddr=0x3ffc0000 size=0x02a48 ( 10824) load
I (200) esp_image: segment 2: paddr=0x0005350c vaddr=0x40080000 size=0x00400 (1024) load
I (203) esp_image: segment 3: paddr=0x00053914 vaddr=0x40080400 size=0x0c6fc ( 50940) load
I (233) esp_image: segment 4: paddr=0x00060018 vaddr=0x400d0018 size=0x98f40 (626496) map
I (452) esp_image: segment 5: paddr=0x000f8f60 vaddr=0x4008cafc size=0x037e8 ( 14312) load
I (459) esp_image: segment 6: paddr=0x000fc750 vaddr=0x400c0000 size=0x00000 (   0) load
I (468) boot: Loaded app from partition at offset 0x10000
I (469) boot: Disabling RNG early entropy source...
I (471) cpu_start: Pro cpu up.
I (474) cpu_start: Starting app cpu, entry point is 0x4008103c
I (0) cpu_start: App cpu up.
I (485) heap_init: Initializing. RAM available for dynamic allocation:
I (492) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (498) heap_init: At 3FFCF520 len 00010AE0 (66 KiB): DRAM
I (504) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (510) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (517) heap_init: At 400902E4 len 0000FD1C (63 KiB): IRAM
I (523) cpu_start: Pro cpu start user code
I (205) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.


START OK



USER_PARTION_2

| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (519) phy: phy_version: 3662, 711a97c, May9 2018, 14:29:06, 0, 0
 Initialize peripherals management
 Start SD card peripheral
 Start SD card peripheral
 Create Bluetootlh peripheral
mounted!

---&gt;姜育恒~1.mp3



 Initialize Touch peripheral
 Start codec chip
E (1629) AC101_DRIVER: reset failed!
 Create audio pipeline for playback
 Create i2s stream to write data to codec chip
 Get Bluetooth stream
 Create mp3 decoder to decode mp3 file
 Setup event listener
 Listen for all pipeline events
 Listening event from peripherals
 Link it together --&gt;bt_stream_reader--&gt;i2s_stream_writer--&gt;
 Tap touch buttons to control music player:
 Previous song.
 Select sd or bt mode.
 Next song.
 Stop or Play.
 adjust volume +.
 adjust volume -.
 AEL msg cmd reported status
 BT mode Touch_set
 BT mode Touch_set
 Current Mode: SD_Mode 
W (18549) AUDIO_PIPELINE: There are no listener registered
 Link it together --&gt;mp3_decoder--&gt;i2s_stream--&gt;
+++++:/sdcard/music/姜育恒~1.mp3

 AEL msg cmd reported status
 Received music info from mp3 decoder, sample_rates=44100, bits=16, ch=2
 AEL msg cmd reported status
 AEL msg cmd reported status
 touch tap event
 Finishing current song
E (71449) MP3_DECODER: output aborted 3584
 AEL msg cmd reported status
 AEL msg cmd reported status
 AEL msg cmd reported status
 Finished, advancing to the next song
+++++:/sdcard/music/姜育恒~1.mp3

 AEL msg cmd reported status
 Received music info from mp3 decoder, sample_rates=44100, bits=16, ch=2
 AEL msg cmd reported status
 AEL msg cmd reported status
 touch tap event
 Pausing audio pipeline
 AEL msg cmd reported status
 touch tap event
 Resuming audio pipeline
 AEL msg cmd reported status
 touch tap event
 Pausing audio pipeline
 AEL msg cmd reported status
 touch tap event
 Resuming audio pipeline
 AEL msg cmd reported status
</code></pre>

<p>这是几天 以前的实验了,但我今天觉得奇怪,我打开固件那个连接,固件下载居然没了。给我感觉,厂家对音频我觉得不太认真。因为固件根本就是以前版本的。</p>

<p>&nbsp;</p>

tagetage 发表于 2021-9-6 09:39

<p>技术支持很少啊。没有资料怎么玩??</p>

w494143467 发表于 2021-9-7 11:53

<p>但是这不就是一个专门为音频设计的开发套件吗?</p>

se7ens 发表于 2021-9-7 17:45

<p>从串口数据来看,基本是可以控制音频了</p>

tangzehua 发表于 2021-10-13 16:13

<p>赚个积分</p>
页: [1]
查看完整版本: [ESP32-Audio-Kit音频开发板测评]二、下载音频固件