请教下烧录algorithm示例到小智面包板上,提示ringbuffer错误是什么问题

zychohoho
Posts: 1
Joined: Thu Aug 28, 2025 8:17 am

请教下烧录algorithm示例到小智面包板上,提示ringbuffer错误是什么问题

Postby zychohoho » Thu Aug 28, 2025 8:24 am

采用自定义音频板子,引脚定义已更改,RECORD_HARDWARE_AEC设置为false,麻烦大佬分析报错原因 :?:

运行日志如下:
I (26) boot: ESP-IDF v5.4.1-dirty 2nd stage bootloader
I (27) boot: compile time Aug 28 2025 10:07:00
I (27) boot: Multicore bootloader
I (27) boot: chip revision: v0.2
I (30) boot: efuse block revision: v1.3
I (34) qio_mode: Enabling QIO for flash chip WinBond
I (38) boot.esp32s3: Boot SPI Speed : 80MHz
I (42) boot.esp32s3: SPI Mode : QIO
I (46) boot.esp32s3: SPI Flash Size : 16MB
I (50) boot: Enabling RNG early entropy source...
I (54) boot: Partition Table:
I (57) boot: ## Label Usage Type ST Offset Length
I (63) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (70) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (76) boot: 2 factory factory app 00 00 00010000 00200000
I (83) boot: 3 model Unknown data 01 82 00210000 0050c000
I (89) boot: End of partition table
I (93) esp_image: segment 0: paddr=00010020 vaddr=3c0a0020 size=fc304h (1032964) map
I (253) esp_image: segment 1: paddr=0010c32c vaddr=3fc98d00 size=03cech ( 15596) load
I (257) esp_image: segment 2: paddr=00110020 vaddr=42000020 size=9d130h (643376) map
I (353) esp_image: segment 3: paddr=001ad158 vaddr=3fc9c9ec size=0245ch ( 9308) load
I (355) esp_image: segment 4: paddr=001af5bc vaddr=40374000 size=14c8ch ( 85132) load
I (373) esp_image: segment 5: paddr=001c4250 vaddr=600fe100 size=0001ch ( 28) load
I (382) boot: Loaded app from partition at offset 0x10000
I (382) boot: Disabling RNG early entropy source...
I (392) octal_psram: vendor id : 0x0d (AP)
I (392) octal_psram: dev id : 0x02 (generation 3)
I (392) octal_psram: density : 0x03 (64 Mbit)
I (394) octal_psram: good-die : 0x01 (Pass)
I (398) octal_psram: Latency : 0x01 (Fixed)
I (403) octal_psram: VCC : 0x01 (3V)
I (407) octal_psram: SRF : 0x01 (Fast Refresh)
I (412) octal_psram: BurstType : 0x01 (Hybrid Wrap)
I (416) octal_psram: BurstLen : 0x01 (32 Byte)
I (421) octal_psram: Readlatency : 0x02 (10 cycles@Fixed)
I (426) octal_psram: DriveStrength: 0x00 (1/1)
I (431) MSPI Timing: PSRAM timing tuning index: 4
I (435) esp_psram: Found 8MB PSRAM device
I (439) esp_psram: Speed: 80MHz
I (441) cpu_start: Multicore app
I (870) esp_psram: SPI SRAM memory test OK
I (879) cpu_start: Pro cpu start user code
I (879) cpu_start: cpu freq: 240000000 Hz
I (879) app_init: Application information:
I (879) app_init: Project name: algorithm_examples
I (884) app_init: App version: 1
I (887) app_init: Compile time: Aug 28 2025 10:04:53
I (893) app_init: ELF file SHA256: 26eb12218...
I (897) app_init: ESP-IDF: v5.4.1-dirty
I (901) efuse_init: Min chip rev: v0.0
I (905) efuse_init: Max chip rev: v0.99
I (909) efuse_init: Chip rev: v0.2
I (913) heap_init: Initializing. RAM available for dynamic allocation:
I (919) heap_init: At 3FCA0080 len 00049690 (293 KiB): RAM
I (924) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (929) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (935) heap_init: At 600FE11C len 00001ECC (7 KiB): RTCRAM
I (940) esp_psram: Adding pool of 8192K of PSRAM memory to heap allocator
I (947) spi_flash: detected chip: winbond
I (950) spi_flash: flash io: qio
W (953) ADC: legacy driver is deprecated, please migrate to `esp_adc/adc_oneshot.h`
I (961) sleep_gpio: Configure to isolate all GPIO pins in sleep state
I (967) sleep_gpio: Enable automatic switching of GPIO sleep configuration
I (974) main_task: Started on CPU0
I (977) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (985) main_task: Calling app_main()
I (988) ALGORITHM_EXAMPLES: [1.0] Mount sdcard
I (993) SDCARD: Using 1-line SD mode, base path=/sdcard
I (998) gpio: GPIO[12]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1006) gpio: GPIO[11]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1014) gpio: GPIO[13]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1023) AUDIO_THREAD: The esp_periph task allocate stack on internal memory
I (1074) SDCARD: CID name SD32G!

