Open Pail19 opened 10 months ago
Hi @Pail19! We have a fix for the master that will be merged soon. So I will provide the backport for 5.0 as well. For 5.0 it needs to be changed a bit.
Hi @Pail19! Could you try this patch 28447.zip?
According to the patch file you provided, the problem still exists. The specific logs are as follows
@zrb2002 Can you provide us with a demo that can reproduce the problem? We need further analysis
@Jacques-Zhao sorry,at present, it is reproduced in combination with the entire product business, and the ota function also needs to connect with the server. This hardly provides an example where the problem can be reproduced. I don't know what combination of features caused it to restart, is it normal for you to use this patch file?
Hi @Pail19 @zrb2002! There was an initial though about the log (https://github.com/espressif/esp-idf/issues/12965#issue-2077957976), that it is IPC related issue. But when you applied the fix I check it one more time and came to conclusion that there is no such the issue, so the fix did not work at all for your case.
Can I ask you to use your code (without fix that I gave) with CONFIG_INT_WDT=n
. We think that for some reason ISRs are disabled on cores for a long time this is why we are getting Interrupt wdt timeout
. It can help to exclude some other cases that we are thinking.
BTW, Do you use any High ISRs? or your code disables ISRs?
Hi @KonstantinKondrashov modify configuration CONFIG_INT_WDT=n
,after turning off the interrupt watchdog, there was a restart phenomenon:
ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x7 (TG0WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x4038c25e 0x4038c25e: vListInsert at D:/work/esp_idf/5.0.4/esp-idf/components/freertos/FreeRTOS-Kernel/list.c:173 (discriminator 1)
Yes,I used ISR
@KonstantinKondrashov This is the profile after I turned off the watchdog interrupt
@zrb2002 Do you still hit the issue with recent esp-idf version? @KonstantinKondrashov How is the status of this issue now? (The issue is still open but marked as Status :Done?)
@AxelLin This issue is still OPENED.
@zrb2002
The original log does not give to much information why it happens. The log from this file 打补丁后升级Crash.txt says a bit more. Seems you need to increase the size of IPC stack (CONFIG_ESP_IPC_TASK_STACK_SIZE) because Core0 paniced (Interrupt wdt timeout on CPU0) here ->
https://github.com/espressif/esp-idf/blob/v5.0.4/components/freertos/FreeRTOS-Kernel/list.c#L148-L177. I guess the reason is a stack overflow.
@zrb2002 The original log does not give to much information why it happens. The log from this file 打补丁后升级Crash.txt says a bit more. Seems you need to increase the size of IPC stack (CONFIG_ESP_IPC_TASK_STACK_SIZE) because Core0 paniced (Interrupt wdt timeout on CPU0) here -> https://github.com/espressif/esp-idf/blob/v5.0.4/components/freertos/FreeRTOS-Kernel/list.c#L148-L177. I guess the reason is a stack overflow.
I don't get it. If the ESP_IPC_TASK_STACK_SIZE is too small, it should be stack overflow rather than Interrupt wdt timeout on CPU0. In additional, the ESP_IPC_TASK_STACK_SIZE=2048 is the default setting, it should be fine.
Answers checklist.
IDF version.
release/v5.0.4
Espressif SoC revision.
ESP32-S3
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-S3-WROOM-N8R2
Power Supply used.
External 3.3V
What is the expected behavior?
OTA时触发看门狗报告错误
What is the actual behavior?
Customers using https to get the data, and then through the partition of esp_ota_write write, found that it will trigger the watchdog report error
Steps to reproduce.
/
Debug Logs.
More Information.
No response