这周我在官网下了下载FLASH的软件。
也下了音频开发板的固件。https://docs.ai-thinker.com/esp32-audio-kit-factory-bin
总共三个bin文件,我把第一个最全的烧进去了。
我用串口助手观察,发现没有声音,只有噪声。我想得改那个I2C引脚。那就得搭开发环境了。
以下是我串口的数据,按KEY2是WIFI同SD卡的切换。
event[0m
[0;32mI (44369) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 0 [0m
[0;32mI (46929) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol+] touch tap event[0m
[0;32mI (46929) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 5 [0m
[0;32mI (48039) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol+] touch tap event[0m
[0;32mI (48039) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 10 [0m
[0;32mI (48759) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol+] touch tap event[0m
[0;32mI (48759) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 15 [0m
[0;32mI (49219) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol+] touch tap event[0m
[0;32mI (49229) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 20 [0m
[0;32mI (49759) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol+] touch tap event[0m
[0;32mI (49769) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 25 [0m
[0;32mI (50219) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol+] touch tap event[0m
[0;32mI (50219) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 30 [0m
[0;32mI (53289) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol-] touch tap event[0m
[0;32mI (53289) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 25 [0m
[0;32mI (53749) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol-] touch tap event[0m
[0;32mI (53749) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 20 [0m
[0;32mI (54069) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol-] touch tap event[0m
[0;32mI (54069) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 15 [0m
[0;32mI (54339) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol-] touch tap event[0m
[0;32mI (54339) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 10 [0m
[0;32mI (55539) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol+] touch tap event[0m
[0;32mI (55539) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 15 [0m
[0;32mI (55899) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol+] touch tap event[0m
[0;32mI (55899) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 20 [0m
[0;32mI (56209) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Vol+] touch tap event[0m
[0;32mI (56209) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Volume set to 25 [0m
ets Jun 8 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
[0;32mI (28) boot: ESP-IDF v3.0.1 2nd stage bootloader[0m
[0;32mI (28) boot: compile time 13:49:50[0m
[0;32mI (28) boot: Enabling RNG early entropy source...[0m
[0;32mI (32) boot: SPI Speed : 40MHz[0m
[0;32mI (37) boot: SPI Mode : DIO[0m
[0;32mI (41) boot: SPI Flash Size : 4MB[0m
[0;32mI (45) boot: Partition Table:[0m
[0;32mI (48) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (56) boot: 0 nvs WiFi data 01 02 00009000 00004000[0m
[0;32mI (63) boot: 1 otadata OTA data 01 00 0000d000 00002000[0m
[0;32mI (70) boot: 2 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (78) boot: 3 factory factory app 00 00 00010000 00300000[0m
[0;32mI (85) boot: End of partition table[0m
[0;32mI (90) boot: Defaulting to factory image[0m
[0;32mI (94) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x40a94 (264852) map[0m
[0;32mI (196) esp_image: segment 1: paddr=0x00050abc vaddr=0x3ffc0000 size=0x02a48 ( 10824) load[0m
[0;32mI (200) esp_image: segment 2: paddr=0x0005350c vaddr=0x40080000 size=0x00400 ( 1024) load[0m
[0;32mI (203) esp_image: segment 3: paddr=0x00053914 vaddr=0x40080400 size=0x0c6fc ( 50940) load[0m
[0;32mI (233) esp_image: segment 4: paddr=0x00060018 vaddr=0x400d0018 size=0x98f40 (626496) map[0m
[0;32mI (452) esp_image: segment 5: paddr=0x000f8f60 vaddr=0x4008cafc size=0x037e8 ( 14312) load[0m
[0;32mI (459) esp_image: segment 6: paddr=0x000fc750 vaddr=0x400c0000 size=0x00000 ( 0) load[0m
[0;32mI (468) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (469) boot: Disabling RNG early entropy source...[0m
[0;32mI (471) cpu_start: Pro cpu up.[0m
[0;32mI (474) cpu_start: Starting app cpu, entry point is 0x4008103c[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (485) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (492) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM[0m
[0;32mI (498) heap_init: At 3FFCF520 len 00010AE0 (66 KiB): DRAM[0m
[0;32mI (504) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM[0m
[0;32mI (510) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (517) heap_init: At 400902E4 len 0000FD1C (63 KiB): IRAM[0m
[0;32mI (523) cpu_start: Pro cpu start user code[0m
[0;32mI (205) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m
START OK
USER_PARTION_2
[0;32mI (209) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (519) phy: phy_version: 3662, 711a97c, May 9 2018, 14:29:06, 0, 0[0m
[0;32mI (559) SDCARD_BT_CONTROL_EXAMPLE: [1.0] Initialize peripherals management[0m
[0;32mI (559) SDCARD_BT_CONTROL_EXAMPLE: [1.1] Start SD card peripheral[0m
[0;32mI (559) SDCARD_BT_CONTROL_EXAMPLE: [1.2] Start SD card peripheral[0m
[0;32mI (569) SDCARD_BT_CONTROL_EXAMPLE: [1.3] Create Bluetootlh peripheral[0m
mounted!
--->姜育恒~1.mp3
[0;32mI (619) SDCARD_BT_CONTROL_EXAMPLE: [1.4] Initialize Touch peripheral[0m
[0;32mI (619) SDCARD_BT_CONTROL_EXAMPLE: [ 2 ] Start codec chip[0m
[0;31mE (1629) AC101_DRIVER: reset failed![0m
[0;32mI (1739) SDCARD_BT_CONTROL_EXAMPLE: [3.0] Create audio pipeline for playback[0m
[0;32mI (1739) SDCARD_BT_CONTROL_EXAMPLE: [3.1] Create i2s stream to write data to codec chip[0m
[0;32mI (1749) SDCARD_BT_CONTROL_EXAMPLE: [3.2] Get Bluetooth stream[0m
[0;32mI (1749) SDCARD_BT_CONTROL_EXAMPLE: [3.2] Create mp3 decoder to decode mp3 file[0m
[0;32mI (1759) SDCARD_BT_CONTROL_EXAMPLE: [4.0] Setup event listener[0m
[0;32mI (1759) SDCARD_BT_CONTROL_EXAMPLE: [4.1] Listen for all pipeline events[0m
[0;32mI (1769) SDCARD_BT_CONTROL_EXAMPLE: [4.2] Listening event from peripherals[0m
[0;32mI (1779) SDCARD_BT_CONTROL_EXAMPLE: [3.3] Link it together [Bluetooth]-->bt_stream_reader-->i2s_stream_writer-->[codec_chip][0m
[0;33mW (1789) SDCARD_BT_CONTROL_EXAMPLE: [ 5 ] Tap touch buttons to control music player:[0m
[0;33mW (1799) SDCARD_BT_CONTROL_EXAMPLE: [KEY1][Prev] Previous song.[0m
[0;33mW (1809) SDCARD_BT_CONTROL_EXAMPLE: [KEY2][mode] Select sd or bt mode.[0m
[0;33mW (1809) SDCARD_BT_CONTROL_EXAMPLE: [KEY3][next] Next song.[0m
[0;33mW (1819) SDCARD_BT_CONTROL_EXAMPLE: [KEY4][stop] Stop or Play.[0m
[0;33mW (1829) SDCARD_BT_CONTROL_EXAMPLE: [KEY5][vol+] adjust volume +.[0m
[0;33mW (1829) SDCARD_BT_CONTROL_EXAMPLE: [KEY6][vol-] adjust volume -.[0m
[0;32mI (1839) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (11829) SDCARD_BT_CONTROL_EXAMPLE: [ * ] BT mode Touch_set[0m
[0;32mI (12819) SDCARD_BT_CONTROL_EXAMPLE: [ * ] BT mode Touch_set[0m
[0;32mI (13519) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Current Mode: SD_Mode [0m
[0;33mW (18549) AUDIO_PIPELINE: There are no listener registered[0m
[0;32mI (18549) SDCARD_BT_CONTROL_EXAMPLE: [3.4] Link it together [my_sdcard_read_cb]-->mp3_decoder-->i2s_stream-->[codec_chip][0m
+++++:/sdcard/music/姜育恒~1.mp3
[0;32mI (18559) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (18579) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Received music info from mp3 decoder, sample_rates=44100, bits=16, ch=2[0m
[0;32mI (18619) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (18619) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (71409) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Set] touch tap event[0m
[0;32mI (71409) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Finishing current song[0m
[0;31mE (71449) MP3_DECODER: output aborted 3584[0m
[0;32mI (71449) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (71449) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (71539) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (71539) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Finished, advancing to the next song[0m
+++++:/sdcard/music/姜育恒~1.mp3
[0;32mI (71549) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (71569) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Received music info from mp3 decoder, sample_rates=44100, bits=16, ch=2[0m
[0;32mI (71599) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (71599) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (72569) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Play] touch tap event[0m
[0;32mI (72569) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Pausing audio pipeline[0m
[0;32mI (72629) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (74929) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Play] touch tap event[0m
[0;32mI (74929) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Resuming audio pipeline[0m
[0;32mI (74939) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (76489) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Play] touch tap event[0m
[0;32mI (76499) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Pausing audio pipeline[0m
[0;32mI (76529) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
[0;32mI (77769) SDCARD_BT_CONTROL_EXAMPLE: [ * ] [Play] touch tap event[0m
[0;32mI (77769) SDCARD_BT_CONTROL_EXAMPLE: [ * ] Resuming audio pipeline[0m
[0;32mI (77779) SDCARD_BT_CONTROL_EXAMPLE: [ * ] AEL msg cmd reported status[0m
这是几天 以前的实验了,但我今天觉得奇怪,我打开固件那个连接,固件下载居然没了。给我感觉,厂家对音频我觉得不太认真。因为固件根本就是以前版本的。
但是这不就是一个专门为音频设计的开发套件吗?