uart_hal_write_txfifo panic in 4.2 but not 4.1
Posted: Tue Aug 04, 2020 8:02 pm
My code has been working fine when built with the espressif/idf:release-v4.1 docker image. But with the v4.2 image, I get panics like the following:
Does this look familiar to anyone who has moved from 4.1 to 4.2 recently?
Code: Select all
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0).
Core 0 register dump:
PC : 0x400825e8 PS : 0x00050034 A0 : 0x4000bff0 A1 : 0x3ffb0780
0x400825e8: _xt_lowint1 at /opt/esp/idf/components/freertos/xtensa/xtensa_vectors.S:1105
A2 : 0x00000000 A3 : 0x00000040 A4 : 0x00000400 A5 : 0x3ffb0760
A6 : 0x00000001 A7 : 0x00000001 A8 : 0x3ffb6a30 A9 : 0x4008582c
0x4008582c: _frxt_int_enter at /opt/esp/idf/components/freertos/xtensa/portasm.S:119
A10 : 0x0000000c A11 : 0x3ffb365c A12 : 0x3ff44000 A13 : 0xffffff00
A14 : 0x00000001 A15 : 0x3ffb69bc SAR : 0x00000020 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Core 0 was running in ISR context:
EPC1 : 0x400e69e7 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x400825e8
0x400e69e7: uart_hal_write_txfifo at /opt/esp/idf/components/soc/src/hal/uart_hal_iram.c:35
0x400825e8: _xt_lowint1 at /opt/esp/idf/components/freertos/xtensa/xtensa_vectors.S:1105
Backtrace:0x400825e5:0x3ffb0780 0x4000bfed:0x3ffb2f30 0x400857c5:0x3ffb2f40 0x400d2263:0x3ffb2f60 0x400d22c1:0x3ffb2fa0 0x400e6279:0x3ffb2fd0 0x40083045:0x3ffb2ff0 0x4008556d:0x3ffb3010
0x400825e5: _xt_lowint1 at /opt/esp/idf/components/freertos/xtensa/xtensa_vectors.S:1105
0x400857c5: vPortExitCritical at /opt/esp/idf/components/freertos/xtensa/port.c:419
0x400d2263: esp_intr_alloc_intrstatus at /opt/esp/idf/components/esp32/intr_alloc.c:673
0x400d22c1: esp_intr_alloc at /opt/esp/idf/components/esp32/intr_alloc.c:693
0x400e6279: gpio_isr_register_on_core_static at /opt/esp/idf/components/driver/gpio.c:500
0x40083045: ipc_task at /opt/esp/idf/components/esp_ipc/ipc.c:62
0x4008556d: vPortTaskWrapper at /opt/esp/idf/components/freertos/xtensa/port.c:143
Core 1 register dump:
PC : 0x400e5dd2 PS : 0x00060634 A0 : 0x800d28ba A1 : 0x3ffb5900
0x400e5dd2: esp_pm_impl_waiti at /opt/esp/idf/components/esp32/pm_esp32.c:486
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000001 A5 : 0x80000001
A6 : 0x00000003 A7 : 0x00060023 A8 : 0x800857c8 A9 : 0x3ffb58f0
A10 : 0x00000003 A11 : 0x00060623 A12 : 0x00060620 A13 : 0x00060623
A14 : 0x00000001 A15 : 0x00000000 SAR : 0x00000000 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Backtrace:0x400e5dcf:0x3ffb5900 0x400d28b7:0x3ffb5920 0x40085ee6:0x3ffb5940 0x4008556d:0x3ffb5960
0x400e5dcf: esp_pm_impl_waiti at /opt/esp/idf/components/esp32/pm_esp32.c:484
0x400d28b7: esp_vApplicationIdleHook at /opt/esp/idf/components/esp_common/src/freertos_hooks.c:63
0x40085ee6: prvIdleTask at /opt/esp/idf/components/freertos/tasks.c:3385 (discriminator 1)
0x4008556d: vPortTaskWrapper at /opt/esp/idf/components/freertos/xtensa/port.c:143