-
Notifications
You must be signed in to change notification settings - Fork 180
Description
Checklist
- Checked the issue tracker for similar issues to ensure this is not a duplicate.
- Provided a clear description of your suggestion.
- Included any relevant context or examples.
Issue or Suggestion Description
我使用的模组为ESP32-WROVER-E N16R8,环境为ESP-IDF V5.5.0,我尝试使用例程(cn_speech_commands_recognition)并做了修改想要直接获取模型名称但是失败了修改代码如下:
void app_main() {
models = esp_srmodel_init("model");
afe_config_t *afe_config =
afe_config_init(esp_get_input_format(), models, AFE_TYPE_SR, AFE_MODE_LOW_COST);
afe_handle = esp_afe_handle_from_config(afe_config);
esp_afe_sr_data_t *afe_data = afe_handle->create_from_config(afe_config);
afe_config_free(afe_config);
int afe_chunksize = afe_handle->get_fetch_chunksize(afe_data);
char *mn_name = esp_srmodel_filter(models, ESP_MN_PREFIX, NULL);
printf("multinet:%s\n", mn_name);
}
之后我去ESP-SR组件下似乎没有找到mn_cn2模型,build目录下也只有wn9s_hiesp目录,srmodels.bin也只有大约123KB(在sdkconfig中不勾选唤醒词的话srmodels.bin只有1KB)我怀疑是ESP-SR的mn模型是不是不支持ESP32?导致此模型并未烧入(但是sdkconfig上又有此选项所以很疑惑)
粘贴日志如下:
I (27) boot: ESP-IDF v5.5-dev-3644-g28ac0243bb 2nd stage bootloader
I (27) boot: compile time Oct 9 2025 08:35:53
I (27) boot: Multicore bootloader
I (30) boot: chip revision: v3.1
I (33) qio_mode: Enabling default flash chip QIO
I (37) boot.esp32: SPI Speed : 80MHz
I (41) boot.esp32: SPI Mode : QIO
I (45) boot.esp32: SPI Flash Size : 16MB
I (48) boot: Enabling RNG early entropy source...
I (53) boot: Partition Table:
I (55) boot: ## Label Usage Type ST Offset Length
I (62) boot: 0 factory factory app 00 00 00010000 005dc000
I (68) boot: 1 model Unknown data 01 82 005ec000 001f4000
I (75) boot: End of partition table
I (78) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=127d8h ( 75736) map
I (105) esp_image: segment 1: paddr=00022800 vaddr=3ff80000 size=00020h ( 32) load
I (105) esp_image: segment 2: paddr=00022828 vaddr=3ffb0000 size=03af8h ( 15096) load
I (113) esp_image: segment 3: paddr=00026328 vaddr=40080000 size=09cf0h ( 40176) load
I (129) esp_image: segment 4: paddr=00030020 vaddr=400d0020 size=37098h (225432) map
I (186) esp_image: segment 5: paddr=000670c0 vaddr=40089cf0 size=073e8h ( 29672) load
I (204) boot: Loaded app from partition at offset 0x10000
I (204) boot: Disabling RNG early entropy source...
I (214) quad_psram: This chip is ESP32-D0WD
I (215) esp_psram: Found 8MB PSRAM device
I (215) esp_psram: Speed: 80MHz
I (215) esp_psram: PSRAM initialized, cache is in low/high (2-core) mode.
W (222) esp_psram: Virtual address not enough for PSRAM, map as much as we can. 4MB is mapped
I (230) cpu_start: Multicore app
I (747) esp_psram: SPI SRAM memory test OK
I (755) cpu_start: Pro cpu start user code
I (755) cpu_start: cpu freq: 240000000 Hz
I (755) app_init: Application information:
I (755) app_init: Project name: speech_commands_recognition
I (761) app_init: App version: 1
I (764) app_init: Compile time: Oct 9 2025 08:59:22
I (769) app_init: ELF file SHA256: 88a0a9c5b...
I (773) app_init: ESP-IDF: v5.5-dev-3644-g28ac0243bb
I (779) efuse_init: Min chip rev: v0.0
I (783) efuse_init: Max chip rev: v3.99
I (787) efuse_init: Chip rev: v3.1
I (791) heap_init: Initializing. RAM available for dynamic allocation:
I (797) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (802) heap_init: At 3FFB4490 len 0002BB70 (174 KiB): DRAM
I (807) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (812) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (818) heap_init: At 400910D8 len 0000EF28 (59 KiB): IRAM
I (823) esp_psram: Adding pool of 4096K of PSRAM memory to heap allocator
I (830) spi_flash: detected chip: gd
I (833) spi_flash: flash io: qio
W (836) i2c: This driver is an old driver, please migrate your application code to adapt driver/i2c_master.h
I (846) main_task: Started on CPU0
I (856) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (856) main_task: Calling app_main()
I (856) MODEL_LOADER: The storage free size is 3968 KB
I (856) MODEL_LOADER: The partition size is 2000 KB
I (866) MODEL_LOADER: Successfully load srmodels
I (866) AFE_CONFIG: Set WakeNet Model: wn9s_hiesp
Quantized wakenet9s: wakenet9_tts2h12_Hi,ESP_3_0.630_0.635, tigger:v4, mode:0, p:0, (Aug 11 2025 15:20:26)
I (956) AFE: AFE Version: (1MIC_V250121)
I (956) AFE: Input PCM Config: total 4 channels(1 microphone, 1 playback), sample rate:16000
I (966) AFE: AFE Pipeline: [input] -> |AEC(SR_LOW_COST)| -> |VAD(WebRTC)| -> |WakeNet(wn9s_hiesp,)| -> [output]
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x40087809 PS : 0x00060530 A0 : 0x800fdbb5 A1 : 0x3ffb53e0
--- 0x40087809: strlen at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/machine/xtensa/strlen.S:8
4
A2 : 0x00000000 A3 : 0xfffffffc A4 : 0x000000ff A5 : 0x0000ff00
A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb53a0
A10 : 0x3ffb53c0 A11 : 0x00060123 A12 : 0x00060120 A13 : 0x3ffb5620
A14 : 0x3ffb5600 A15 : 0x0000000c SAR : 0x0000001b EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x40087809 LEND : 0x40087819 LCOUNT : 0xffffffff
--- 0x40087809: strlen at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/machine/xtensa/strlen.S:8
4
--- 0x40087819: strlen at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/machine/xtensa/strlen.S:9
6
Backtrace: 0x40087806:0x3ffb53e0 0x400fdbb2:0x3ffb53f0 0x400f7447:0x3ffb5710 0x400da971:0x3ffb5760 0x40106938:0x3ffb5780
0x40089bd9:0x3ffb57b0
--- 0x40087806: strlen at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/machine/xtensa/strlen.S:8
2
--- 0x400fdbb2: _vfprintf_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/vfprintf.c:152
1
--- 0x400f7447: printf at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/printf.c:56
--- 0x400da971: app_main at C:/Users/Administrator/Desktop/esp-skainet-master/examples/cn_speech_commands_recognition/mai
n/main.c:131
--- 0x40106938: main_task at C:/ESP32-IDF/v5.5/esp-idf/components/freertos/app_startup.c:208
--- 0x40089bd9: vPortTaskWrapper at C:/ESP32-IDF/v5.5/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:
139
ELF file SHA256: 88a0a9c5b
Rebooting...