justd0 发表于 2020-9-2 22:38

【ESP32-S2-Kaluga-1测评】4、触摸音频播放测试

本帖最后由 justd0 于 2020-9-2 22:54 编辑

<p>ESP32-S2-Kaluga-1开发套件很多媒体啊,带了外放。</p>

<p>touch_audio例程按照说明文档烧写到板子中,按下paly键之后,</p>

<p>居然响起了那首经典的光辉岁月,那是我逝去的青春啊,就是声音有些小,没办法调大。</p>

<p>运行日志如下:</p>

<pre>
<code>ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe8100,len:0x8
load:0x3ffe8108,len:0x193c
load:0x40050000,len:0x18c4
load:0x40054000,len:0x2114
entry 0x40050314
I (46) boot: ESP-IDF -128-NOTFOUND 2nd stage bootloader
I (46) boot: compile time 07:40:36
I (46) boot: chip revision: 0
I (48) qio_mode: Enabling default flash chip QIO
I (53) boot.esp32s2: SPI Speed      : 80MHz
I (58) boot.esp32s2: SPI Mode       : QIO
I (63) boot.esp32s2: SPI Flash Size : 4MB
I (68) boot: Enabling RNG early entropy source...
I (73) boot: Partition Table:
I (77) boot: ## Label            Usage          Type ST Offset   Length
I (84) boot:0 nvs            WiFi data      01 02 00009000 00006000
I (91) boot:1 phy_init         RF data          01 01 0000f000 00001000
I (99) boot:2 factory          factory app      00 00 00010000 00100000
I (106) boot:3 storage          Unknown data   01 82 00110000 002f0000
I (114) boot: End of partition table
I (118) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f000020 size=0x0cf14 ( 53012) map
I (137) esp_image: segment 1: paddr=0x0001cf3c vaddr=0x3ffbf7e0 size=0x01f04 (7940) load
I (139) esp_image: segment 2: paddr=0x0001ee48 vaddr=0x40024000 size=0x00404 (1028) load
0x40024000: _WindowOverflow4 at /home/zealer/esp/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730

I (145) esp_image: segment 3: paddr=0x0001f254 vaddr=0x40024404 size=0x00dc4 (3524) load
0x40024404: _coredump_iram_end at ??:?

I (155) esp_image: segment 4: paddr=0x00020020 vaddr=0x40080020 size=0x2a56c (173420) map
0x40080020: _stext at ??:?

I (194) esp_image: segment 5: paddr=0x0004a594 vaddr=0x400251c8 size=0x0a60c ( 42508) load
0x400251c8: call_start_cpu0 at /home/zealer/esp/esp-idf/components/esp_system/port/cpu_start.c:283

I (211) boot: Loaded app from partition at offset 0x10000
I (211) boot: Disabling RNG early entropy source...
I (222) cache: Instruction cache      : size 8KB, 4Ways, cache line size 32Byte
I (222) cpu_start: Pro cpu up.
I (276) cpu_start: Pro cpu start user code
I (276) cpu_start: Application information:
I (276) cpu_start: Project name:   esp32-s2-hmi
I (279) cpu_start: App version:      6afa494-dirty
I (285) cpu_start: Compile time:   Aug1 2020 07:40:58
I (291) cpu_start: ELF file SHA256:d4f738812697a973...
I (297) cpu_start: ESP-IDF:          -128-NOTFOUND
I (302) heap_init: Initializing. RAM available for dynamic allocation:
I (310) heap_init: At 3FFC1F60 len 0003A0A0 (232 KiB): DRAM
I (316) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM
I (322) spi_flash: detected chip: generic
I (327) spi_flash: flash io: qio
I (331) cpu_start: Starting scheduler on PRO CPU.
I (336) main: Startup..
I (336) main: Free memory: 237468 bytes
I (336) main: IDF version: -128-NOTFOUND
I (346) main: Initializing SPIFFS
I (406) main: Partition size: total: 2824001, used: 2596344
I (406) main: Reading file
I (426) main: Read from file: 'esp32s2-kaluga-1'
I (426) main: Initializing WS2812
I (426) Touch pad: Initializing touch pad
I (426) Touch pad: Denoise function init
I (436) Touch pad: touch pad waterproof init
I (436) Touch pad: touch pad filter init 1
I (546) Touch pad: test init: touch pad base 15797, thresh 1579
I (546) Touch pad: test init: touch pad base 14759, thresh 1475
I (546) Touch pad: test init: touch pad base 16500, thresh 1650
I (556) Touch pad: test init: touch pad base 15056, thresh 1505
I (556) Touch pad: test init: touch pad base 15377, thresh 1537
I (566) Touch pad: test init: touch pad base 15376, thresh 1537
I (576) Touch pad: test init: touch pad base 33184, thresh 3318
I (616) DRV8311: ES8311 in Slave mode

