본문으로 바로가기

[esp-idf] 부팅중 assert error 발생시 core-dump 사용하기

category ESP32 2024. 7. 24. 10:12

core-dump 설정

  > idf.py menuconfig 

 

 

 

> Flash, UART 방법이 있는데 UART로 설정해 보았습니다.

 

▶ UART assert 발생부분  로그 첨부

00:00:05 INFO  mqtt_service.c:508: username:acon_tuyac0828c3dfbc6a170
00:00:05 DEBUG mqtt_service.c:509: password:e3159008f8846890
00:00:05 INFO  mqtt_service.c:510: topic_in:d/ai/tuyac0828c3dfbc6a170
00:00:05 INFO  mqtt_service.c:511: topic_out:
00:00:05 INFO  mqtt_service.c:512: tuya_mqtt_start...
00:00:05 DEBUG network_wrapper.c:102: Loading the CA root certificate...len(2813)
I (6130) mbedtls_pem: mbedtls_pem_read_buffer(2812) 4
I (6140) mbedtls_pem: mbedtls_pem_read_buffer(len = 2002),

assert failed: block_locate_free heap_tlsf.c:476 (block_size(block) >= size)
Core  0 register dump:
Stack dump detected
MEPC    : 0x408004ec  RA      : 0x408072c2  SP      : 0x40833870  GP      : 0x40816a80
0x408004ec: panic_abort at /home/xxx/esp/esp-idf/components/esp_system/panic.c:472
0x408072c2: __ubsan_include at /home/xxx/esp/esp-idf/components/esp_system/ubsan.c:313

TP      : 0x408046d8  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130
0x408046d8: wDev_ProcessFiq at ??:?

S0/FP   : 0x0000007b  S1      : 0x00000001  A0      : 0x408338ac  A1      : 0x40819ab5
A2      : 0x00000001  A3      : 0x00000029  A4      : 0x00000001  A5      : 0x40821000
A6      : 0x0000000c  A7      : 0x76757473  S2      : 0x00000009  S3      : 0x408339cc
S4      : 0x40819ab4  S5      : 0x420db001  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x420d37b4  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000007  MTVAL   : 0x00000000
0x40800001: _vector_table at ??:?

MHARTID : 0x00000000


Backtrace:


panic_abort (details=details@entry=0x408338ac "assert failed: 
  block_locate_free heap_tlsf.c:476 (block_size(block) >= size)") at /home/xxx/esp/esp-idf/components/esp_system/panic.c:472
472         *((volatile int *) 0) = 0; 
            // NOLINT(clang-analyzer-core.NullDereference) should be an invalid operation on targets
#0  panic_abort (details=details@entry=0x408338ac "assert failed: 
  block_locate_free heap_tlsf.c:476 (block_size(block) >= size)") at /home/xxx/esp/esp-idf/components/esp_system/panic.c:472
#1  0x408072c2 in esp_system_abort (details=details@entry=0x408338ac "assert failed: 
  block_locate_free heap_tlsf.c:476 (block_size(block) >= size)") at /home/xxx/esp/esp-idf/components/esp_system/port/esp_system_chip.c:93
#2  0x4080dfc6 in __assert_func (file=0x4004d150 "", line=<optimized out>, func=<optimized out>, expr=0x4004d344 "") 
   at /xxx/xxx/esp/esp-idf/components/newlib/assert.c:81
#3  0x40028392 in ?? ()
Backtrace stopped: frame did not save the PC
ELF file SHA256: 12a36b244


Initiating core dump!
I (2209) esp_core_dump_uart: Press Enter to print core dump to UART...
I (2216) esp_core_dump_uart: Print core dump to uart...
Core dump started (further output muted)
Received  10 kB...
Core dump finished!
===============================================================
==================== ESP32 CORE DUMP START ====================

Crashed task handle: 0x40833db4, name: 'tuya_link', GDB name: 'process 1082342836'
Crashed task is not in the interrupt context
Panic reason: assert failed: block_locate_free heap_tlsf.c:476 (block_size(block) >= size)

================== CURRENT THREAD REGISTERS ===================
ra             0x408072c2       0x408072c2 <__ubsan_include>
sp             0x40833870       0x40833870
gp             0x40816a80       0x40816a80 <coex_schm_ble_mesh_config_bt_a2dp_paused_wifi_conn+12>
tp             0x408046d8       0x408046d8 <wDev_ProcessFiq+172>
t0             0x37363534       926299444
t1             0x7271706f       1920036975
t2             0x33323130       858927408
fp             0x7b     0x7b
s1             0x1      1
a0             0x408338ac       1082341548
a1             0x40819ab5       1082235573
a2             0x1      1
a3             0x29     41
a4             0x1      1
a5             0x40821000       1082265600
a6             0xc      12
a7             0x76757473       1987409011
s2             0x9      9
s3             0x408339cc       1082341836
s4             0x40819ab4       1082235572
s5             0x420db001       1108193281
s6             0x0      0
s7             0x0      0
s8             0x420d37b4       1108162484
s9             0x0      0
s10            0x0      0
s11            0x0      0
t3             0x6e6d6c6b       1852664939
t4             0x6a696867       1785292903
t5             0x66656463       1717920867
t6             0x62613938       1650538808
pc             0x408004ec       0x408004ec <panic_abort+18>

==================== CURRENT THREAD STACK =====================
#0  panic_abort (details=details@entry=0x408338ac "assert failed: 
    block_locate_free heap_tlsf.c:476 (block_size(block) >= size)") at /home/xxx/esp/esp-idf/components/esp_system/panic.c:472
#1  0x408072c2 in esp_system_abort (details=details@entry=0x408338ac "assert failed: 
    block_locate_free heap_tlsf.c:476 (block_size(block) >= size)") at /home/xxx/esp/esp-idf/components/esp_system/port/esp_system_chip.c:93
#2  0x4080dfc6 in __assert_func (file=0x4004d150 "heap_tlsf.c", line=<optimized out>, func=<optimized out>, expr=0x4004d344 "block_size(block) >= size") 
    at /home/xxx/esp/esp-idf/components/newlib/assert.c:81
#3  0x40028392 in __assert_func ()
#4  0x400213e2 in tlsf_malloc ()
#5  0x40022542 in multi_heap_malloc_impl ()
#6  0x4080c4f8 in multi_heap_malloc (heap=0x40820e90, size=size@entry=2006) at /home/xxx/esp/esp-idf/components/heap/multi_heap_poisoning.c:254
#7  0x4080093e in heap_caps_malloc_base (size=size@entry=2002, caps=2052) at /home/xxx/esp/esp-idf/components/heap/heap_caps.c:179
#8  0x40800a8a in heap_caps_calloc_base (n=<optimized out>, size=size@entry=2002, caps=caps@entry=2052) 
    at /home/xxx/esp/esp-idf/components/heap/heap_caps.c:515
#9  0x40800d3a in heap_caps_calloc (n=<optimized out>, size=2002, caps=caps@entry=2052) 
    at /home/xxx/esp/esp-idf/components/heap/heap_caps.c:524
#10 0x4204a63a in esp_mbedtls_mem_calloc (n=<optimized out>, size=<optimized out>) 
    at /home/xxx/esp/esp-idf/components/mbedtls/port/esp_mem.c:17
#11 0x42046120 in mbedtls_calloc (nmemb=nmemb@entry=1, size=<optimized out>) 
    at /home/xxx/esp/esp-idf/components/mbedtls/mbedtls/library/platform.c:49
#12 0x420502f4 in mbedtls_pem_read_buffer (
    ctx=ctx@entry=0x40833ab4, 
    header=header@entry=0x420d3798 "-----BEGIN CERTIFICATE-----", 
    footer=footer@entry=0x420d37b4 "-----END CERTIFICATE-----", 
    data=data@entry=0x420dafe4 <default_tuya_cacert> "-----BEGIN CERTIFICATE-----\\r\
		MIIHzjCCBrYCCQCGzYVuHuOuMzANBgkqhkiG9w0BAQsFADCCAqYxCzAJBgNVBAYT\\r\
		AlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMREwDwYDVQQHDAhTYW4gSm9zZTEZMBcG\\r\
		A1UECgwQVHV5YSBHbG9iYWwgSW5jLjEVMBMGA1U"..., 
    pwd=pwd@entry=0x0, 
    pwdlen=pwdlen@entry=0, 
    use_len=use_len@entry=0x40833ab0) at /home/xxx/esp/esp-idf/components/mbedtls/mbedtls/library/pem.c:401
#13 0x4205563a in mbedtls_x509_crt_parse (chain=chain@entry=0x40834a38, 
    buf=0x420dafe4 <default_tuya_cacert> "-----BEGIN CERTIFICATE-----\\r\
		MIIHzjCCBrYCCQCGzYVuHuOuMzANBgkqhkiG9w0BAQsFADCCAqYxCzAJBgNVBAYT\\r\
		AlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMREwDwYDVQQHDAhTYW4gSm9zZTEZMBcG\\r\
		A1UECgwQVHV5YSBHbG9iYWwgSW5jLjEVMBMGA1U"..., buflen=2813) at /home/xxx/esp/esp-idf/components/mbedtls/mbedtls/library/x509_crt.c:1443
#14 0x4201d11e in network_tls_connect (pNetwork=0x4083407c, params=<optimized out>) 
    at /home/xxx/Project/tuya/tuya_iot_link_sdk_for_esp32/components/tuya-iot-link-sdk/port/network_wrapper.c:104
#15 0x420114aa in mqtt_client_connect (client=0x40833f18) 
    at /home/xxx/Project/tuya/tuya_iot_link_sdk_for_esp32/components/tuya-iot-link-sdk/tuya-iot-link-sdk-embedded-c/middleware/mqtt_client_wrapper.c:164
#16 0x42013754 in tuya_mqtt_start (context=context@entry=0x40833bb4) 
    at /home/xxx/Project/tuya/tuya_iot_link_sdk_for_esp32/components/tuya-iot-link-sdk/tuya-iot-link-sdk-embedded-c/src/mqtt_service.c:517
#17 0x42013ebe in mqtt_bind_token_get (config=0x4081b860 <client>, binding=0x408322a0) 
    at /home/xxx/Project/tuya/tuya_iot_link_sdk_for_esp32/components/tuya-iot-link-sdk/tuya-iot-link-sdk-embedded-c/src/mqtt_bind.c:107
#18 0x4200fa22 in tuya_iot_yield (client=client@entry=0x4081b860 <client>) 
    at /home/xxx/Project/tuya/tuya_iot_link_sdk_for_esp32/components/tuya-iot-link-sdk/tuya-iot-link-sdk-embedded-c/src/tuya_iot.c:645
#19 0x4200bf6a in tuya_link_app_task (pvParameters=<error reading variable: value has been optimized out>) 
    at /home/xxx/Project/tuya/tuya_iot_link_sdk_for_esp32/main/app_main.c:125
#20 0x4080827a in vPortTaskWrapper (pxCode=<optimized out>, pvParameters=<optimized out>)
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:255

======================== THREADS INFO =========================
  Id   Target Id          Frame
