模组:ESP32 A1S
开发环境:linux(Ubuntu20.04)
IDE:VS
esp-idf: release/v4.3 233dc30fb1a376d7ca0c5d74bdd410ca368f6bf7
esp-adf:master ec0ea830cc5fbb702a6745e4e3991ff38595ff0f
esp-sr:tags/v0.7.0 c5896943ea278195968c93c8b3466c720e641ebc
esp-skainet:master 71e6c6b2257de08ad97a3d80748a78fd6a3e3208
问题描述
触发语音环唤醒后,进入命令状态,这时语言命令无法识别,等待约5s后会出现看门狗异常
使用示例中的get_start和cn_speech_commands_recognition均是如此
W (2441) MN: MultiNet may cause WatchDog on ESP32 sometimes!
------------detect start------------
wakeword detected
-----------LISTENING-----------
E (10251) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (10251) task_wdt: - IDLE (CPU 1)
E (10251) task_wdt: Tasks currently running:
E (10251) task_wdt: CPU 0: IDLE
E (10251) task_wdt: CPU 1: detect
E (10251) task_wdt: Print CPU 0 (current core) backtrace
ESP32A1S离线语音识别必现看门狗异常
-
- Posts: 47
- Joined: Mon Dec 10, 2018 10:55 am
Re: ESP32A1S离线语音识别必现看门狗异常
Hi
请问 sdkconfig 是否正确,例如 psram 模式和频率的配置如何?
请问 sdkconfig 是否正确,例如 psram 模式和频率的配置如何?
-
- Posts: 9
- Joined: Sat Nov 27, 2021 2:12 pm
Re: ESP32A1S离线语音识别必现看门狗异常
ram相关配置如下
#
# SPI RAM config
#
CONFIG_SPIRAM_TYPE_AUTO=y
# CONFIG_SPIRAM_TYPE_ESPPSRAM16 is not set
# CONFIG_SPIRAM_TYPE_ESPPSRAM32 is not set
# CONFIG_SPIRAM_TYPE_ESPPSRAM64 is not set
CONFIG_SPIRAM_SIZE=-1
CONFIG_SPIRAM_SPEED_40M=y
CONFIG_SPIRAM=y
CONFIG_SPIRAM_BOOT_INIT=y
# CONFIG_SPIRAM_IGNORE_NOTFOUND is not set
# CONFIG_SPIRAM_USE_MEMMAP is not set
# CONFIG_SPIRAM_USE_CAPS_ALLOC is not set
CONFIG_SPIRAM_USE_MALLOC=y
CONFIG_SPIRAM_MEMTEST=y
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384
# CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP is not set
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768
# CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY is not set
CONFIG_SPIRAM_CACHE_WORKAROUND=y
#
# SPIRAM cache workaround debugging
#
CONFIG_SPIRAM_CACHE_WORKAROUND_STRATEGY_MEMW=y
# CONFIG_SPIRAM_CACHE_WORKAROUND_STRATEGY_DUPLDST is not set
# CONFIG_SPIRAM_CACHE_WORKAROUND_STRATEGY_NOPS is not set
# end of SPIRAM cache workaround debugging
CONFIG_SPIRAM_BANKSWITCH_ENABLE=y
CONFIG_SPIRAM_BANKSWITCH_RESERVE=8
# CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY is not set
#
# PSRAM clock and cs IO for ESP32-DOWD
#
CONFIG_D0WD_PSRAM_CLK_IO=17
CONFIG_D0WD_PSRAM_CS_IO=16
# end of PSRAM clock and cs IO for ESP32-DOWD
#
# PSRAM clock and cs IO for ESP32-D2WD
#
CONFIG_D2WD_PSRAM_CLK_IO=9
CONFIG_D2WD_PSRAM_CS_IO=10
# end of PSRAM clock and cs IO for ESP32-D2WD
#
# PSRAM clock and cs IO for ESP32-PICO
#
CONFIG_PICO_PSRAM_CS_IO=10
# end of PSRAM clock and cs IO for ESP32-PICO
# CONFIG_SPIRAM_2T_MODE is not set
# end of SPI RAM config
#
# SPI RAM config
#
CONFIG_SPIRAM_TYPE_AUTO=y
# CONFIG_SPIRAM_TYPE_ESPPSRAM16 is not set
# CONFIG_SPIRAM_TYPE_ESPPSRAM32 is not set
# CONFIG_SPIRAM_TYPE_ESPPSRAM64 is not set
CONFIG_SPIRAM_SIZE=-1
CONFIG_SPIRAM_SPEED_40M=y
CONFIG_SPIRAM=y
CONFIG_SPIRAM_BOOT_INIT=y
# CONFIG_SPIRAM_IGNORE_NOTFOUND is not set
# CONFIG_SPIRAM_USE_MEMMAP is not set
# CONFIG_SPIRAM_USE_CAPS_ALLOC is not set
CONFIG_SPIRAM_USE_MALLOC=y
CONFIG_SPIRAM_MEMTEST=y
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384
# CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP is not set
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768
# CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY is not set
CONFIG_SPIRAM_CACHE_WORKAROUND=y
#
# SPIRAM cache workaround debugging
#
CONFIG_SPIRAM_CACHE_WORKAROUND_STRATEGY_MEMW=y
# CONFIG_SPIRAM_CACHE_WORKAROUND_STRATEGY_DUPLDST is not set
# CONFIG_SPIRAM_CACHE_WORKAROUND_STRATEGY_NOPS is not set
# end of SPIRAM cache workaround debugging
CONFIG_SPIRAM_BANKSWITCH_ENABLE=y
CONFIG_SPIRAM_BANKSWITCH_RESERVE=8
# CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY is not set
#
# PSRAM clock and cs IO for ESP32-DOWD
#
CONFIG_D0WD_PSRAM_CLK_IO=17
CONFIG_D0WD_PSRAM_CS_IO=16
# end of PSRAM clock and cs IO for ESP32-DOWD
#
# PSRAM clock and cs IO for ESP32-D2WD
#
CONFIG_D2WD_PSRAM_CLK_IO=9
CONFIG_D2WD_PSRAM_CS_IO=10
# end of PSRAM clock and cs IO for ESP32-D2WD
#
# PSRAM clock and cs IO for ESP32-PICO
#
CONFIG_PICO_PSRAM_CS_IO=10
# end of PSRAM clock and cs IO for ESP32-PICO
# CONFIG_SPIRAM_2T_MODE is not set
# end of SPI RAM config
-
- Posts: 47
- Joined: Mon Dec 10, 2018 10:55 am
Re: ESP32A1S离线语音识别必现看门狗异常
Hi,
CONFIG_SPIRAM_SPEED_40M=y --> 需要使用80M
建议使用 esp-skainet下的 sdkconfig_esp32.defaults
同时建议您硬件升级到 ESP32-S3 ,会有更好的性能体验。
CONFIG_SPIRAM_SPEED_40M=y --> 需要使用80M
建议使用 esp-skainet下的 sdkconfig_esp32.defaults
同时建议您硬件升级到 ESP32-S3 ,会有更好的性能体验。
-
- Posts: 9
- Joined: Sat Nov 27, 2021 2:12 pm
Re: ESP32A1S离线语音识别必现看门狗异常
时钟修改为80M后问题依旧,是否需要修改分区表,当前的分区配置如下
#
# Partition Table
#
# CONFIG_PARTITION_TABLE_SINGLE_APP is not set
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_OFFSET=0x8000
CONFIG_PARTITION_TABLE_MD5=y
# end of Partition Table
全部配置可见附件
# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size
factory, app, factory, 0x010000, 3096k
#
# Partition Table
#
# CONFIG_PARTITION_TABLE_SINGLE_APP is not set
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_OFFSET=0x8000
CONFIG_PARTITION_TABLE_MD5=y
# end of Partition Table
全部配置可见附件
# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size
factory, app, factory, 0x010000, 3096k
- Attachments
-
- sdkconfig.txt
- (43.22 KiB) Downloaded 1649 times
-
- Posts: 47
- Joined: Mon Dec 10, 2018 10:55 am
-
- Posts: 9
- Joined: Sat Nov 27, 2021 2:12 pm
Re: ESP32A1S离线语音识别必现看门狗异常
我配置的分区仅size不同,因为这受限于实际flash的大小,我想只要能够存放固件,就不应该有问题。我考虑的问题是在开启psram后分区的偏移位置是否会发生改变,需要作出相应修改
-
- Posts: 9
- Joined: Sat Nov 27, 2021 2:12 pm
Re: ESP32A1S离线语音识别必现看门狗异常
问题已解决,经过排查,超时打印堆栈并非系统看门狗复位,仅仅是等待语音命令超时
Who is online
Users browsing this forum: No registered users and 9 guests