espressif / esp-dev-kits

Docs, Schematics, Factory Firmwares for ESP Development Kits
Other
345 stars 183 forks source link

测试touch_audio工程,但没有声音播放出来 #18

Closed coollofty closed 1 year ago

coollofty commented 3 years ago

使用的是V1.2的硬件,完全按照工程文档里的说明来进行的接线(后面有图) 以下是运行时从BOOT到最后的日志:

I (46) boot: ESP-IDF v4.2-dev-1983-gccdfbb865-dirty 2nd stage bootloader
I (46) boot: compile time 09:27:53
I (46) boot: chip revision: 0
I (50) qio_mode: Enabling default flash chip QIO
I (55) boot.esp32s2: SPI Speed      : 80MHz
I (60) boot.esp32s2: SPI Mode       : QIO
I (65) boot.esp32s2: SPI Flash Size : 4MB
I (70) boot: Enabling RNG early entropy source...
I (75) boot: Partition Table:
I (79) boot: ## Label            Usage          Type ST Offset   Length
I (86) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (93) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (101) boot:  2 factory          factory app      00 00 00010000 00100000
I (108) boot:  3 storage          Unknown data     01 82 00110000 002f0000
I (116) boot: End of partition table
I (120) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f000020 size=0x1cac8 (117448) map
I (150) esp_image: segment 1: paddr=0x0002caf0 vaddr=0x3ffc9d50 size=0x0334c ( 13132) load
I (153) esp_image: segment 2: paddr=0x0002fe44 vaddr=0x40024000 size=0x001d4 (   468) load
0x40024000: _WindowOverflow4 at E:/esp32/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730

I (157) esp_image: segment 3: paddr=0x00030020 vaddr=0x40080020 size=0x82848 (534600) map
0x40080020: _stext at ??:?

I (263) esp_image: segment 4: paddr=0x000b2870 vaddr=0x400241d4 size=0x00230 (   560) load
0x400241d4: _Level3Vector at ??:?

I (263) esp_image: segment 5: paddr=0x000b2aa8 vaddr=0x40024404 size=0x15940 ( 88384) load
I (302) boot: Loaded app from partition at offset 0x10000
I (302) boot: Disabling RNG early entropy source...
I (302) cache: Instruction cache        : size 8KB, 4Ways, cache line size 32Byte
I (310) cpu_start: Pro cpu up.
I (313) cpu_start: Application information:
I (318) cpu_start: Project name:     esp32-s2-hmi
I (324) cpu_start: App version:      6afa494-dirty
I (329) cpu_start: Compile time:     Sep 19 2020 09:26:19
I (335) cpu_start: ELF file SHA256:  4dae59f9cf022516...
I (341) cpu_start: ESP-IDF:          v4.2-dev-1983-gccdfbb865-dirty
I (348) cpu_start: Single core mode
I (352) heap_init: Initializing. RAM available for dynamic allocation:
I (359) heap_init: At 3FFD28D8 len 00029728 (165 KiB): DRAM
I (366) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM
I (372) cpu_start: Pro cpu start user code
I (435) spi_flash: detected chip: gd
I (435) spi_flash: flash io: qio
I (435) cpu_start: Starting scheduler on PRO CPU.
I (438) main: [APP] Startup..
I (438) main: [APP] Free memory: 169476 bytes
I (438) main: [APP] IDF version: v4.2-dev-1983-gccdfbb865-dirty
I (458) main: Initializing SPIFFS
I (508) main: Partition size: total: 2824001, used: 2596344
I (508) main: Reading file
' (528) main: Read from file: 'esp32s2-kaluga-1
I (528) main: Initializing SNTP
I (548) wifi:wifi driver task: 3ffdafdc, prio:23, stack:3584, core=0
I (548) system_api: Base MAC address is not set
I (548) system_api: read default base MAC address from EFUSE
I (558) wifi:wifi firmware version: 517093f
I (558) wifi:wifi certification version: v7.0
I (558) wifi:config NVS flash: enabled
I (558) wifi:config nano formating: disabled
I (568) wifi:Init dynamic tx buffer num: 32
I (568) wifi:Init data frame dynamic rx buffer num: 32
I (578) wifi:Init management frame dynamic rx buffer num: 32
I (578) wifi:Init management short buffer num: 32
I (588) wifi:Init static rx buffer size: 1600
I (588) wifi:Init static rx buffer num: 10
I (588) wifi:Init dynamic rx buffer num: 32
I (598) main: start the WIFI SSID:[zhongjunboyan]
I (768) phy: phy_version: 303, c1e745d, Apr 11 2020, 14:22:04, 0, 2
I (768) wifi:enable tsf
I (768) wifi:mode : sta (7c:df:a1:00:79:5a)
I (768) main: Waiting for wifi
I (1498) wifi:new:<6,1>, old:<1,0>, ap:<255,255>, sta:<6,1>, prof:1
I (2188) wifi:state: init -> auth (b0)
I (2188) wifi:state: auth -> assoc (0)
I (2198) wifi:state: assoc -> run (10)
I (2218) wifi:connected with zhongjunboyan, aid = 3, channel 6, 40U, bssid = 60:83:34:85:a3:90
I (2218) wifi:security type: 3, phy: bgn, rssi: -19
I (2218) wifi:pm start, type: 1

