background: i use ESP32-C3-Lyra develop board in `pipeline_tts_stream` project, build and download success.
issue: i noticed that, when it translate the fifth character, system will break, here's the error message:
Code: Select all
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x16c4
load:0x403cc710,len:0xe00
load:0x403ce710,len:0x304c
entry 0x403cc71a
I (35) boot: ESP-IDF v5.4-dirty 2nd stage bootloader
I (35) boot: compile time Sep 8 2025 10:04:17
I (35) boot: chip revision: v0.3
I (35) boot: efuse block revision: v1.2
I (39) qio_mode: Enabling default flash chip QIO
I (43) boot.esp32c3: SPI Speed : 80MHz
I (47) boot.esp32c3: SPI Mode : QIO
I (51) boot.esp32c3: SPI Flash Size : 8MB
I (55) boot: Enabling RNG early entropy source...
I (59) boot: Partition Table:
I (62) boot: ## Label Usage Type ST Offset Length
I (68) boot: 0 factory factory app 00 00 00010000 000e0000
I (75) boot: 1 voice_data Unknown data 01 81 00100000 00300000
I (81) boot: End of partition table
I (84) esp_image: segment 0: paddr=00010020 vaddr=3c040020 size=16e5ch ( 93788) map
I (105) esp_image: segment 1: paddr=00026e84 vaddr=3fc8dc00 size=02f6ch ( 12140) load
I (107) esp_image: segment 2: paddr=00029df8 vaddr=40380000 size=06220h ( 25120) load
I (113) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=34844h (215108) map
I (147) esp_image: segment 4: paddr=0006486c vaddr=40386220 size=078b0h ( 30896) load
I (152) esp_image: segment 5: paddr=0006c124 vaddr=50000200 size=0001ch ( 28) load
I (156) boot: Loaded app from partition at offset 0x10000
I (157) boot: Disabling RNG early entropy source...
I (172) cpu_start: Unicore app
I (180) cpu_start: Pro cpu start user code
I (180) cpu_start: cpu freq: 160000000 Hz
I (180) app_init: Application information:
I (180) app_init: Project name: play_tts_example
I (185) app_init: App version: v2.7-145-g7690d2e5-dirty
I (190) app_init: Compile time: Sep 8 2025 10:03:51
I (195) app_init: ELF file SHA256: 528528258...
I (199) app_init: ESP-IDF: v5.4-dirty
I (204) efuse_init: Min chip rev: v0.3
I (207) efuse_init: Max chip rev: v1.99
I (211) efuse_init: Chip rev: v0.3
I (215) heap_init: Initializing. RAM available for dynamic allocation:
I (222) heap_init: At 3FC91CA0 len 0002E360 (184 KiB): RAM
I (227) heap_init: At 3FCC0000 len 0001C710 (113 KiB): Retention RAM
I (233) heap_init: At 3FCDC710 len 00002950 (10 KiB): Retention RAM
I (239) heap_init: At 5000021C len 00001DCC (7 KiB): RTCRAM
I (245) spi_flash: detected chip: gd
I (247) spi_flash: flash io: qio
W (251) rmt(legacy): legacy driver is deprecated, please migrate to `driver/rmt_tx.h` and/or `driver/rmt_rx.h`
I (260) sleep_gpio: Configure to isolate all GPIO pins in sleep state
I (266) sleep_gpio: Enable automatic switching of GPIO sleep configuration
I (273) main_task: Started on CPU0
I (294) main_task: Calling app_main()
I (294) PLAY_TTS_EXAMPLE: [1.0] Init Peripheral Set
I (294) PLAY_TTS_EXAMPLE: [2.0] Start codec chip
E (295) AUDIO_HAL: audio_hal handle is null
I (299) PLAY_TTS_EXAMPLE: [3.0] Create audio pipeline for playback
I (305) PLAY_TTS_EXAMPLE: [3.1] Create tts stream to read data from chinese strings
init voice set:template
ESP Chinese TTS v1.7 (Feb 2 2023 14:39:04, 1)
I (319) PLAY_TTS_EXAMPLE: [3.2] Create i2s stream to write data to codec chip
I (326) PLAY_TTS_EXAMPLE: [3.4] Register all elements to audio pipeline
I (332) PLAY_TTS_EXAMPLE: [3.5] Link it together [strings]-->tts_stream-->i2s_stream-->[codec_chip]
I (341) PLAY_TTS_EXAMPLE: [3.6] Set up uri (tts as tts_stream, and directly output is i2s)
I (349) PLAY_TTS_EXAMPLE: [4.0] Set up event listener
I (353) PLAY_TTS_EXAMPLE: [4.1] Listening event from all elements of pipeline
I (360) PLAY_TTS_EXAMPLE: [4.2] Listening event from peripherals
I (366) PLAY_TTS_EXAMPLE: [5.0] Start audio_pipeline
W (371) TTS_STREAM: 欢迎使用
I (619) PLAY_TTS_EXAMPLE: [6.0] Listen for all pipeline events
W (777) TTS_STREAM: No more data,ret:0
I (2620) PLAY_TTS_EXAMPLE: [ * ] Start a new tts stream play
W (2620) TTS_STREAM: 乐鑫语音
Guru Meditation Error: Core 0 panic'ed (Cache error).
MMU entry fault
Core 0 register dump:
MEPC : 0x4200f0b4 RA : 0x4200f392 SP : 0x3fc9c650 GP : 0x3fc8e400
--- 0x4200f0b4: esp_tts_amrwb_decode at /home/sunxiangyu/aishare/master/esp_tts/build/../components/speech_synthesis/esp_tts_chinese/esp_tts.c:263
--- 0x4200f392: esp_tts_stream_amr at /home/sunxiangyu/aishare/master/esp_tts/build/../components/speech_synthesis/esp_tts_chinese/esp_tts.c:430
TP : 0x3fc9c740 T0 : 0x0008000c T1 : 0x00080004 T2 : 0x000c000c
S0/FP : 0x3fc95670 S1 : 0x3fc9c6ac A0 : 0x3fc9b83c A1 : 0x3c398166
A2 : 0x3fc956c8 A3 : 0x3fc9ff74 A4 : 0x3c04edbc A5 : 0x3c04edbc
A6 : 0x00000004 A7 : 0x00040004 S2 : 0x00000835 S3 : 0x3fc9562c
S4 : 0x000020d4 S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x00080008 T4 : 0x00080008 T5 : 0x00080008 T6 : 0x00080008
MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000019 MTVAL : 0x00004380
--- 0x40380001: _vector_table at E:/ESPIDFV5/ADF/esp-adf/esp-idf/components/riscv/vectors_intc.S:54
MHARTID : 0x00000000
Stack memory:
3fc9c650: 0x3f333333 0x00000000 0x3fc95670 0x4200f392 0x00000000 0x00000000 0x3f333333 0x3fc9562c
--- 0x4200f392: esp_tts_stream_amr at /home/sunxiangyu/aishare/master/esp_tts/build/../components/speech_synthesis/esp_tts_chinese/esp_tts.c:430
3fc9c670: 0x3fc9c6ac 0x3c0464a0 0x3fc95670 0x4200f602 0x000003c0 0x3fc97a18 0x00000000 0x00000000
--- 0x4200f602: esp_tts_stream_play at /home/sunxiangyu/aishare/master/esp_tts/build/../components/speech_synthesis/esp_tts_chinese/esp_tts.c:550
3fc9c690: 0x00000000 0x3fc9c930 0x3fc97a18 0x42009fb2 0x00000000 0x00000000 0x00000000 0x00000140
--- 0x42009fb2: _tts_stream_read at E:/ESPIDFV5/ADF/esp-adf/components/audio_stream/tts_stream.c:80
3fc9c6b0: 0x00000000 0x3fc9c930 0x3fc97a18 0x4200ab66 0x00000000 0x3fc9c930 0x3fc97a18 0x4200a01a
--- 0x4200ab66: audio_element_input at E:/ESPIDFV5/ADF/esp-adf/components/audio_pipeline/audio_element.c:385
--- 0x4200a01a: _tts_stream_process at E:/ESPIDFV5/ADF/esp-adf/components/audio_stream/tts_stream.c:94
3fc9c6d0: 0x00000000 0x00000000 0x3fc97a18 0x4200b2be 0x00000000 0x00000000 0x3fc97a18 0x4200b4a0
--- 0x4200b2be: audio_element_process_running at E:/ESPIDFV5/ADF/esp-adf/components/audio_pipeline/audio_element.c:340
--- 0x4200b4a0: audio_element_task at E:/ESPIDFV5/ADF/esp-adf/components/audio_pipeline/audio_element.c:476
3fc9c6f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x40386028
--- 0x40386028: vPortTaskWrapper at E:/ESPIDFV5/ADF/esp-adf/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:258
3fc9c710: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9c730: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xbaad5678 0xfefefefe
3fc9c750: 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe
3fc9c770: 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe
3fc9c790: 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe 0xfefefefe
3fc9c7b0: 0xfefefefe 0xfefefefe 0x3fc9bb34 0x00000160 0xabba1234 0x00000154 0x3fc93a88 0x3fc9c4e0
3fc9c7d0: 0x00000000 0x3fc90d88 0x3fc90d88 0x3fc9c7cc 0x3fc90d80 0x00000015 0x3fc9b774 0x3fc9b774
3fc9c7f0: 0x3fc9c7cc 0x00000000 0x00000004 0x3fc9bb48 0x00737474 0x00000000 0x00000000 0x00000000
3fc9c810: 0x3fc9c740 0x00000004 0x00000000 0x00000000 0x00000000 0x00000000 0x3fc923a0 0x3fc92408
3fc9c830: 0x3fc92470 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x42005786
--- 0x42005786: esp_cleanup_r at E:/ESPIDFV5/ADF/esp-adf/esp-idf/components/newlib/newlib_init.c:43
3fc9c850: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9c870: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9c890: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9c8b0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9c8d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9c8f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9c910: 0x00000000 0x00000000 0x00000000 0xbaad5678 0x00001100 0xabba1234 0x00001004 0x3fc9c7cc
3fc9c930: 0xe2eae96c 0xdf1fe17e 0xd68ed9aa 0xcf80d3fc 0xcfc4cd1e 0xcf3ed10c 0xcc98cdc0 0xd4dccfd2
3fc9c950: 0xd72ad629 0xdf18da46 0xe93be424 0xf27ceeea 0xfffef5e9 0x12ce0d0f 0x1810143a 0x241a1ce0
3fc9c970: 0x2e182bbd 0x31f42fcc 0x2c8f2eee 0x36cc3206 0x30e734b9 0x26af2b44 0x24ee2690 0x1cfb2152
3fc9c990: 0x0a9b1461 0x025c056d 0xf9f5fe4d 0xe9bcf2d8 0xe1e8e448 0xde00dfa4 0xd650db98 0xd014d144
3fc9c9b0: 0xd490d254 0xd124d360 0xd3b0d108 0xd8a0d6e8 0xe0a0dc20 0xe844e4a0 0xf064eb98 0x02f8f740
3fc9c9d0: 0x0e280ca4 0x16901110 0x23f41c40 0x2b70295c 0x2da42de4 0x2b382970 0x33b43234 0x2bec3148
3fc9c9f0: 0x26482654 0x24482654 0x1a68210c 0x09c810e8 0x0434076c 0xf9ecffd8 0xe92cf008 0xe438e6d4
3fc9ca10: 0xde90e15c 0xd504da90 0xd1e4d1b0 0xd530d3cc 0xcfd4d2a0 0xd478d100 0xd9d8d80c 0xe1b0dcac
3fc9ca30: 0xe8c4e598 0xf210ec8c 0x0530faf8 0x0d700b04 0x169411b8 0x242c1d04 0x2adc2790 0x284c2bdc
ELF file SHA256: 528528258
Rebooting...
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0xc (RTC_SW_CPU_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380838
--- 0x40380838: esp_restart_noos at E:/ESPIDFV5/ADF/esp-adf/esp-idf/components/esp_system/port/soc/esp32c3/system_internal.c:112