rst:0x1 (POWERON_RESET),boot:0x1e (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:7432
load:0x40078000,len:16576
load:0x40080400,len:4
0x40080400: _init at ??:?
ho 8 tail 4 room 4
load:0x40080404,len:4284
entry 0x40080668
I (31) boot: ESP-IDF v5.1.1-dirty 2nd stage bootloader
I (31) boot: compile time Sep 1 2023 22:44:29
I (31) boot: Multicore bootloader
I (35) boot: chip revision: v1.0
I (39) qio_mode: Enabling default flash chip QIO
I (45) boot.esp32: SPI Speed : 80MHz
I (49) boot.esp32: SPI Mode : QIO
I (54) boot.esp32: SPI Flash Size : 4MB
I (58) boot: Enabling RNG early entropy source...
I (64) boot: Partition Table:
I (67) boot: ## Label Usage Type ST Offset Length
I (75) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (82) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (89) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (97) boot: 3 ota_0 OTA app 00 10 00010000 00300000
I (104) boot: 4 flash_tone Unknown data 01 27 00310000 00032000
I (112) boot: End of partition table
I (116) boot: No factory image, trying OTA 0
I (121) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=1979c8h (1669576) map
I (588) esp_image: segment 1: paddr=001a79f0 vaddr=3ffb0000 size=02934h ( 10548) load
I (592) esp_image: segment 2: paddr=001aa32c vaddr=40080000 size=05cech ( 23788) load
I (602) esp_image: segment 3: paddr=001b0020 vaddr=400d0020 size=7a3d0h (500688) map
I (740) esp_image: segment 4: paddr=0022a3f8 vaddr=40085cec size=0e71ch ( 59164) load
I (770) boot: Loaded app from partition at offset 0x10000
I (811) boot: Set actual ota_seq=1 in otadata[0]
I (811) boot: Disabling RNG early entropy source...
I (821) cpu_start: Multicore app
I (821) quad_psram: This chip is ESP32-D0WD
I (822) esp_psram: Found 8MB PSRAM device
I (824) esp_psram: Speed: 80MHz
I (827) esp_psram: PSRAM initialized, cache is in low/high (2-core) mode.
W (835) esp_psram: Virtual address not enough for PSRAM, map as much as we can. 4MB is mapped
I (844) cpu_start: Pro cpu up.
I (848) cpu_start: Starting app cpu, entry point is 0x40081744
0x40081744: call_start_cpu1 at /home/zeen/esp/esp-idf/components/esp_system/port/cpu_start.c:154
I (0) cpu_start: App cpu up.
I (1318) esp_psram: SPI SRAM memory test OK
I (1326) cpu_start: Pro cpu start user code
I (1326) cpu_start: cpu freq: 240000000 Hz
I (1326) cpu_start: Application information:
I (1330) cpu_start: Project name: example_wwe
I (1335) cpu_start: App version: 1
I (1340) cpu_start: Compile time: Sep 1 2023 22:44:28
I (1346) cpu_start: ELF file SHA256: d9f4e3d546f7986c...
I (1352) cpu_start: ESP-IDF: v5.1.1-dirty
I (1357) cpu_start: Min chip rev: v0.0
I (1362) cpu_start: Max chip rev: v3.99
I (1367) cpu_start: Chip rev: v1.0
I (1372) heap_init: Initializing. RAM available for dynamic allocation:
I (1379) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1385) heap_init: At 3FFB4970 len 0002B690 (173 KiB): DRAM
I (1392) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (1398) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1404) heap_init: At 40094408 len 0000BBF8 (46 KiB): IRAM
I (1411) esp_psram: Adding pool of 4096K of PSRAM memory to heap allocator
I (1419) spi_flash: detected chip: generic
I (1423) spi_flash: flash io: qio
W (1427) i2s(legacy): legacy i2s driver is deprecated, please migrate to use driver/i2s_std.h, driver/i2s_pdm.h or driver/i2s_tdm.h
W (1440) ADC: legacy driver is deprecated, please migrate to `esp_adc/adc_oneshot.h`
I (1448) app_start: Starting scheduler on CPU0
I (1453) app_start: Starting scheduler on CPU1
I (1453) main_task: Started on CPU0
I (1463) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (1463) main_task: Calling app_main()
W (2473) SPI: MCS ret:0,Status:1
I (2473) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (2473) gpio: GPIO[21]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
W (2483) AUDIO_BOARD: The board has already been initialized!
----------------------------- ESP Audio Platform -----------------------------
| |
| ESP_AUDIO-v1.7.3-7e1b14a-d08db1d |
| Compile date: Jul 31 2023-03:44:40 |
------------------------------------------------------------------------------
I (2523) wwe_example: Func:setup_player, Line:142, MEM Total:4430352 Bytes, Inter:320975 Bytes, Dram:273683 Bytes
I (2533) wwe_example: esp_audio instance is:0x3f801b88
E (2543) i2s(legacy): i2s_check_cfg_validity(926): this i2s port is in use
E (2543) i2s(legacy): i2s_driver_install(1582): I2S configuration is invalid
I (2663) wwe_example: Recorder has been created
I (2663) AFE_SR: afe interface for speech recognition
I (2663) AFE_SR: AFE version: SR_V220727
I (2673) AFE_SR: Initial auido front-end, total channel: 2, mic num: 1, ref num: 1
I (2683) AFE_SR: aec_init: 0, se_init: 1, vad_init: 1
I (2683) AFE_SR: wakenet_init: 1
Deprecated Quantized wakenet5: wakeNet5_v1_hilexin_5_0.95_0.90, mode:0 (Aug 17 2022 20:20:31)
Please switch to ESP32-S3 and wakenet9 !
I (2803) AFE_SR: wake num: 1, mode: 1, (Nov 1 2022 17:16:15)
E (2803) RECORDER_SR: recorder_sr.c:550 (recorder_sr_create): Got NULL Pointer
I (2813) AFE_SR: exit function: afe_destory
I (2813) main_task: Returned from app_main()
Environment
Problem Description
运行例程后,提示I2S端口已经被占用
Expected Behavior
正常运行示例程序,不报错
Actual Behavior
示例程序报错,程序不能正常运行
Steps to Reproduce
idf.py menuconfig
idf.py build
idf.py -p /dev/ttyUSB0 flash monitor
(更改38063函数后,程序烧录时一种重启,此时已经更换为初始的函数代码)Debug Logs
Other Items If Possible
#
Build type
# CONFIG_APP_BUILD_TYPE_APP_2NDBOOT=y
CONFIG_APP_BUILD_TYPE_RAM is not set
CONFIG_APP_BUILD_GENERATE_BINARIES=y CONFIG_APP_BUILD_BOOTLOADER=y CONFIG_APP_BUILD_USE_FLASH_SECTIONS=y
CONFIG_APP_REPRODUCIBLE_BUILD is not set
CONFIG_APP_NO_BLOBS is not set
CONFIG_APP_COMPATIBLE_PRE_V2_1_BOOTLOADERS is not set
CONFIG_APP_COMPATIBLE_PRE_V3_1_BOOTLOADERS is not set
end of Build type
#
Bootloader config
# CONFIG_BOOTLOADER_OFFSET_IN_FLASH=0x1000 CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_DEBUG is not set
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_PERF is not set
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_NONE is not set
CONFIG_BOOTLOADER_LOG_LEVEL_NONE is not set
CONFIG_BOOTLOADER_LOG_LEVEL_ERROR is not set
CONFIG_BOOTLOADER_LOG_LEVEL_WARN is not set
CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y
CONFIG_BOOTLOADER_LOG_LEVEL_DEBUG is not set
CONFIG_BOOTLOADER_LOG_LEVEL_VERBOSE is not set
CONFIG_BOOTLOADER_LOG_LEVEL=3
CONFIG_BOOTLOADER_SPI_CUSTOM_WP_PIN is not set
CONFIG_BOOTLOADER_SPI_WP_PIN=7 CONFIG_BOOTLOADER_VDDSDIO_BOOST_1_9V=y
CONFIG_BOOTLOADER_FACTORY_RESET is not set
CONFIG_BOOTLOADER_APP_TEST is not set
CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE=y CONFIG_BOOTLOADER_WDT_ENABLE=y
CONFIG_BOOTLOADER_WDT_DISABLE_IN_USER_CODE is not set
CONFIG_BOOTLOADER_WDT_TIME_MS=9000
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE is not set
CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP is not set
CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON is not set
CONFIG_BOOTLOADER_SKIP_VALIDATE_ALWAYS is not set
CONFIG_BOOTLOADER_RESERVE_RTC_SIZE=0
CONFIG_BOOTLOADER_CUSTOM_RESERVE_RTC is not set
CONFIG_BOOTLOADER_FLASH_XMC_SUPPORT=y
end of Bootloader config
#
Security features
# CONFIG_SECURE_BOOT_V1_SUPPORTED=y
CONFIG_SECURE_SIGNED_APPS_NO_SECURE_BOOT is not set
CONFIG_SECURE_BOOT is not set
CONFIG_SECURE_FLASH_ENC_ENABLED is not set
end of Security features
#
Application manager
# CONFIG_APP_COMPILE_TIME_DATE=y
CONFIG_APP_EXCLUDE_PROJECT_VER_VAR is not set
CONFIG_APP_EXCLUDE_PROJECT_NAME_VAR is not set
CONFIG_APP_PROJECT_VER_FROM_CONFIG is not set
CONFIG_APP_RETRIEVE_LEN_ELF_SHA=16
end of Application manager
CONFIG_ESP_ROM_HAS_CRC_LE=y CONFIG_ESP_ROM_HAS_CRC_BE=y CONFIG_ESP_ROM_HAS_MZ_CRC32=y CONFIG_ESP_ROM_HAS_JPEG_DECODE=y CONFIG_ESP_ROM_HAS_UART_BUF_SWITCH=y CONFIG_ESP_ROM_NEEDS_SWSETUP_WORKAROUND=y CONFIG_ESP_ROM_HAS_NEWLIB_NANO_FORMAT=y
#
Serial flasher config
#
CONFIG_ESPTOOLPY_NO_STUB is not set
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHMODE_QOUT is not set
CONFIG_ESPTOOLPY_FLASHMODE_DIO is not set
CONFIG_ESPTOOLPY_FLASHMODE_DOUT is not set
CONFIG_ESPTOOLPY_FLASH_SAMPLE_MODE_STR=y CONFIG_ESPTOOLPY_FLASHMODE="dio" CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
CONFIG_ESPTOOLPY_FLASHFREQ_40M is not set
CONFIG_ESPTOOLPY_FLASHFREQ_26M is not set
CONFIG_ESPTOOLPY_FLASHFREQ_20M is not set
CONFIG_ESPTOOLPY_FLASHFREQ="80m"
CONFIG_ESPTOOLPY_FLASHSIZE_1MB is not set
CONFIG_ESPTOOLPY_FLASHSIZE_2MB is not set
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_ESPTOOLPY_FLASHSIZE_8MB is not set
CONFIG_ESPTOOLPY_FLASHSIZE_16MB is not set
CONFIG_ESPTOOLPY_FLASHSIZE_32MB is not set
CONFIG_ESPTOOLPY_FLASHSIZE_64MB is not set
CONFIG_ESPTOOLPY_FLASHSIZE_128MB is not set
CONFIG_ESPTOOLPY_FLASHSIZE="4MB"
CONFIG_ESPTOOLPY_HEADER_FLASHSIZE_UPDATE is not set
CONFIG_ESPTOOLPY_BEFORE_RESET=y
CONFIG_ESPTOOLPY_BEFORE_NORESET is not set
CONFIG_ESPTOOLPY_BEFORE="default_reset" CONFIG_ESPTOOLPY_AFTER_RESET=y
CONFIG_ESPTOOLPY_AFTER_NORESET is not set
CONFIG_ESPTOOLPY_AFTER="hard_reset" CONFIG_ESPTOOLPY_MONITOR_BAUD=115200
end of Serial flasher config
#
Partition Table
#
CONFIG_PARTITION_TABLE_SINGLE_APP is not set
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE is not set
CONFIG_PARTITION_TABLE_TWO_OTA is not set
CONFIG_PARTITION_TABLE_CUSTOM=y CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_esp32.csv" CONFIG_PARTITION_TABLE_FILENAME="partitions_esp32.csv" CONFIG_PARTITION_TABLE_OFFSET=0x8000 CONFIG_PARTITION_TABLE_MD5=y
end of Partition Table
#
Audio HAL
#
CONFIG_AUDIO_BOARD_CUSTOM is not set
CONFIG_ESP_LYRAT_V4_3_BOARD is not set
CONFIG_ESP_LYRAT_V4_2_BOARD is not set
CONFIG_ESP_LYRATD_MSC_V2_1_BOARD is not set
CONFIG_ESP_LYRATD_MSC_V2_2_BOARD=y
CONFIG_ESP_LYRAT_MINI_V1_1_BOARD is not set
CONFIG_ESP32_KORVO_DU1906_BOARD is not set
CONFIG_ESP32_S2_KALUGA_1_V1_2_BOARD is not set
CONFIG_ESP32_S3_KORVO2_V3_BOARD is not set
CONFIG_ESP32_S3_KORVO2L_V1_BOARD is not set
CONFIG_ESP32_S3_BOX_LITE_BOARD is not set
CONFIG_ESP32_S3_BOX_BOARD is not set
CONFIG_ESP32_C3_LYRA_V2_BOARD is not set
CONFIG_ESP32_C6_DEVKIT_BOARD is not set
end of Audio HAL
#
Audio Recorder
# CONFIG_AFE_MIC_NUM=1
end of Audio Recorder
#
ADF Library Configuration
# CONFIG_MEDIA_PROTOCOL_LIB_ENABLE=y
CONFIG_MEDIA_LIB_MEM_AUTO_TRACE is not set
CONFIG_REC_ENG_ENABLE_VAD_ONLY is not set
CONFIG_REC_ENG_ENABLE_VAD_WWE is not set
CONFIG_REC_ENG_ENABLE_VAD_WWE_AMR=y
end of ADF Library Configuration
#
ESP Speech Recognition
# CONFIG_USE_AFE=y CONFIG_AFE_INTERFACE_V1=y CONFIG_USE_WAKENET=y CONFIG_SR_WN_WN5_HILEXIN=y
CONFIG_SR_WN_WN5X3_HILEXIN is not set
CONFIG_SR_WN_WN5_NIHAOXIAOZHI is not set
CONFIG_SR_WN_WN5X3_NIHAOXIAOZHI is not set
CONFIG_SR_WN_WN5X3_NIHAOXIAOXIN is not set
CONFIG_USE_MULTINET=y CONFIG_SR_MN_CN_NONE=y
CONFIG_SR_MN_CN_MULTINET2_SINGLE_RECOGNITION is not set
CONFIG_SR_MN_EN_NONE=y
end of ESP Speech Recognition
#
ADF Features
# CONFIG_ESP_DISPATCHER_DELEGATE_TASK_CORE=0 CONFIG_ESP_DISPATCHER_DELEGATE_TASK_PRIO=10 CONFIG_ESP_DISPATCHER_DELEGATE_STACK_SIZE=4096
end of ADF Features
#
#
Component config
#
#
#
UART Configuration
#
CONFIG_UART_ISR_IN_IRAM is not set
end of UART Configuration
#
GPIO Configuration
#
CONFIG_GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL is not set
CONFIG_GPIO_CTRL_FUNC_IN_IRAM is not set
end of GPIO Configuration
#
I2S Configuration
#
CONFIG_I2S_ISR_IRAM_SAFE is not set
CONFIG_I2S_SUPPRESS_DEPRECATE_WARN is not set
CONFIG_I2S_ENABLE_DEBUG_LOG is not set
end of I2S Configuration
#
ESP PSRAM
# CONFIG_SPIRAM=y
#
SPI RAM config
# CONFIG_SPIRAM_MODE_QUAD=y 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_SPEED_40M is not set
CONFIG_SPIRAM_SPEED_80M=y CONFIG_SPIRAM_SPEED=80 CONFIG_SPIRAM_BOOT_INIT=y
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=4096
CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP is not set
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768 CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y
CONFIG_SPIRAM_ALLOW_NOINIT_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
#
SPIRAM workaround libraries placement
# CONFIG_SPIRAM_CACHE_LIBJMP_IN_IRAM=y CONFIG_SPIRAM_CACHE_LIBMATH_IN_IRAM=y CONFIG_SPIRAM_CACHE_LIBNUMPARSER_IN_IRAM=y CONFIG_SPIRAM_CACHE_LIBIO_IN_IRAM=y CONFIG_SPIRAM_CACHE_LIBTIME_IN_IRAM=y CONFIG_SPIRAM_CACHE_LIBCHAR_IN_IRAM=y CONFIG_SPIRAM_CACHE_LIBMEM_IN_IRAM=y CONFIG_SPIRAM_CACHE_LIBSTR_IN_IRAM=y CONFIG_SPIRAM_CACHE_LIBRAND_IN_IRAM=y CONFIG_SPIRAM_CACHE_LIBENV_IN_IRAM=y CONFIG_SPIRAM_CACHE_LIBFILE_IN_IRAM=y CONFIG_SPIRAM_CACHE_LIBMISC_IN_IRAM=y
end of SPIRAM workaround libraries placement
CONFIG_SPIRAM_BANKSWITCH_ENABLE=y CONFIG_SPIRAM_BANKSWITCH_RESERVE=8 CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y
CONFIG_SPIRAM_OCCUPY_HSPI_HOST is not set
CONFIG_SPIRAM_OCCUPY_VSPI_HOST=y
CONFIG_SPIRAM_OCCUPY_NO_HOST 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
end of ESP PSRAM
#
ESP Ringbuf
#
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH is not set
end of ESP Ringbuf
#
ESP System Settings
#
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_80 is not set
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160 is not set
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=240
#
Memory
#
CONFIG_ESP32_USE_FIXED_STATIC_RAM_SIZE is not set
#
Non-backward compatible options
#
CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM is not set
end of Non-backward compatible options
end of Memory
End of deprecated options