I (2278) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (3188) esp_netif_handlers: sta ip: 192.168.86.185, mask: 255.255.255.0, gw: 192.168.86.1
I (3188) main: Initializing WS2812
I (3188) Touch pad: Initializing touch pad
I (3188) Touch pad: Denoise function init
I (3198) Touch pad: touch pad waterproof init
I (3198) Touch pad: touch pad filter init 1
I (3208) DRV8311: ES8311 in Slave mode

I (3218) DRV8311: ES8311 in I2S Format

I (3238) gpio: GPIO[0]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3238) gpio: GPIO[10]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (3248) DRV8311: SET: volume:127

I (3248) I2S: DMA Malloc info, datalen=blocksize=1024, dma_buf_count=6
I (3258) I2S: DMA Malloc info, datalen=blocksize=1024, dma_buf_count=6
I (3268) 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 (3278) AUDIO: start to decode /spiffs/To_meet_the_prime_time_44k.mp3
I (3308) Touch pad: test init: touch pad [6] base 16727, thresh 1672
I (3308) Touch pad: test init: touch pad [2] base 16341, thresh 1634
I (3308) Touch pad: test init: touch pad [11] base 17473, thresh 1747
I (3308) 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 (3328) Touch pad: test init: touch pad [5] base 16320, thresh 1632
I (3338) AUDIO: mp3file info---bitrate=128000,layer=3,nChans=2,samprate=44100,outputSamps=2304
I (3348) Touch pad: test init: touch pad [1] base 17123, thresh 1712
I (3348) Touch pad: test init: touch pad [3] base 16560, thresh 1656
I (3358) Touch pad: test init: touch pad [4] base 34950, thresh 3495
I (3368) AUDIO: 0x3ffe088c

I (3368) DRV8311: SET: volume:127

I (9168) Touch pad: TouchSensor [1] be actived, status mask 0x2
I (9368) AUDIO: vol_up
I (9368) DRV8311: SET: volume:140

I (9368) AUDIO: R:255. G:0. B:0
I (9568) AUDIO: vol_up
I (9568) DRV8311: SET: volume:153

I (9568) AUDIO: R:255. G:0. B:0
I (9768) AUDIO: vol_up
I (9768) DRV8311: SET: volume:165

I (9768) AUDIO: R:255. G:0. B:0
I (9968) AUDIO: vol_up
I (9968) DRV8311: SET: volume:178

I (9968) AUDIO: R:255. G:0. B:0
I (10168) AUDIO: vol_up
I (10168) DRV8311: SET: volume:191

I (10168) AUDIO: R:255. G:0. B:0
I (10368) AUDIO: vol_up
I (10368) DRV8311: SET: volume:204

I (10368) AUDIO: R:255. G:0. B:0
I (10568) AUDIO: vol_up
I (10568) DRV8311: SET: volume:216

I (10578) AUDIO: R:255. G:0. B:0
I (10778) AUDIO: vol_up
I (10778) DRV8311: SET: volume:229

I (10778) AUDIO: R:255. G:0. B:0
I (10978) AUDIO: vol_up
I (10978) DRV8311: SET: volume:242

I (10978) AUDIO: R:255. G:0. B:0
I (11178) AUDIO: vol_up
I (11178) DRV8311: SET: volume:255

I (11178) AUDIO: R:255. G:0. B:0
I (11378) AUDIO: vol_up
I (11378) DRV8311: SET: volume:255

I (11378) AUDIO: R:255. G:0. B:0
I (11578) AUDIO: vol_up
I (11578) DRV8311: SET: volume:255

I (11578) AUDIO: R:255. G:0. B:0
I (11778) AUDIO: vol_up
I (11778) DRV8311: SET: volume:255

I (11778) AUDIO: R:255. G:0. B:0
I (11978) AUDIO: vol_up
I (11978) DRV8311: SET: volume:255

I (11988) AUDIO: R:255. G:0. B:0
I (11988) Touch pad: TouchSensor [1] be inactived, status mask 0x0
I (63378) AUDIO: end mp3 decode ..
I (64378) AUDIO: start to decode /spiffs/To_meet_the_prime_time_44k.mp3
I (64388) 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 (64398) AUDIO: mp3file info---bitrate=128000,layer=3,nChans=2,samprate=44100,outputSamps=2304
I (124428) AUDIO: end mp3 decode ..
I (125428) AUDIO: start to decode /spiffs/To_meet_the_prime_time_44k.mp3
I (125438) 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 (125448) AUDIO: mp3file info---bitrate=128000,layer=3,nChans=2,samprate=44100,outputSamps=2304

拨码开关: IMG_20200919_105143

跳线短接: ![Uploading IMG_20200919_105124.jpg…]()

焊接一个喇叭: ![Uploading IMG_20200919_105111.jpg…]()

板子通电的瞬间,喇叭可以听到瞬间的电流声。通过触摸操作有反馈,音量已调至最大。但是不论如何播放,始终无声音出现。(喇叭在别的地方测试是正常的)。使用耳机或3.5音频公对公线接到AUX设备上输入,也无任何声音输出

Lzw655 commented 1 year ago

很抱歉没有及时回答你的问题! 由于这个问题已经失去时效性了,我将在一周后关闭它。如果你还需要解决这个问题,请留言或新开一个 issue,谢谢!