I (926) DRV8311: ES8311 in I2S Format

I (1146) gpio: GPIO| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1146) gpio: GPIO| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1146) DRV8311: SET: volume:127

I (1166) I2S: DMA Malloc info, datalen=blocksize=1024, dma_buf_count=6
I (1166) I2S: DMA Malloc info, datalen=blocksize=1024, dma_buf_count=6
I (1176) I2S: APLL: Req RATE: 44100, real rate: 44099.988, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 11289597.000, SCLK: 1411199.625000, diva: 1, divb: 0
I (1186) AUDIO: start to decode /spiffs/To_meet_the_prime_time_44k.mp3
I (1206) I2S: APLL: Req RATE: 44100, real rate: 44099.988, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 11289597.000, SCLK: 1411199.625000, diva: 1, divb: 0
I (1216) AUDIO: mp3file info---bitrate=128000,layer=3,nChans=2,samprate=44100,outputSamps=2304
I (1216) AUDIO: 0x3ffc6e04

I (1236) DRV8311: SET: volume:127

I (3046) Touch pad: TouchSensor be actived, status mask 0x4
I (3166) Touch pad: TouchSensor be inactived, status mask 0x0
I (6086) Touch pad: TouchSensor be actived, status mask 0x40
I (6236) AUDIO: AUDIO_LAST
I (6236) AUDIO: R:255. G:255. B:0
I (6236) AUDIO: end mp3 decode ..
I (6286) Touch pad: TouchSensor be inactived, status mask 0x0
I (7076) Touch pad: TouchSensor be actived, status mask 0x20
I (7236) AUDIO: start to decode /spiffs/lemon_tree_8k.mp3
I (7246) AUDIO: R:0. G:0. B:0
I (7256) I2S: PLL_D2: Req RATE: 8000, real rate: 8012.000, BITS: 16, CLKM: 78, BCK: 8, MCLK: 2048000.000, SCLK: 256384.000000, diva: 64, divb: 8
I (7256) AUDIO: mp3file info---bitrate=24000,layer=3,nChans=2,samprate=8000,outputSamps=1152
I (7316) Touch pad: TouchSensor be inactived, status mask 0x0
I (7726) Touch pad: TouchSensor be actived, status mask 0x800
I (7846) AUDIO: AUDIO_NEXT
I (7846) AUDIO: R:0. G:255. B:255
I (7896) Touch pad: TouchSensor be inactived, status mask 0x0
I (7896) AUDIO: end mp3 decode ..
I (8506) Touch pad: TouchSensor be actived, status mask 0x2
I (8646) AUDIO: vol_up
I (8646) DRV8311: SET: volume:140

I (8656) AUDIO: R:255. G:0. B:0
I (8696) Touch pad: TouchSensor be inactived, status mask 0x0
I (8896) AUDIO: start to decode /spiffs/To_meet_the_prime_time_44k.mp3
I (8906) I2S: APLL: Req RATE: 44100, real rate: 44099.988, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 11289597.000, SCLK: 1411199.625000, diva: 1, divb: 0
I (8916) AUDIO: mp3file info---bitrate=128000,layer=3,nChans=2,samprate=44100,outputSamps=2304
I (9076) Touch pad: TouchSensor be actived, status mask 0x8
I (9246) Touch pad: TouchSensor be inactived, status mask 0x0</code></pre>

<p></p>
页: [1]
查看完整版本: 【ESP32-S2-Kaluga-1测评】4、触摸音频播放测试