* 1    process 1082342836 panic_abort (details=details@entry=0x408338ac "assert failed: 
    block_locate_free heap_tlsf.c:476 (block_size(block) >= size)") at /home/xxx/esp/esp-idf/components/esp_system/panic.c:472
  2    process 1082278620 vPortClearInterruptMaskFromISR (prev_int_level=1) at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:519
  3    process 1082280532 0x408059b0 in esp_cpu_wait_for_intr () at /home/xxx/esp/esp-idf/components/esp_hw_support/cpu.c:145
  4    process 1082287412 0x408084fa in vPortYield () at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:652
  5    process 1082291472 0x408084fc in vPortYield () at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:652
  6    process 1082302016 0x408084fa in vPortYield () at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:652
  7    process 1082273548 vPortClearInterruptMaskFromISR (prev_int_level=1) at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:519


       TCB             NAME PRIO C/B  STACK USED/FREE
---------- ---------------- -------- ----------------
0x40833db4        tuya_link      4/4        2368/3760
0x408242dc             main      1/1         320/3768
0x40824a54             IDLE      0/0         208/1312
0x40826534              tiT    18/18         336/3232
0x40827510          sys_evt    20/20         352/2452
0x40829e40             wifi    23/23         336/6308
0x40822f0c        esp_timer    22/22         224/3864

==================== THREAD 1 (TCB: 0x40833db4, name: 'tuya_link') =====================
#0  panic_abort (details=details@entry=0x408338ac "assert failed: 
    block_locate_free heap_tlsf.c:476 (block_size(block) >= size)") at /home/xxx/esp/esp-idf/components/esp_system/panic.c:472
#1  0x408072c2 in esp_system_abort (details=details@entry=0x408338ac "assert failed: 
    block_locate_free heap_tlsf.c:476 (block_size(block) >= size)") at /home/xxx/esp/esp-idf/components/esp_system/port/esp_system_chip.c:93
#2  0x4080dfc6 in __assert_func (file=0x4004d150 "heap_tlsf.c", line=<optimized out>, func=<optimized out>, expr=0x4004d344 "block_size(block) >= size") 
    at /home/xxx/esp/esp-idf/components/newlib/assert.c:81
#3  0x40028392 in __assert_func ()
#4  0x400213e2 in tlsf_malloc ()
#5  0x40022542 in multi_heap_malloc_impl ()
#6  0x4080c4f8 in multi_heap_malloc (heap=0x40820e90, size=size@entry=2006) 
    at /home/xxx/esp/esp-idf/components/heap/multi_heap_poisoning.c:254
#7  0x4080093e in heap_caps_malloc_base (size=size@entry=2002, caps=2052) 
    at /home/xxx/esp/esp-idf/components/heap/heap_caps.c:179
#8  0x40800a8a in heap_caps_calloc_base (n=<optimized out>, size=size@entry=2002, caps=caps@entry=2052) 
    at /home/xxx/esp/esp-idf/components/heap/heap_caps.c:515
#9  0x40800d3a in heap_caps_calloc (n=<optimized out>, size=2002, caps=caps@entry=2052) 
    at /home/xxx/esp/esp-idf/components/heap/heap_caps.c:524
#10 0x4204a63a in esp_mbedtls_mem_calloc (n=<optimized out>, size=<optimized out>) 
    at /home/xxx/esp/esp-idf/components/mbedtls/port/esp_mem.c:17
#11 0x42046120 in mbedtls_calloc (nmemb=nmemb@entry=1, size=<optimized out>) 
    at /home/xxx/esp/esp-idf/components/mbedtls/mbedtls/library/platform.c:49
#12 0x420502f4 in mbedtls_pem_read_buffer (ctx=ctx@entry=0x40833ab4, 
    header=header@entry=0x420d3798 "-----BEGIN CERTIFICATE-----", 
    footer=footer@entry=0x420d37b4 "-----END CERTIFICATE-----", 
    data=data@entry=0x420dafe4 <default_tuya_cacert> 
        "-----BEGIN CERTIFICATE-----\\r\
        MIIHzjCCBrYCCQCGzYVuHuOuMzANBgkqhkiG9w0BAQsFADCCAqYxCzAJBgNVBAYT\\r\
        AlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMREwDwYDVQQHDAhTYW4gSm9zZTEZMBcG\\r\
        A1UECgwQVHV5YSBHbG9iYWwgSW5jLjEVMBMGA1U"..., 
    pwd=pwd@entry=0x0, 
    pwdlen=pwdlen@entry=0, 
    use_len=use_len@entry=0x40833ab0) at /home/xxx/esp/esp-idf/components/mbedtls/mbedtls/library/pem.c:401
#13 0x4205563a in mbedtls_x509_crt_parse (chain=chain@entry=0x40834a38, 
    buf=0x420dafe4 <default_tuya_cacert> 
        "-----BEGIN CERTIFICATE-----\\r\
        MIIHzjCCBrYCCQCGzYVuHuOuMzANBgkqhkiG9w0BAQsFADCCAqYxCzAJBgNVBAYT\\r\
        AlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMREwDwYDVQQHDAhTYW4gSm9zZTEZMBcG\\r\
        A1UECgwQVHV5YSBHbG9iYWwgSW5jLjEVMBMGA1U"..., 
    buflen=2813) at /home/xxx/esp/esp-idf/components/mbedtls/mbedtls/library/x509_crt.c:1443
#14 0x4201d11e in network_tls_connect (pNetwork=0x4083407c, params=<optimized out>) 
    at /home/xxx/Project/tuya/tuya_iot_link_sdk_for_esp32/components/tuya-iot-link-sdk/port/network_wrapper.c:104
#15 0x420114aa in mqtt_client_connect (client=0x40833f18) 
    at /home/xxx/Project/tuya/tuya_iot_link_sdk_for_esp32/components/tuya-iot-link-sdk/tuya-iot-link-sdk-embedded-c/middleware/mqtt_client_wrapper.c:164
#16 0x42013754 in tuya_mqtt_start (context=context@entry=0x40833bb4) 
    at /home/xxx/Project/tuya/tuya_iot_link_sdk_for_esp32/components/tuya-iot-link-sdk/tuya-iot-link-sdk-embedded-c/src/mqtt_service.c:517
#17 0x42013ebe in mqtt_bind_token_get (config=0x4081b860 <client>, binding=0x408322a0) 
    at /home/xxx/Project/tuya/tuya_iot_link_sdk_for_esp32/components/tuya-iot-link-sdk/tuya-iot-link-sdk-embedded-c/src/mqtt_bind.c:107
#18 0x4200fa22 in tuya_iot_yield (client=client@entry=0x4081b860 <client>) 
    at /home/xxx/Project/tuya/tuya_iot_link_sdk_for_esp32/components/tuya-iot-link-sdk/tuya-iot-link-sdk-embedded-c/src/tuya_iot.c:645
#19 0x4200bf6a in tuya_link_app_task (pvParameters=<error reading variable: value has been optimized out>) 
    at /home/xxx/Project/tuya/tuya_iot_link_sdk_for_esp32/main/app_main.c:125
#20 0x4080827a in vPortTaskWrapper (pxCode=<optimized out>, pvParameters=<optimized out>) 
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:255

==================== THREAD 2 (TCB: 0x408242dc, name: 'main') =====================
#0  vPortClearInterruptMaskFromISR (prev_int_level=1) at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:519
#1  0x408084be in vPortExitCritical () at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:620
#2  0x4080928e in prvAddNewTaskToReadyList (pxNewTCB=pxNewTCB@entry=0x40833db4) 
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:1283
#3  0x4080a48c in xTaskCreatePinnedToCore (pxTaskCode=0x4200bef0 <tuya_link_app_task>, 
    pcName=0x420c33e4 "tuya_link", 
    usStackDepth=6144, 
    pvParameters=0x0, 
    uxPriority=4, 
    pxCreatedTask=0x0, xCoreID=2147483647) at /home/xxx/esp/esp-idf/components/freertos/esp_additions/freertos_tasks_c_additions.h:285
#4  0x4200c242 in __GNU_EH_FRAME_HDR ()
#5  0x420bec36 in main_task (args=<error reading variable: value has been optimized out>) 
    at /home/xxx/esp/esp-idf/components/freertos/app_startup.c:208
#6  0x4080827a in vPortTaskWrapper (pxCode=<optimized out>, pvParameters=<optimized out>)
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:255

==================== THREAD 3 (TCB: 0x40824a54, name: 'IDLE') =====================
#0  0x408059b0 in esp_cpu_wait_for_intr () at /home/xxx/esp/esp-idf/components/esp_hw_support/cpu.c:145
#1  0x42024140 in esp_vApplicationIdleHook () at /home/xxx/esp/esp-idf/components/esp_system/freertos_hooks.c:59
#2  0x4080901e in prvIdleTask (pvParameters=<error reading variable: value has been optimized out>) 
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:4273
#3  0x4080827a in vPortTaskWrapper (pxCode=<optimized out>, pvParameters=<optimized out>) 
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:255

==================== THREAD 4 (TCB: 0x40826534, name: 'tiT') =====================
#0  0x408084fa in vPortYield () at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:652
#1  0x40807efc in xQueueReceive (xQueue=0x40825638, pvBuffer=pvBuffer@entry=0x408264cc, xTicksToWait=<optimized out>, xTicksToWait@entry=53) 
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1659
#2  0x4209cb72 in sys_arch_mbox_fetch (mbox=mbox@entry=0x40820d78 <tcpip_mbox>, msg=msg@entry=0x408264cc, timeout=530) 
    at /home/xxx/esp/esp-idf/components/lwip/port/freertos/sys_arch.c:317
#3  0x420876fe in tcpip_timeouts_mbox_fetch (mbox=mbox@entry=0x40820d78 <tcpip_mbox>, msg=msg@entry=0x408264cc) 
    at /home/xxx/esp/esp-idf/components/lwip/lwip/src/api/tcpip.c:104
#4  0x420877e2 in tcpip_thread (arg=<error reading variable: value has been optimized out>) 
    at /home/xxx/esp/esp-idf/components/lwip/lwip/src/api/tcpip.c:142
#5  0x4080827a in vPortTaskWrapper (pxCode=<optimized out>, pvParameters=<optimized out>) 
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:255

==================== THREAD 5 (TCB: 0x40827510, name: 'sys_evt') =====================
#0  0x408084fc in vPortYield () at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:652
#1  0x40807efc in xQueueReceive (xQueue=0x4082672c, pvBuffer=pvBuffer@entry=0x40827470, xTicksToWait=<optimized out>, xTicksToWait@entry=4294967295) 
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1659
#2  0x420bc7aa in esp_event_loop_run (event_loop=event_loop@entry=0x40826700, ticks_to_run=ticks_to_run@entry=4294967295) 
    at /home/xxx/esp/esp-idf/components/esp_event/esp_event.c:569
#3  0x420bc806 in esp_event_loop_run_task (args=0x40826700, args@entry=<error reading variable: value has been optimized out>) 
    at /home/xxx/esp/esp-idf/components/esp_event/esp_event.c:107
#4  0x4080827a in vPortTaskWrapper (pxCode=<optimized out>, pvParameters=<optimized out>) 
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:255

==================== THREAD 6 (TCB: 0x40829e40, name: 'wifi') =====================
#0  0x408084fa in vPortYield () at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:652
#1  0x40807efc in xQueueReceive (xQueue=0x40827d1c, pvBuffer=0x40829db8, xTicksToWait=<optimized out>, xTicksToWait@entry=4294967295) 
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1659
#2  0x420be7bc in queue_recv_wrapper (queue=<optimized out>, item=<optimized out>, block_time_tick=<optimized out>) 
    at /home/xxx/esp/esp-idf/components/esp_wifi/esp32c6/esp_adapter.c:236
#3  0x4080f458 in ppTask ()
#4  0x4080827a in vPortTaskWrapper (pxCode=<optimized out>, pvParameters=<optimized out>) 
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:255

==================== THREAD 7 (TCB: 0x40822f0c, name: 'esp_timer') =====================
#0  vPortClearInterruptMaskFromISR (prev_int_level=1) at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:519
#1  0x408084be in vPortExitCritical () at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:620
#2  0x4080a1fe in ulTaskGenericNotifyTake (uxIndexToWait=uxIndexToWait@entry=0, xClearCountOnExit=xClearCountOnExit@entry=1, xTicksToWait=xTicksToWait@entry=4294967295)
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:5684
#3  0x420071a8 in timer_task (arg=<error reading variable: value has been optimized out>) 
    at /home/xxx/esp/esp-idf/components/esp_timer/src/esp_timer.c:477
#4  0x4080827a in vPortTaskWrapper (pxCode=<optimized out>, pvParameters=<optimized out>) 
    at /home/xxx/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/port.c:255


======================= ALL MEMORY REGIONS ========================
Name   Address   Size   Attrs
.rtc.text 0x50000000 0x0 RW
.rtc.force_fast 0x50000000 0x0 RW
.rtc_noinit 0x50000000 0x0 RW
.rtc.force_slow 0x50000000 0x0 RW
.iram0.text 0x40800000 0x1627c R XA
.iram0.text_end 0x4081627c 0x0 RW
.iram0.bss 0x40816280 0x0 RW
.dram0.data 0x40816280 0x4794 RW A
.flash.text 0x42000020 0xbf7e0 R XA
.flash.appdesc 0x420c0020 0x100 R  A
.flash.rodata 0x420c0120 0x2f6b8 RW A
.eh_frame 0x420ef7d8 0xa18 R  A
.coredump.tasks.data 0x40833db4 0x150 RW
.coredump.tasks.data 0x408337d0 0x5c0 RW
.coredump.tasks.data 0x408242dc 0x150 RW
.coredump.tasks.data 0x40824180 0x140 RW
.coredump.tasks.data 0x40824a54 0x150 RW
.coredump.tasks.data 0x40824960 0xd0 RW
.coredump.tasks.data 0x40826534 0x150 RW
.coredump.tasks.data 0x408263c0 0x150 RW
.coredump.tasks.data 0x40827510 0x150 RW
.coredump.tasks.data 0x40827390 0x160 RW
.coredump.tasks.data 0x40829e40 0x150 RW
.coredump.tasks.data 0x40829cd0 0x150 RW
.coredump.tasks.data 0x40822f0c 0x150 RW
.coredump.tasks.data 0x40822e10 0xe0 RW

===================== ESP32 CORE DUMP END =====================
===============================================================
Done!
Coredump checksum='b1062d8d'
I (3200) esp_core_dump_uart: Core dump has been written to uart.

 

반응형