-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
branch V4.4 [7c986a6] 2022.2.6, ESP32-S3, I2C, Task watchdog got triggered, when change optimization level to "debug without optimization(-O0)" (IDFGH-6729) #8358
Comments
Hi @gaupen1186 , This issue seems to be fixed on master: Could you either try it on master, or pick this to v4.4? We will also backport this to v4.4. |
Hi @ginkgm , I just tested it with master branch, and the issue persist. Here is the log: rst:0x7 (TG0WDT_SYS_RST),boot:0x2b (SPI_FAST_FLASH_BOOT) SPIWP:0xee |
#7812 (comment) could please have a try with this patch? This is fixed for C3, but I assume that it was caused by the same reason |
@ginkgm @Alvin1Zhang |
Sorry, I tried patch, but there were many conflicts and errors. I'm not familiar with git patch. |
@mythbuster5 |
@ginkgm |
@o-marshmallow |
Hi @AxelLin, |
|
v4.4 is EOL, this issue will be closed. |
When I change optimization level to "debug without optimization(-O0)", the I2C code ERROR.
when I change it to default "debug -Og", it woks nice.
It may be related to the previous report: IDFGH-6669) #8301
ESP32-S3
IDF vesion branch v4.4,
commit: 7c986a6 [7c986a6]
2022年2月6日 9:25:40
the code is here:
da217_test.c.txt
DA217 is an accelrometer with I2C interface.
And the log is here:
I (0) cpu_start: App cpu up.
I (196) cpu_start: Pro cpu start user code
I (196) cpu_start: cpu freq: 160000000
I (197) cpu_start: Application information:
I (197) cpu_start: Project name: roxs3
I (197) cpu_start: App version: a3b06fa-dirty
I (197) cpu_start: Compile time: Feb 7 2022 11:57:59
I (197) cpu_start: ELF file SHA256: 2b37353203406893...
I (198) cpu_start: ESP-IDF: v4.4-114-g7c986a64c7
I (198) heap_init: Initializing. RAM available for dynamic allocation:
I (198) heap_init: At 3FC9D9B8 len 00042648 (265 KiB): D/IRAM
I (199) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (199) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (199) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (200) spi_flash: detected chip: generic
I (201) spi_flash: flash io: dio
W (201) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (203) sleep: Configure to isolate all GPIO pins in sleep state
I (204) sleep: Enable automatic switching of GPIO sleep configuration
I (205) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (206) gpio: GPIO[11]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:1
I (206) DA217: [da217_chip_id_check] da217 chip id OK!
I (226) DA217: [da217_reset] OK!
I (226) DA217: [da217_set_range_res_power_bw] OK!
I (226) DA217: [da217_set_odr] OK!
I (226) DA217: [da217_set_fifo] OK!
I (226) DA217: [da217_int_config] OK!
I (226) DA217: [da217_set_active_int] OK!
E (5226) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (5226) task_wdt: - IDLE (CPU 1)
E (5226) task_wdt: Tasks currently running:
E (5226) task_wdt: CPU 0: IDLE
E (5226) task_wdt: CPU 1: IDLE
E (5226) task_wdt: Print CPU 0 (current core) backtrace
Backtrace:0x4200DB06:0x3FC9AB800x403771BE:0x3FC9ABD0 0x4201D129:0x3FCF5150 0x4200CED1:0x3FCF5170 0x42002681:0x3FCF5190 0x4037FB99:0x3FCF51C0
0x4200db06: task_wdt_isr at D:/ESP32/esp-idf/components/esp_system/task_wdt.c:183
0x403771be: _xt_lowint1 at D:/ESP32/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1111
0x4201d129: cpu_ll_waiti at D:/ESP32/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:182
0x4200ced1: esp_pm_impl_waiti at D:/ESP32/esp-idf/components/esp_pm/pm_impl.c:837
0x42002681: esp_vApplicationIdleHook at D:/ESP32/esp-idf/components/esp_system/freertos_hooks.c:63
0x4037fb99: prvIdleTask at D:/ESP32/esp-idf/components/freertos/tasks.c:3974 (discriminator 1)
E (5226) task_wdt: Print CPU 1 backtrace
The text was updated successfully, but these errors were encountered: