完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
esp32-c3-wroom-02模组
运行官方pipeline_play_mp3_with_dac_or_pdm例程,配置对应芯片开发板,配置pwm左右通道引脚分别为GPIO0、GPIO3,此外无任何更改,结果烧录后运行异常:看门狗超时。 运行log如下: [Codebox]ESP-ROM:esp32c3-api1-20210207 Build:Feb 7 2021 rst:0x1 (POWERON),boot:0xd (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:1 load:0x3fcd5810,len:0x16bc load:0x403cc710,len:0x930 load:0x403ce710,len:0x2d28 SHA-256 comparison failed: Calculated: 62f3b81659a66cce95713413127eab3f0f599feb9c44555c28705762b8655f57 Expected: adef8716c33cabbc299cb10cfe7234c94c96ecd6e85f10e05a6f5d6f60bdc295 Attempting to boot anyway... entry 0x403cc710 I (48) boot: ESP-IDF v4.4.3-dirty 2nd stage bootloader I (49) boot: compile time 11:06:11 I (49) boot: chip revision: 3 I (51) boot.esp32c3: SPI Speed : 80MHz I (56) boot.esp32c3: SPI Mode : DIO I (60) boot.esp32c3: SPI Flash Size : 4MB I (65) boot: Enabling RNG early entropy source... I (70) boot: Partition Table: I (74) boot: ## Label Usage Type ST Offset Length I (81) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (89) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (96) boot: 2 factory factory app 00 00 00010000 00100000 I (104) boot: End of partition table I (108) esp_image: segment 0: paddr=00010020 vaddr=3c030020 size=1f6c0h (128704) map I (137) esp_image: segment 1: paddr=0002f6e8 vaddr=3fc8b800 size=00930h ( 2352) load I (137) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=2360ch (144908) map I (165) esp_image: segment 3: paddr=00053634 vaddr=3fc8c130 size=00ad4h ( 2772) load I (166) esp_image: segment 4: paddr=00054110 vaddr=40380000 size=0b7e4h ( 47076) load I (179) esp_image: segment 5: paddr=0005f8fc vaddr=50000010 size=00010h ( 16) load I (183) boot: Loaded app from partition at offset 0x10000 I (185) boot: Disabling RNG early entropy source... I (202) cpu_start: Pro cpu up. I (211) cpu_start: Pro cpu start user code I (211) cpu_start: cpu freq: 160000000 I (211) cpu_start: Application information: I (214) cpu_start: Project name: play_mp3_pwm_or_dac I (220) cpu_start: App version: 1 I (224) cpu_start: Compile time: Jun 20 2023 11:16:33 I (230) cpu_start: ELF file SHA256: 09b49e4cdeb57ac4... I (236) cpu_start: ESP-IDF: v4.4.3-dirty I (242) heap_init: Initializing. RAM available for dynamic allocation: I (249) heap_init: At 3FC8DC00 len 0004EB10 (314 KiB): DRAM I (255) heap_init: At 3FCDC710 len 00002950 (10 KiB): STACK/DRAM I (262) heap_init: At 50000020 len 00001FE0 (7 KiB): RTCRAM I (268) spi_flash: detected chip: generic I (273) spi_flash: flash io: dio I (277) sleep: Configure to isolate all GPIO pins in sleep state I (283) sleep: Enable automatic switching of GPIO sleep configuration I (290) cpu_start: Starting scheduler. I (295) MP3_PWM_DAC_EXAMPLE: [ 1 ] Periph init I (295) MP3_PWM_DAC_EXAMPLE: [ 2 ] Create audio pipeline for playback I (305) MP3_PWM_DAC_EXAMPLE: [2.1] Create output stream to write data to codec chip I (315) MP3_PWM_DAC_EXAMPLE: [2.2] Create wav decoder to decode wav file I (315) MP3_PWM_DAC_EXAMPLE: [2.3] Register all elements to audio pipeline I (325) MP3_PWM_DAC_EXAMPLE: [2.4] Link it together [mp3_music_read_cb]-->mp3_decoder-->output_stream-->[pa_chip] I (335) MP3_PWM_DAC_EXAMPLE: [ 3 ] Set up event listener I (345) MP3_PWM_DAC_EXAMPLE: [3.1] Listening event from all elements of pipeline I (355) MP3_PWM_DAC_EXAMPLE: [3.2] Listening event from peripherals I (355) MP3_PWM_DAC_EXAMPLE: [ 4 ] Start audio_pipeline I (365) MP3_PWM_DAC_EXAMPLE: [ 5 ] Listen for all pipeline events I (375) MP3_PWM_DAC_EXAMPLE: [ * ] Receive music info from mp3 decoder, sample_rates=44100, bits=16, ch=2 E (5295) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: E (5295) task_wdt: - IDLE (CPU 0) E (5295) task_wdt: Tasks currently running: E (5295) task_wdt: CPU 0: output E (10295) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: E (10295) task_wdt: - IDLE (CPU 0) E (10295) task_wdt: Tasks currently running: E (10295) task_wdt: CPU 0: output[/Codebox] 请大佬帮忙看下为什么esp32-c3不能运行这个例程? |
|
相关推荐
1个回答
|
|
以下是一些建议来解决这个问题:
1. **检查固件烧录**:首先,请确保您烧录的固件是正确的版本,适用于ESP32-C3。您可以尝试重新烧录固件,以排除烧录过程中可能出现的错误。 2. **检查SPI Flash**:看门狗超时可能与SPI Flash有关。请检查SPI Flash是否正常工作,以及其与ESP32-C3的连接是否稳定。 3. **检查GPIO配置**:确保GPIO0和GPIO3的配置正确,没有其他干扰。您可以尝试使用其他GPIO引脚,看看问题是否仍然存在。 4. **检查电源**:确保ESP32-C3的电源稳定,电压在正常范围内。不稳定的电源可能会影响看门狗定时器的正常工作。 5. **检查看门狗配置**:检查看门狗定时器的配置,确保其设置正确。您可以在代码中调整看门狗定时器的超时时间,以查看是否能够解决问题。 6. **检查代码逻辑**:仔细检查pipeline_play_mp3_with_dac_or_pdm例程的代码,确保没有死循环或其他可能导致看门狗超时的逻辑错误。 7. **查看错误日志**:您提供的日志显示SHA-256比较失败,这可能意味着烧录的固件文件损坏或不完整。请尝试重新下载固件文件并重新烧录。 |
|
|
|
只有小组成员才能发言,加入小组>>
1149 浏览 1 评论
582浏览 6评论
480浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
465浏览 5评论
466浏览 4评论
441浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 03:10 , Processed in 1.006902 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号