Skip to content

esp32c6运行ir_learn_new崩溃 (AEGHB-1158) #552

@bengihhh

Description

@bengihhh

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

I (26) boot: ESP-IDF v5.4.1-849-g28980b62c9 2nd stage bootloader
I (27) boot: compile time Jul 29 2025 23:15:02
I (28) boot: chip revision: v0.0
I (29) boot: efuse block revision: v0.0
I (32) boot.esp32c6: SPI Speed : 80MHz
I (36) boot.esp32c6: SPI Mode : DIO
I (39) boot.esp32c6: SPI Flash Size : 8MB
I (43) boot: Enabling RNG early entropy source...
I (48) boot: Partition Table:
I (50) boot: ## Label Usage Type ST Offset Length
I (56) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (63) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (70) boot: 2 factory factory app 00 00 00010000 00100000
I (76) boot: 3 storage Unknown data 01 83 00110000 00100000
I (83) boot: End of partition table
I (86) esp_image: segment 0: paddr=00010020 vaddr=420c0020 size=22a3ch (141884) map
I (147) esp_image: segment 1: paddr=00032a64 vaddr=40800000 size=0d5b4h ( 54708) load
I (171) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=b453ch (738620) map
--- 0x4001975a: software_reset_cpu in ROM

I (450) esp_image: segment 3: paddr=000f4564 vaddr=4080d5b4 size=06cf0h ( 27888) load
I (463) esp_image: segment 4: paddr=000fb25c vaddr=408142b0 size=02584h ( 9604) load
I (477) boot: Loaded app from partition at offset 0x10000
I (478) boot: Disabling RNG early entropy source...
I (488) cpu_start: Unicore app
I (497) cpu_start: Pro cpu start user code
I (497) cpu_start: cpu freq: 160000000 Hz
I (498) app_init: Application information:
I (498) app_init: Project name: hyper_ir
I (501) app_init: App version: 69e6bf5c-dirty
I (506) app_init: Compile time: Jul 31 2025 23:53:17
I (511) app_init: ELF file SHA256: 8c1b189ce...
I (515) app_init: ESP-IDF: v5.4.1-849-g28980b62c9
I (520) efuse_init: Min chip rev: v0.0
I (524) efuse_init: Max chip rev: v0.99
I (528) efuse_init: Chip rev: v0.0
I (532) heap_init: Initializing. RAM available for dynamic allocation:
I (538) heap_init: At 4081AC50 len 000619C0 (390 KiB): RAM
I (543) heap_init: At 4087C610 len 00002F54 (11 KiB): RAM
I (549) heap_init: At 50000000 len 00003FE8 (15 KiB): RTCRAM
I (555) spi_flash: detected chip: generic
I (558) spi_flash: flash io: dio
I (561) sleep_gpio: Configure to isolate all GPIO pins in sleep state
I (567) sleep_gpio: Enable automatic switching of GPIO sleep configuration
I (574) coexist: coex firmware version: 7b9a184
I (604) coexist: coexist rom version 5b8dcfa
I (605) main_task: Started on CPU0
I (605) main_task: Calling app_main()
Hello world!
I (605) storage_helper: storage_helper_init
I (1325) storage_helper: Partition size: total: 1048576, used: 663552
I (1325) BLE_INIT: Using main XTAL as clock source, chip ver: 0
I (1325) BLE_INIT: ble controller commit:[1304a9d]
I (1335) BLE_INIT: Bluetooth MAC: 60:55:f9:f7:21:22
I (1335) phy_init: phy_version 331,5b89037,Mar 3 2025,16:01:12
I (1385) phy: libbtbb version: ec2ecba, Mar 3 2025, 16:01:27
I (1405) ble task: GATT server register, status 0, app_id 0, gatts_if 3
I (1405) ble task: Service create, status 0, service_handle 40
I (1405) ble task: Advertising start successfully
I (1405) ble task: Service start, status 0, service_handle 40
I (1415) ble task: Characteristic add, status 0, attr_handle 42, service_handle 40
I (1425) ble task: the gatts demo char length = 3
I (1425) ble task: prf_char[0] =11
I (1425) ble task: prf_char[1] =22
I (1435) ble task: prf_char[2] =33
I (1435) ble task: Descriptor add, status 0, attr_handle 43, service_handle 40
I (1445) ble task: GATT server register, status 0, app_id 1, gatts_if 4
I (1445) ble task: Service create, status 0, service_handle 44
I (1455) ble task: Service start, status 0, service_handle 44
I (1455) ble task: Characteristic add, status 0, attr_handle 46, service_handle 44
I (1465) ble task: Descriptor add, status 0, attr_handle 47, service_handle 44
I (1475) gpio: GPIO[9]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1485) button: IoT Button Version: 4.1.3
I (1485) ir learn: IR learn Version: 1.0.0
E (1485) rmt: rmt_new_rx_channel(203): DMA not supported
E (1495) ir learn: ../managed_components/espressif__ir_learn/ir_learn.c:524 (ir_learn_new):create rmt rx channel failed