I (1529) ALGORITHM_EXAMPLES: [2.0] Start codec chip
==================================>i2s1I (1529) gpio: GPIO[46]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
==================================>i2s0I (1536) ALGORITHM_EXAMPLES: [3.0] Create audio pipeline_rec for recording
I (1544) ALGORITHM_EXAMPLES: [3.1] Create algorithm stream for aec
I (1550) MODEL_LOADER: The storage free size is 22912 KB
I (1555) MODEL_LOADER: The partition size is 5168 KB
I (1560) MODEL_LOADER: Successfully load srmodels
I (1564) ALGORITHM_STREAM: Load: fst
I (1567) ALGORITHM_STREAM: Load: mn6_cn
I (1571) ALGORITHM_STREAM: Load: nsnet2
I (1574) ALGORITHM_STREAM: Load: wn9_hilexin
I (1578) ALGORITHM_EXAMPLES: [3.2] Create wav encoder to encode wav format
I (1585) ALGORITHM_EXAMPLES: [3.3] Create fatfs stream to write data to sdcard
I (1592) ALGORITHM_EXAMPLES: [3.4] Register all elements to audio pipeline_rec
I (1599) ALGORITHM_EXAMPLES: [3.5] Link it together [codec_chip]-->algorithm-->wav_encoder-->fatfs_stream-->[sdcard]
I (1609) AUDIO_PIPELINE: link el->rb, el:0x3c1a8a38, tag:algo, rb:0x3c1a9630
I (1616) AUDIO_PIPELINE: link el->rb, el:0x3c1a9370, tag:wav_encoder, rb:0x3c1a96f8
I (1623) ALGORITHM_EXAMPLES: [3.6] Set up uri (file as fatfs_stream, wav as wav encoder)
I (1631) ALGORITHM_EXAMPLES: [4.0] Create audio pipeline_play for playing
I (1638) ALGORITHM_EXAMPLES: [4.2] Create mp3 decoder to decode mp3 file
I (1644) MP3_DECODER: MP3 init
I (1648) ALGORITHM_EXAMPLES: [4.4] Register all elements to audio pipeline_play
I (1655) ALGORITHM_EXAMPLES: [4.5] Link it together [flash]-->mp3_decoder-->filter-->[codec_chip]
I (1664) AUDIO_PIPELINE: link el->rb, el:0x3c1ab7d8, tag:mp3_decoder, rb:0x3c1aba98
I (1671) ALGORITHM_EXAMPLES: [5.0] Set up event listener
I (1676) ALGORITHM_EXAMPLES: [5.1] Listening event from all elements of pipeline
I (1683) ALGORITHM_EXAMPLES: [5.2] Listening event from peripherals
I (1689) ALGORITHM_EXAMPLES: [6.0] Start audio_pipeline
I (1694) AUDIO_THREAD: The mp3_decoder task allocate stack on external memory
I (1701) AUDIO_ELEMENT: [mp3_decoder-0x3c1ab7d8] Element task created
I (1707) AUDIO_THREAD: The filter_w task allocate stack on external memory
I (1714) AUDIO_ELEMENT: [filter_w-0x3c1ab93c] Element task created
I (1719) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:359, MEM Total:8620636 Bytes, Inter:324335 Bytes, Dram:324335 Bytes, Dram largest free:229376Bytes

I (1733) AUDIO_ELEMENT: [mp3_decoder] AEL_MSG_CMD_RESUME,state:1
I (1739) MP3_DECODER: MP3 opened
I (1743) CODEC_ELEMENT_HELPER: The element is 0x3c1ab7d8. The reserve data 2 is 0x0.
I (1755) AUDIO_ELEMENT: [filter_w] AEL_MSG_CMD_RESUME,state:1
I (1757) RSP_FILTER: sample rate of source data : 16000, channel of source data : 1, sample rate of destination data : 16000, channel of destination data : 1
I (1772) AUDIO_PIPELINE: Pipeline started
I (1774) AUDIO_THREAD: The algo task allocate stack on external memory
I (1781) AUDIO_ELEMENT: [algo-0x3c1a8a38] Element task created
I (1786) AUDIO_THREAD: The wav_encoder task allocate stack on external memory
I (1793) AUDIO_ELEMENT: [wav_encoder-0x3c1a9370] Element task created
I (1799) AUDIO_THREAD: The fatfs_stream task allocate stack on internal memory
I (1806) AUDIO_ELEMENT: [fatfs_stream-0x3c1a94ac] Element task created
I (1812) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:359, MEM Total:8555532 Bytes, Inter:319191 Bytes, Dram:319191 Bytes, Dram largest free:225280Bytes

I (1826) AUDIO_ELEMENT: [algo] AEL_MSG_CMD_RESUME,state:1
I (1831) AFE_CONFIG: Set Noise Suppression Model: nsnet2
I (1836) AFE_CONFIG: Set WakeNet Model: wn9_hilexin
W (1841) AFE_CONFIG: For single microphone channel, SE is deactivated.
I (1922) AFE: AFE Version: (1MIC_V250121)
I (1922) AFE: Input PCM Config: total 2 channels(1 microphone, 1 playback), sample rate:16000
I (1923) AFE: AFE Pipeline: [input] -> |AEC(VOIP_LOW_COST)| -> |NS(nsnet2)| -> [output]
I (1931) AUDIO_THREAD: The algo_fetch task allocate stack on external memory
E (1938) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (1970) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (1994) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2017) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2040) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2063) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2087) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
I (2087) AUDIO_ELEMENT: [wav_encoder] AEL_MSG_CMD_RESUME,state:1
E (2113) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
I (2117) AUDIO_ELEMENT: [fatfs_stream] AEL_MSG_CMD_RESUME,state:1
I (2119) AUDIO_PIPELINE: Pipeline started
I (2123) ALGORITHM_EXAMPLES: [7.0] Listen for all pipeline events
I (2129) ALGORITHM_EXAMPLES: [ * ] Receive music info from mp3 decoder, sample_rates=16000, bits=16, ch=1
E (2158) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2188) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2218) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2248) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2278) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2308) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2338) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2368) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2413) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2443) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2473) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2503) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2533) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305
E (2563) AUDIO_ELEMENT: The index of ringbuffer is gather than and equal to ringbuffer maximum (0). line 1305

Who is online

Users browsing this forum: No registered users and 4 guests