espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
12.97k stars 7.29k forks source link

***ERROR*** A stack overflow in task sys_evt has been detected #8902

Open createskyblue opened 7 months ago

createskyblue commented 7 months ago

Board

ESP32 PICO V3-02

Device Description

On the self-made development board

Hardware Configuration

image

In esp32 pico v3-02, the SD0 and SD1 pins should be available to users. After reading the data sheet, it should not be connected to flash or psram. Please ignore the warning label in the schematic diagram above.

Version

latest master (checkout manually)

IDE Name

PlatfornIO

Operating System

Windows 10

Flash frequency

80MHz

PSRAM enabled

yes

Upload speed

921600

Description

Using Painless_ Mesh 1.5.0 library for Mesh networking experiments, while using serial port 0 to send and receive instructions. It has been found that when running the same code with different configuration files, the child nodes and main nodes are physically far away, it is easy to crash. But if the nodes are relatively close, the crash described below will not occur for a long time. Currently, we have not further identified the specific location of the error

使用Painless_Mesh-1.5.0库进行Mesh组网实验,同时使用串口0收发指令。发现当运行相同代码,不同配置文件的子节点和主节点物理较远的时候,容易发生崩溃。但是如果节点们比较近,则长时间都不会发生下面描述的崩溃。暂时没有进一步定位到错误的具体位置

Sketch

Unable to provide

Debug Message

禄 77 03 00 04 02 00 FF 84 FC   (I send instructions to serial port 0)
芦 w�锟紻 
锟絯�锟紻(Receive raw data from mesh network and forward it directly to serial port.)
w�锟紻锟絯�锟斤拷锟�(Receive raw data from mesh network and forward it directly to serial port.)
w�锟斤拷0(Receive raw data from mesh network and forward it directly to serial port.)
禄 77 03 00 04 02 FF FF 74 BD
芦 w锟斤拷锟斤拷
w锟斤拷锟絃
w锟斤拷锟�
锟絯锟斤拷t
锟絯锟斤拷tq
禄 77 03 00 04 02 FF FF 74 BD
芦 w锟斤拷锟斤拷
w锟斤拷t
锟絯锟斤拷锟絃
w锟斤拷tq
w锟斤拷锟�
禄 77 03 00 04 02 FF FF 74 BD(Receive raw data from mesh network and forward it directly to serial port.)
芦 锟絯锟斤拷锟斤拷(Receive raw data from mesh network and forward it directly to serial port.)
w锟斤拷锟絃(Receive raw data from mesh network and forward it directly to serial port.)

(ps:Theoretically, it should need to receive data from the mesh network twice more, but unfortunately it crashed.)

***ERROR*** A stack overflow in task sys_evt has been detected.

***ERROR*** A stack overflow in task sys_evt has been detected.

Backtrace: 0x401142e6:0x3ffb4a40 0x40110efe:0x3ffb4a70 0x40110f64:0x3ffb4ab0 0x400836f6:0x3ffb4ad0 0x40083775:0x3ffb4af0 0x40113ce2:0x3ffb4b20 0x401139dc:0x3ffb4b50 0x401139fd:0x3ffb4b70 0x401135d2:0x3ffb4b90 0x4011397b:0x3ffb4c00 0x40083b09:0x3ffb4c50 0x40085da8:0x3ffb4c70 0x40083a65:0x3ffb4d30 0x4008d399:0x3ffb4d50 0x4009091d:0x3ffb4d70 0x4008f0dd:0x3ffb4df0 0x4008d4a8:
0x3ffb4e20 0x4008d458:0x3f40b683 |<-CORRUPTED

ELF file SHA256: 15683556465e6a0d

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 271414342, 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:1344
lo
ad:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0

setLogLevel: ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE |
Guru Meditation Error: Core  0 panic'ed (Unhandled debug exception). 
Debug exception reason: Stack canary watchpoint triggered (sys_evt) 
Core  0 register dump:
PC      : 0x4009072f  PS      : 0x00060036  A0      : 0x8008efec  A1      : 0x3ffb4a40  
A2      : 0x3ffbf5d8  A3      : 0xb33fffff  A4      : 0x0000abab  A5      : 0x00060023  
A6      : 0x00060023  A7      : 0x0000cdcd  A8      : 0xb33fffff  A9      : 0xffffffff  
A10     : 0x3ffbf5c4  A11     : 0x00000001  A12     : 0x00060021  A13     : 0x80000000  
A14     : 0x007bf5d8  A15     : 0x003fffff  SAR     : 0x00000004  EXCCAUSE: 0x00000001  
EXCVADDR: 0x00000000  LBEG    : 0x4008b441  LEND    : 0x4008b451  LCOUNT  : 0xffffffff  

Backtrace: 0x4009072c:0x3ffb4a40 0x4008efe9:0x3ffb4a80 0x40
08d4a8:0x3ffb4ab0 0x4008d458:0xa5a5a5a5 |<-CORRUPTED

ELF file SHA256: 15683556465e6a0d

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 271414342, 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:1344
lo
ad:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0

setLogLevel: ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE |
w�%锟絏锟斤拷
锟絯�%锟絏锟斤拷
锟絯�%锟絏u
禄 77 03 00 04 02 FF FF 74 BD
芦   锟絯锟斤拷锟斤拷
w锟斤拷锟絃
w锟斤拷锟�
锟絯�%锟絏q

锟絯�%锟絏m锟�
锟絯�%锟絏q

锟絯�%锟絏锟斤拷
锟絯�%锟絏u
禄 77 03 00 04 02 00 FF 84 FC
芦   锟絯�锟紻
锟絯�锟紻
w�锟斤拷锟�
w�锟紻锟�
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 271414342, 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:1344
load:0x40078
000,len:13964
load:0x40080400,len:3600
entry 0x400805f0

setLogLevel: ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE |

***ERROR*** A stack overflow in task sys_evt has been detected.

***ERROR*** A stack overflow in task sys_evt has been detected.

Backtrace: 0x401142e6:0x3ffb4a40 0x40110efe:0x3ffb4a70 0x40110f64:0x3ffb4ab0 0x400836f6:0x3ffb4ad0 0x40083775:0x3ffb4af0 0x40113ce2:0x3ffb4b20 0x401139dc:0x3ffb4b50 0x401139fd:0x3ffb4b70 0x401135d2:0x3ffb4b90 0x4011397b:0x3ffb4c00 0x40083b09:0x3ffb4c50 0x40085da8:0x3ffb4c70 0x40083a65:0x3ffb4d30 0x4008d399:0x3ffb4d50 0x4009091d:0x3ffb4d70 0x4008f0dd:0x3ffb4df0 0x4008d4a8:
0x3ffb4e20 0x4008d458:0x3f40b683 |<-CORRUPTED

Decoder:
START:
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/vfs/vfs.c:88
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/startup.c:296
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/startup.c:328
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/port/arch/xtensa/debug_helpers.c:59
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/port/arch/xtensa/debug_helpers.c:76
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32/include/hal/uart_ll.h:872
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32/include/hal/uart_ll.h:136
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32/include/hal/uart_ll.h:493
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/port/brownout.c:86
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32/include/hal/uart_ll.h:120
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/port/panic_handler.c:219
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/xtensa_vectors.S:703
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:408
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:137
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/port.c:407
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/tasks.c:3505
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/portasm.S:436
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/portasm.S:231
END

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

Jason2866 commented 7 months ago

Seems not an Arduino project. This github is for issues with Arduino

createskyblue commented 7 months ago

Seems not an Arduino project. This github is for issues with Arduino

It's the Arduino project. But the location of the crash should not be in my code

createskyblue commented 7 months ago

road road road road road road road road road road road road road road road road road

child node . . . . . . .child node . . . . . . . .root node . . . . . .child node. . . . . . .child node

road road road road road road road road road road road road road road road road road

Test environment, compare the distance between each node to the limit. I issue test instructions through the serial port at the root node in the middle, Painless_ Mesh will help me broadcast the instructions of the serial port to all child nodes. Under extreme relay distance, it is easy for the root node to crash after receiving replies from several child nodes. But if transferred to indoor testing, there are no issues with the test and it runs well, so I suspect that the triggering of the problem is related to WiFi extreme distance communication

me-no-dev commented 7 months ago

you used an external library and provided no code that can help to reproduce. Can hardly help here...

createskyblue commented 7 months ago

you used an external library and provided no code that can help to reproduce. Can hardly help here...

I will organize the code later and separate the minimum reproduction code from the business. Because some of the current code does not belong to me personally 😢

me-no-dev commented 7 months ago

your memory get's corrupted. We do not need your whole project, just the camera initialization code and configuration, so we could check if it could be anything on our end. Just the info above is way not enough to come to any conclusion.

createskyblue commented 7 months ago

your memory get's corrupted. We do not need your whole project, just the camera initialization code and configuration, so we could check if it could be anything on our end. Just the info above is way not enough to come to any conclusion.

There is no camera used in the project, only the wifi STA+AP function is used, and in the pianless mesh, there should only be a TCP connection opened. I also noticed that the automatic reset after the crash trigger will trigger a new crash during the initial mesh (the crash report above occurs in chronological order).

Will my application happen to damage the memory of the 'sys_evt' thread here? However, if each node is close together, there will be no problem, so I guess it shouldn't be a problem with some of my own code, maybe?

I will organize the relevant code as soon as possible. (About 12 hours later?)

createskyblue commented 6 months ago
setLogLevel: ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE |
Guru Meditation Error: Core  0 panic'ed (Unhandled debug exception). 
Debug exception reason: Stack canary watchpoint triggered (sys_evt)
Core  0 register dump:
PC      : 0x40092903  PS      : 0x00060536  A0      : 0x800911c0  A1      : 0x3ffb4e50
A2      : 0x3ffbf5f8  A3      : 0xb33fffff  A4      : 0x0000abab  A5      : 0x00060523
A6      : 0x00060523  A7      : 0x0000cdcd  A8      : 0x0000abab  A9      : 0xffffffff
A10     : 0x3ffbdc6c  A11     : 0x3ffc5f00  A12     : 0x3ffc1a0c  A13     : 0x3ffc1b34
A14     : 0x007bf5f8  A15     : 0x003fffff  SAR     : 0x00000004  EXCCAUSE: 0x00000001
EXCVADDR: 0x00000000  LBEG    : 0x4008b994  LEND    : 0x4008b9aa  LCOUNT  : 0xffffffff

Backtrace: 0x40092900:0x3ffb4e50 0x400911bd:0x3ffb4e90 0x4008f67c:0x3ffb4ec0 0x4008f62c:0xa5a5a5a5 |<-CORRUPTED

  #0  0x40092900:0x3ffb4e50 in compare_and_set_native at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_hw_support/include/soc/compare_set.h:25
      (inlined by) spinlock_acquire at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_hw_support/include/soc/spinlock.h:103
      (inlined by) xPortEnterCriticalTimeout at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/port.c:301
  #1  0x400911bd:0x3ffb4e90 in vPortEnterCritical at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/include/freertos/portmacro.h:578
      (inlined by) vTaskSwitchContext at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/tasks.c:3458
  #2  0x4008f67c:0x3ffb4ec0 in _frxt_dispatch at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/portasm.S:436
  #3  0x4008f62c:0xa5a5a5a5 in _frxt_int_exit at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/portasm.S:231

  setLogLevel: ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE |
Guru Meditation Error: Core  0 panic'ed (Unhandled debug exception). 
Debug exception reason: Stack canary watchpoint triggered (sys_evt)
Core  0 register dump:
PC      : 0x40092903  PS      : 0x00060936  A0      : 0x800911c0  A1      : 0x3ffb4970
A2      : 0x3ffbf5f8  A3      : 0xb33fffff  A4      : 0x0000abab  A5      : 0x00060923
A6      : 0x00060923  A7      : 0x0000cdcd  A8      : 0xb33fffff  A9      : 0xffffffff
A10     : 0x3ffbdc6c  A11     : 0x3ffc5f00  A12     : 0x3ffc1a0c  A13     : 0x3ffc1b34
A14     : 0x007bf5f8  A15     : 0x003fffff  SAR     : 0x00000004  EXCCAUSE: 0x00000001
EXCVADDR: 0x00000000  LBEG    : 0x4008b994  LEND    : 0x4008b9aa  LCOUNT  : 0xffffffff

Backtrace: 0x40092900:0x3ffb4970 0x400911bd:0x3ffb49b0 0x4008f67c:0x3ffb49e0 0x4008f62c:0xa5a5a5a5 |<-CORRUPTED

  #0  0x40092900:0x3ffb4970 in compare_and_set_native at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_hw_support/include/soc/compare_set.h:25
      (inlined by) spinlock_acquire at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_hw_support/include/soc/spinlock.h:103
      (inlined by) xPortEnterCriticalTimeout at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/port.c:301
  #1  0x400911bd:0x3ffb49b0 in vPortEnterCritical at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/include/freertos/portmacro.h:578
      (inlined by) vTaskSwitchContext at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/tasks.c:3458
  #2  0x4008f67c:0x3ffb49e0 in _frxt_dispatch at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/portasm.S:436
  #3  0x4008f62c:0xa5a5a5a5 in _frxt_int_exit at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/portasm.S:231

  setLogLevel: ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE |
Guru Meditation Error: Core  0 panic'ed (Unhandled debug exception).
Debug exception reason: Stack canary watchpoint triggered (sys_evt)
Core  0 register dump:
PC      : 0x40092903  PS      : 0x00060336  A0      : 0x800911c0  A1      : 0x3ffb4970  
A2      : 0x3ffbf5f8  A3      : 0xb33fffff  A4      : 0x0000abab  A5      : 0x00060323  
A6      : 0x00060323  A7      : 0x0000cdcd  A8      : 0xb33fffff  A9      : 0xffffffff
A10     : 0x3ffbdc6c  A11     : 0x3ffc5f00  A12     : 0x3ffc1a0c  A13     : 0x3ffc1b34
A14     : 0x007bf5f8  A15     : 0x003fffff  SAR     : 0x00000004  EXCCAUSE: 0x00000001
EXCVADDR: 0x00000000  LBEG    : 0x4008b994  LEND    : 0x4008b9aa  LCOUNT  : 0xffffffff

Backtrace: 0x40092900:0x3ffb4970 0x400911bd:0x3ffb49b0 0x4008f67c:0x3ffb49e0 0x4008f62c:0xa5a5a5a5 |<-CORRUPTED

  #0  0x40092900:0x3ffb4970 in compare_and_set_native at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_hw_support/include/soc/compare_set.h:25
      (inlined by) spinlock_acquire at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_hw_support/include/soc/spinlock.h:103
      (inlined by) xPortEnterCriticalTimeout at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/port.c:301
  #1  0x400911bd:0x3ffb49b0 in vPortEnterCritical at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/include/freertos/portmacro.h:578
      (inlined by) vTaskSwitchContext at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/tasks.c:3458
  #2  0x4008f67c:0x3ffb49e0 in _frxt_dispatch at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/portasm.S:436
  #3  0x4008f62c:0xa5a5a5a5 in _frxt_int_exit at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/portasm.S:231

Crashes seem to occur more easily on the esp32-V3-02 when using the following log redirection code. 崩溃似乎容易发生在esp32-V3-02 中使用下面的日志重定向代码

  #ifdef USE_UDP_LOG
#define UDP_LOG_BUF_SIZE (512)
QueueHandle_t UDP_queue = xQueueCreate(UDP_LOG_BUF_SIZE, sizeof(String));
//写一个网络任务,负责UDP广播数据,在端口1024,使用消息队列获取要发送的数据,arduino esp32
void UDP_task(void *pvParameters){
    // uint8_t* buf_tmp = (uint8_t*)malloc(UDP_LOG_BUF_SIZE); //会引发崩溃,不知道为啥
    uint8_t buf_tmp[UDP_LOG_BUF_SIZE];
    //创建UDP对象
    AsyncUDP udp;
    uint64_t send_buf_invalid_timer = millis();
    while(1){
        //检查消息队列
        char msg;
        //检查队列长度,大于32字节发一次
        if(uxQueueMessagesWaiting(UDP_queue) > UDP_LOG_BUF_SIZE / 2 || millis() - send_buf_invalid_timer > 1000){
            uint32_t len = uxQueueMessagesWaiting(UDP_queue);
            if (len > UDP_LOG_BUF_SIZE) len = UDP_LOG_BUF_SIZE;
            if (len) {
                //从缓冲区取特定个数数据
                for (size_t i = 0; i < len; i++)
                    xQueueReceive(UDP_queue, buf_tmp + i, 0);
                //发送广播            
                udp.broadcastTo(buf_tmp, len, DEFAULT_LOG_UDP_BROADCAST_PORT);
            }
            send_buf_invalid_timer = millis();
        }else vTaskDelay(10 / portTICK_PERIOD_MS);
    }
}

// Custom log output function
static int custom_log_output(const char* format, va_list args) {
    // Your custom log implementation here
    char buffer[512];
    int len = vsnprintf(buffer, sizeof(buffer), format, args);
    for (int i = 0; i < len; i++) {
        xQueueSend(UDP_queue, &buffer[i], 0);
    }
    return len;
}
#endif

Here is my PlatformIO configuration. 下面是我的platformIO的配置

[env:pico32_V3_02]
platform = espressif32
board = denky_d4
framework = arduino
build_flags =
    -D MALLOC=malloc
    -D REALLOC=realloc
    -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
    -D CONFIG_COMPILER_OPTIMIZATION_SIZE=y
    -D CONFIG_ARDUHAL_LOG_COLORS=1
    -D BOARD_HAS_PSRAM
    -mfix-esp32-psram-cache-issue
    -D CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y

    -D RELAY_REVERSAL=0
    -D RELAY_OUTPUT_PIN=27
    -D PWM_OUTPUT_PIN=26
    -D RADAR_INPUT_PIN=25
    -D HEART_LED_OUTPUT_PIN=2
    -D AUX_INPUT_PIN=35
    -D RF_M0_OUTPUT_PIN=19
    -D RF_M1_OUTPUT_PIN=5
    -D UART1_ENABLE
    -D UART1_TX_PIN=7
    -D UART1_RX_PIN=8
    -D UART2_ENABLE
    -D UART2_TX_PIN=32
    -D UART2_RX_PIN=33
    -D POWER_VOL_ADC=39

    ; -D USE_UDP_LOG
    -DUSE_ESP_IDF_LOG -DLOG_LOCAL_LEVEL=5 -DTAG="\"ARDUINO\"" -DCONFIG_LOG_COLORS

    ; -D USE_UDP_LOG

build_type = debug
monitor_filters = esp32_exception_decoder
debug_tool = jlink
debug_speed = 7500

board_build.partitions = app_0x160000_spiffs_0x510000_8MB.csv

upload_speed = 921600
monitor_speed = 921600

The approximate cause of the crash is that I connected to the AP opened by Esp32. When the issue occurs, it must be temporarily resolved by power cycling. Otherwise, there is a probability of triggering this problem each time I connect to the AP, and it may not necessarily be the same triggering method mentioned earlier. The same code runs well on ESP32-C3, which is confusing to me. If I discover a more effective triggering method, I will continue to report it.

崩溃大致触发的原因是我连接了Esp32开启的AP,当问题触发后必须要通过断电复位才能暂时摆脱问题,否则每次连接AP的时候就有概率触发这个问题,不一定是前面提到的触发方式 相同的代码在ESP32-C3中运行良好,这让我感到很困惑 如果我发现更有效的触发方式,我将继续报告