莫名重启问题

hello_meeyo
Posts: 17
Joined: Tue Jan 17, 2023 2:08 am

莫名重启问题

Postby hello_meeyo » Wed Mar 22, 2023 3:03 am

Dear 大神们:
你们好,你们有没有遇到过esp32s3的莫名重启问题,有时候就修改个变量参数值比如把30改成5,烧录进去就莫名重启了。重启log如下,thks:

ELF file SHA256: 798f2e8692a3bf43

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x4206ea08
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0108,len:0x1658
load:0x403b6000,len:0xb7c
load:0x403ba000,len:0x2f58
entry 0x403b6248
[0;32mI (29) boot: ESP-IDF v4.4-dirty 2nd stage bootloader[0m
[0;32mI (29) boot: compile time 11:20:21[0m
[0;32mI (29) boot: chip revision: 0[0m
[0;32mI (31) boot.esp32s3: Boot SPI Speed : 80MHz[0m
[0;32mI (36) boot.esp32s3: SPI Mode : DIO[0m
[0;32mI (41) boot.esp32s3: SPI Flash Size : 8MB[0m
[0;32mI (45) boot: Enabling RNG early entropy source...[0m
[0;32mI (51) boot: Partition Table:[0m
[0;32mI (54) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (62) boot: 0 nvs WiFi data 01 02 00009000 00004000[0m
[0;32mI (69) boot: 1 otadata OTA data 01 00 0000d000 00002000[0m
[0;32mI (77) boot: 2 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (84) boot: 3 factory factory app 00 00 00010000 00200000[0m
[0;32mI (92) boot: 4 coredump Unknown data 01 03 00210000 00010000[0m
[0;32mI (99) boot: 5 ota_0 OTA app 00 10 00220000 00200000[0m
[0;32mI (107) boot: 6 ota_1 OTA app 00 11 00420000 00200000[0m
[0;32mI (114) boot: End of partition table[0m
[0;32mI (118) boot: Defaulting to factory image[0m
[0;32mI (123) esp_image: segment 0: paddr=00010020 vaddr=3c100020 size=3623ch (221756) map[0m
[0;32mI (171) esp_image: segment 1: paddr=00046264 vaddr=3fc9d0c0 size=04ae4h ( 19172) load[0m
[0;32mI (176) esp_image: segment 2: paddr=0004ad50 vaddr=40374000 size=052c8h ( 21192) load[0m
[0;32mI (182) esp_image: segment 3: paddr=00050020 vaddr=42000020 size=f4a48h (1002056) map[0m
[0;32mI (366) esp_image: segment 4: paddr=00144a70 vaddr=403792c8 size=13df0h ( 81392) load[0m
[0;32mI (385) esp_image: segment 5: paddr=00158868 vaddr=50000000 size=00010h ( 16) load[0m
[0;32mI (395) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (395) boot: Disabling RNG early entropy source...[0m
[0;32mI (406) cpu_start: Pro cpu up.[0m
[0;32mI (407) cpu_start: Starting app cpu, entry point is 0x403753c0[0m
[0;32mI (385) cpu_start: App cpu up.[0m
[0;32mI (421) cpu_start: Pro cpu start user code[0m
[0;32mI (421) cpu_start: cpu freq: 240000000[0m
[0;32mI (421) cpu_start: Application information:[0m
[0;32mI (423) cpu_start: Project name: esp32s3_project[0m
[0;32mI (429) cpu_start: App version: v4.4-dirty[0m
[0;32mI (434) cpu_start: Compile time: Mar 16 2023 11:19:24[0m
[0;32mI (440) cpu_start: ELF file SHA256: 798f2e8692a3bf43...[0m
[0;32mI (446) cpu_start: ESP-IDF: v4.4-dirty[0m
[0;32mI (452) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (459) heap_init: At 3FCB0778 len 0002F888 (190 KiB): D/IRAM[0m
[0;32mI (465) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM[0m
[0;32mI (472) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM[0m
[0;32mI (479) spi_flash: detected chip: generic[0m
[0;32mI (483) spi_flash: flash io: dio[0m
[0;32mI (487) sleep: Configure to isolate all GPIO pins in sleep state[0m
[0;32mI (494) sleep: Enable automatic switching of GPIO sleep configuration[0m
[0;32mI (501) coexist: coexist rom version e7ae62f[0m
[0;32mI (506) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m

assert failed: esp_ipc_isr_init_cpu esp_ipc_isr.c:73 (uxTaskGetStackHighWaterMark(NULL) > 128)


Backtrace:0x40375c6a:0x3fcf12b00x40383b1d:0x3fcf12d0 0x4038af0d:0x3fcf12f0 0x420636f6:0x3fcf1410 0x40386d65:0x3fcf1430




ELF file SHA256: 798f2e8692a3bf43

Rebooting...

hello_meeyo
Posts: 17
Joined: Tue Jan 17, 2023 2:08 am

Re: 莫名重启问题

Postby hello_meeyo » Fri Mar 24, 2023 6:52 am

Dear all:
你们好,没人遇到过吗,还有奇怪的是有时候我在这个刚刚修改的函数前面加一条printf打印就不重启了。搞得我现在修改一个地方要是重启的话我就首先尝试加一条printf打印 :lol:

ESP-Kevin
Posts: 9
Joined: Fri Jul 01, 2022 6:10 am

Re: 莫名重启问题

Postby ESP-Kevin » Mon Mar 27, 2023 11:24 am

uxTaskGetStackHighWaterMark 这个报错可能是堆栈调用深度过深,排查一下是不是有什么地方递归太深了,或者在栈上分配了太多内存

附上freeRTOS文档
https://www.freertos.org/zh-cn-cmn-s/ux ... rMark.html

hello_meeyo
Posts: 17
Joined: Tue Jan 17, 2023 2:08 am

Re: 莫名重启问题

Postby hello_meeyo » Thu Mar 30, 2023 1:30 am

Dear ESP-Kevin :
你好,好的,我看看,谢谢啦。

hello_meeyo
Posts: 17
Joined: Tue Jan 17, 2023 2:08 am

Re: 莫名重启问题

Postby hello_meeyo » Fri Aug 25, 2023 2:07 am

这个芯片真难用,又不报错,编译也过了。真的是冷不丁的又跑飞不断重启。跟上面一样,提示assert failed: esp_ipc_isr_init_cpu esp_ipc_isr.c:73 (uxTaskGetStackHighWaterMark(NULL) > 128)这样的错误后重启。乐鑫也没个技术出来说明下。

ESP_Yake
Posts: 109
Joined: Mon Mar 06, 2017 12:23 pm

Re: 莫名重启问题

Postby ESP_Yake » Tue Sep 05, 2023 7:16 am

这个打印确实 task 的栈调用太深,有溢出的风险了。排查这个问题我觉得你需要做如下测试:
1. IDF 下面使用 hello_world (https://github.com/espressif/esp-idf/tr ... ello_world)编译烧进去确定是否有问题
2. 如果 hello world 没有问题,把你们当前使用的配置项替换 hello_world 配置项看看是否会有问题,有则说明配置项问题
3. 配置项试一下改成只使用单核(Component config -> FreeRTOS -> Kernel-> Run FreeRTOS only on first core),是否会有问题
4. 看看能否简化你们的应用,把复现问题的最小化程序打包发给我们看看(build目录删除)

hello_meeyo
Posts: 17
Joined: Tue Jan 17, 2023 2:08 am

Re: 莫名重启问题

Postby hello_meeyo » Fri Sep 22, 2023 3:00 am

Dear ESP_Yake:
你好,谢谢指点。

Who is online

Users browsing this forum: No registered users and 36 guests