assert failed: xQueueTakeMutexRecursive queue.c:821 (pxMutex)
--- Stack dump detected
Core 0 register dump:
MEPC : 0x408009f2 RA : 0x4080df14 SP : 0x4081d9b0 GP : 0x40814ab4
--- 0x408009f2: panic_abort at /root/esp/esp-idf/components/esp_system/panic.c:483
--- 0x4080df14: __ubsan_include at /root/esp/esp-idf/components/esp_system/ubsan.c:311

TP : 0x4081dc20 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x0000008a S1 : 0x00000001 A0 : 0x4081d9ec A1 : 0x40815931
A2 : 0x00000001 A3 : 0x00000029 A4 : 0x00000001 A5 : 0x40817000
A6 : 0x0000000c A7 : 0x76757473 S2 : 0x00000009 S3 : 0x4081dafd
S4 : 0x40815930 S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000002 MTVAL : 0x00000000
--- 0x40800001: _vector_table at /root/esp/esp-idf/components/riscv/vectors_intc.S:54

MHARTID : 0x00000000

--- Backtrace:

panic_abort (details=details@entry=0x4081d9ec "assert failed: xQueueTakeMutexRecursive queue.c:821 (pxMutex)") at /root/esp/esp-idf/components/esp_system/panic.c:483
483 asm("unimp"); // should be an invalid operation on RISC-V targets
#0 panic_abort (details=details@entry=0x4081d9ec "assert failed: xQueueTakeMutexRecursive queue.c:821 (pxMutex)") at /root/esp/esp-idf/components/esp_system/panic.c:483
#1 0x4080df14 in esp_system_abort (details=details@entry=0x4081d9ec "assert failed: xQueueTakeMutexRecursive queue.c:821 (pxMutex)") at /root/esp/esp-idf/components/esp_system/port/esp_system_chip.c:87
#2 0x408131bc in __assert_func (file=file@entry=0x420c1dc2 "", line=line@entry=821, func=, func@entry=0x420d8b7c <func.17> "", expr=expr@entry=0x420c1fac "") at /root/esp/esp-idf/components/newlib/assert.c:80
#3 0x4080ecd4 in xQueueTakeMutexRecursive (xMutex=0x0, xTicksToWait=4294967295) at /root/esp/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:821
#4 0x4200e162 in ir_learn_list_lock (ctx=ctx@entry=0x4082d470, timeout_ms=timeout_ms@entry=0) at ../managed_components/espressif__ir_learn/ir_learn.c:66
#5 0x4200e2b8 in ir_learn_remove_all_symbol (ctx=ctx@entry=0x4082d470) at ../managed_components/espressif__ir_learn/ir_learn.c:109
#6 0x4200e2e4 in ir_learn_destroy (ctx=ctx@entry=0x4082d470) at ../managed_components/espressif__ir_learn/ir_learn.c:119
#7 0x4200ed8c in ir_learn_new (cfg=cfg@entry=0x4081db80, handle_out=handle_out@entry=0x40817894 ) at ../managed_components/espressif__ir_learn/ir_learn.c:567
#8 0x4200e110 in ir_task_init () at ../task/ir_task/ir_task.c:294
#9 0x4200cb9a in app_main () at ../main/app_main.c:78
#10 0x420b3f24 in main_task (args=) at /root/esp/esp-idf/components/freertos/app_startup.c:208
#11 0x4080eee0 in vPortTaskWrapper (pxCode=, pvParameters=) at /root/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:255

ELF file SHA256: 8c1b189ce

Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x16b8
--- 0x4001975a: software_reset_cpu in ROM

load:0x4086c110,len:0xe90
load:0x4086e610,len:0x3064
entry 0x4086c11a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions