Skip to content
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

Task watchdog got triggered #64

Open
gogokui opened this issue Mar 19, 2024 · 1 comment
Open

Task watchdog got triggered #64

gogokui opened this issue Mar 19, 2024 · 1 comment

Comments

@gogokui
Copy link

gogokui commented Mar 19, 2024

Hi @jnthas , I build the project and flash it, but it run exception。

clockwise v1.4.1 and esd-idf v4.4.7

there are 2 issus:
1: NOT_FOUND log

[  1060][V][Preferences.cpp:352] getUChar(): nvs_get_u8 fail: swapBlueGreen NOT_FOUND
[  1061][V][Preferences.cpp:352] getUChar(): nvs_get_u8 fail: use24hFormat NOT_FOUND
[  1067][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: displayBright NOT_FOUND
[  1075][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: autoBrightMin NOT_FOUND
[  1084][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: autoBrightMax NOT_FOUND
[  1092][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: ldrPin NOT_FOUND
[  1100][E][Preferences.cpp:483] getString(): nvs_get_str len fail: timeZone NOT_FOUND
[  1109][E][Preferences.cpp:483] getString(): nvs_get_str len fail: wifiSsid NOT_FOUND
[  1117][E][Preferences.cpp:483] getString(): nvs_get_str len fail: wifiPwd NOT_FOUND
[  1126][E][Preferences.cpp:483] getString(): nvs_get_str len fail: ntpServer NOT_FOUND
[  1135][E][Preferences.cpp:483] getString(): nvs_get_str len fail: canvasFile NOT_FOUND
[  1143][E][Preferences.cpp:483] getString(): nvs_get_str len fail: canvasServer NOT_FOUND
[  1152][E][Preferences.cpp:483] getString(): nvs_get_str len fail: manualPosix NOT_FOUND

2: wdt trigger, log

E (10916) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (10916) task_wdt:  - IDLE1 (CPU 1)
E (10916) task_wdt: Tasks currently running:
E (10916) task_wdt: CPU 0: IDLE0
E (10916) task_wdt: CPU 1: loopTask
E (10916) task_wdt: Print CPU 0 (current core) backtrace

full log:

Serial port /dev/ttyS6
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting.....
Detecting chip type... ESP32
Running idf_monitor in directory /home/wuguowei/WorkSpace/clockwise
Executing "/home/wuguowei/.espressif/python_env/idf4.4_py3.10_env/bin/python /home/wuguowei/WorkSpace/esp32/esp-idf/tools/idf_monitor.py -p /dev/ttyS6 -b 115200 --toolchain-prefix xtensa-esp32-elf- --target esp32 --revision 0 /home/wuguowei/WorkSpace/clockwise/build/clockwise.elf -m '/home/wuguowei/.espressif/python_env/idf4.4_py3.10_env/bin/python' '/home/wuguowei/WorkSpace/esp32/esp-idf/tools/idf.py' '-b' '115200'"...
--- idf_monitor on /dev/ttyS6 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6652
ho 0 tail 12 room 4
load:0x40078000,len:15052
load:0x40080400,len:3836
0x40080400: _init at ??:?

entry 0x4008069c
I (29) boot: ESP-IDF v4.4.7 2nd stage bootloader
I (29) boot: compile time 19:49:27
I (29) boot: Multicore bootloader
I (32) boot: chip revision: v1.0
I (36) boot.esp32: SPI Speed      : 40MHz
I (40) boot.esp32: SPI Mode       : DIO
I (45) boot.esp32: SPI Flash Size : 2MB
I (49) boot: Enabling RNG early entropy source...
I (55) boot: Partition Table:
I (58) boot: ## Label            Usage          Type ST Offset   Length
I (66) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (73) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (81) boot:  2 factory          factory app      00 00 00010000 00100000
I (88) boot: End of partition table
I (92) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=2b8e4h (178404) map
I (165) esp_image: segment 1: paddr=0003b90c vaddr=3ffb0000 size=03890h ( 14480) load
I (171) esp_image: segment 2: paddr=0003f1a4 vaddr=40080000 size=00e74h (  3700) load
I (173) esp_image: segment 3: paddr=00040020 vaddr=400d0020 size=ac454h (705620) map
I (435) esp_image: segment 4: paddr=000ec47c vaddr=40080e74 size=153cch ( 86988) load
I (482) boot: Loaded app from partition at offset 0x10000
I (482) boot: Disabling RNG early entropy source...
I (493) cpu_start: Multicore app
I (493) cpu_start: Pro cpu up.
I (494) cpu_start: Starting app cpu, entry point is 0x40081378
0x40081378: call_start_cpu1 at /home/wuguowei/WorkSpace/esp32/esp-idf/components/esp_system/port/cpu_start.c:151

I (0) cpu_start: App cpu up.
I (511) cpu_start: Pro cpu start user code
I (511) cpu_start: cpu freq: 160000000
I (512) cpu_start: Application information:
I (516) cpu_start: Project name:     clockwise
I (521) cpu_start: App version:      v1.4.1
I (526) cpu_start: Compile time:     Mar 19 2024 14:44:10
I (532) cpu_start: ELF file SHA256:  7282974ac27cedba...
I (538) cpu_start: ESP-IDF:          v4.4.7
I (543) cpu_start: Min chip rev:     v0.0
I (548) cpu_start: Max chip rev:     v3.99 
I (552) cpu_start: Chip rev:         v1.0
I (557) heap_init: Initializing. RAM available for dynamic allocation:
I (565) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (570) heap_init: At 3FFB8B88 len 00027478 (157 KiB): DRAM
I (577) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (583) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (589) heap_init: At 40096240 len 00009DC0 (39 KiB): IRAM
I (597) spi_flash: detected chip: generic
I (600) spi_flash: flash io: dio
W (604) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
[    22][V][WiFiServer.h:42] WiFiServer(): WiFiServer::WiFiServer(port=80, ...)
I (626) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (2I (25) gpio: GPIO[2]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
[  1060][V][Preferences.cpp:352] getUChar(): nvs_get_u8 fail: swapBlueGreen NOT_FOUND
[  1061][V][Preferences.cpp:352] getUChar(): nvs_get_u8 fail: use24hFormat NOT_FOUND
[  1067][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: displayBright NOT_FOUND
[  1075][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: autoBrightMin NOT_FOUND
[  1084][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: autoBrightMax NOT_FOUND
[  1092][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: ldrPin NOT_FOUND
[  1100][E][Preferences.cpp:483] getString(): nvs_get_str len fail: timeZone NOT_FOUND
[  1109][E][Preferences.cpp:483] getString(): nvs_get_str len fail: wifiSsid NOT_FOUND
[  1117][E][Preferences.cpp:483] getString(): nvs_get_str len fail: wifiPwd NOT_FOUND
[  1126][E][Preferences.cpp:483] getString(): nvs_get_str len fail: ntpServer NOT_FOUND
[  1135][E][Preferences.cpp:483] getString(): nvs_get_str len fail: canvasFile NOT_FOUND
[  1143][E][Preferences.cpp:483] getString(): nvs_get_str len fail: canvasServer NOT_FOUND
[  1152][E][Preferences.cpp:483] getString(): nvs_get_str len fail: manualPosix NOT_FOUND
I (1126) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
[  1171][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:414] begin(): [begin()] Using GPIO 25 for R1_PIN
[  1180][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:415] begin(): [begin()] Using GPIO 26 for G1_PIN
[  1189][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:416] begin(): [begin()] Using GPIO 27 for B1_PIN
[  1198][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:417] begin(): [begin()] Using GPIO 14 for R2_PIN
[  1208][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:418] begin(): [begin()] Using GPIO 12 for G2_PIN
[  1217][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:419] begin(): [begin()] Using GPIO 13 for B2_PIN
[  1226][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:420] begin(): [begin()] Using GPIO 23 for A_PIN
[  1235][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:421] begin(): [begin()] Using GPIO 19 for B_PIN
[  1245][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:422] begin(): [begin()] Using GPIO 5 for C_PIN
[  1254][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:423] begin(): [begin()] Using GPIO 17 for D_PIN
[  1263][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:424] begin(): [begin()] Using GPIO 18 for E_PIN
[  1272][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:425] begin(): [begin()] Using GPIO 4 for LAT_PIN
[  1281][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:426] begin(): [begin()] Using GPIO 15 for OE_PIN
[  1291][I][ESP32-HUB75-MatrixPanel-I2S-DMA.h:427] begin(): [begin()] Using GPIO 16 for CLK_PIN
[  1300][I][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:38] allocateDMAmemory(): [I2S-DMA] Free heap: 303968
[  1310][I][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:39] allocateDMAmemory(): [I2S-DMA] Free SPIRAM: 0
[  1319][I][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:43] allocateDMAmemory(): [I2S-DMA] allocating rowBitStructs with pixel_color_depth_bits of 8
[  1333][I][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:70] allocateDMAmemory(): [I2S-DMA] Allocating 32768 bytes memory for DMA BCM framebuffer(s).
[  1346][I][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:78] allocateDMAmemory(): [I2S-DMA] Minimum visual refresh rate (scan rate from panel top to bottom) requested: 60 Hz
[  1361][W][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:96] allocateDMAmemory(): [I2S-DMA] lsbMsbTransitionBit of 0 gives 28 Hz refresh rate.
[  1374][W][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:96] allocateDMAmemory(): [I2S-DMA] lsbMsbTransitionBit of 1 gives 57 Hz refresh rate.
[  1387][W][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:96] allocateDMAmemory(): [I2S-DMA] lsbMsbTransitionBit of 2 gives 112 Hz refresh rate.
[  1399][W][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:109] allocateDMAmemory(): [I2S-DMA] lsbMsbTransitionBit of 2 used to achieve refresh rate of 60 Hz. Percieved colour depth to the eye may be reduced.
[  1418][I][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:112] allocateDMAmemory(): [I2S-DMA] DMA has pixel_color_depth_bits of 6
[  1429][I][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:126] allocateDMAmemory(): [I2S-DMA] Recalculated number of DMA descriptors per row: 32
[  1442][I][esp32_i2s_parallel_dma.cpp:430] allocate_dma_desc_memory(): [ESP32/S2] Allocating memory for 1024 DMA descriptors.
[  1454][D][esp32_i2s_parallel_dma.cpp:460] allocate_dma_desc_memory(): [ESP32/S2] Allocating 12288 bytes of memory for DMA descriptors.
[  1477][W][esp32_i2s_parallel_dma.cpp:516] create_dma_desc_link(): [ESP32/S2] Creating final DMA descriptor and linking back to 0.
[  1479][I][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:262] configureDMA(): [I2S-DMA] 1024 DMA descriptors linked to buffer data.
[  1491][I][esp32_i2s_parallel_dma.cpp:113] config(): [ESP32/S2] Performing config for ESP32 or ESP32-S2
[  1501][I][esp32_i2s_parallel_dma.cpp:120] init(): [ESP32/S2] Performing DMA bus init() for ESP32 or ESP32-S2
[  1512][D][esp32_i2s_parallel_dma.cpp:202] init(): [ESP32/S2] Requested output clock frequency: 15 Mhz
[  1522][D][esp32_i2s_parallel_dma.cpp:259] init(): [ESP32] i2s pll_d2_clock clkm_div_num is: 2
[  1531][I][esp32_i2s_parallel_dma.cpp:272] init(): [ESP32/S2] Output frequency is 20 Mhz??
[  1541][D][esp32_i2s_parallel_dma.cpp:393] init(): [ESP32-ORIG] init() GPIO and clock configuration set for ESP32
[  1551][I][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:302] configureDMA(): [I2S-DMA] DMA setup completed
I (2548) wifi:wifi driver task: 3ffcfcbc, prio:23, stack:6656, core=0
I (5736) wifi:wifi firmware version: 1fd20f4
I (5737) wifi:wifi certification version: v7.0
I (5737) wifi:config NVS flash: enabled
I (5739) wifi:config nano formating: disabled
I (5743) wifi:Init data frame dynamic rx buffer num: 32
I (5748) wifi:Init static rx mgmt buffer num: 5
I (5752) wifi:Init management short buffer num: 32
I (5757) wifi:Init dynamic tx buffer num: 32
I (5761) wifi:Init static rx buffer size: 1600
I (5765) wifi:Init static rx buffer num: 4
I (5769) wifi:Init dynamic rx buffer num: 32
I (5774) wifi_init: rx ba win: 6
I (5777) wifi_init: tcpip mbox: 32
I (5781) wifi_init: udp mbox: 6
I (5785) wifi_init: tcp mbox: 6
I (5788) wifi_init: tcp tx win: 5760
I (5793) wifi_init: tcp rx win: 5760
I (5797) wifi_init: tcp mss: 1440
I (5801) wifi_init: WiFi IRAM OP enabled
I (5806) wifi_init: WiFi RX IRAM OP enabled
[  2662][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 0 - WIFI_READY
I (5820) phy_init: phy_version 4791,2c4672b,Dec 20 2023,16:06:06
I (5912) wifi:mode : sta (84:cc:a8:7f:24:ac)
I (5913) wifi:enable tsf
[  2765][V][WiFiGeneric.cpp:338] _arduino_event_cb(): STA Started
[  2766][V][Preferences.cpp:352] getUChar(): nvs_get_u8 fail: swapBlueGreen NOT_FOUND
[  2766][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 2 - STA_START
[  2782][V][Preferences.cpp:352] getUChar(): nvs_get_u8 fail: use24hFormat NOT_FOUND
I[  2791][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: displayBright NOT_FOUND
[  2799][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: autoBrightMin NOT_FOUND
[  2808][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: autoBrightMax NOT_FOUND
[  2816][V][Preferences.cpp:400] getUInt(): nvs_get_u32 fail: ldrPin NOT_FOUND
 ([  2824][E][Preferences.cpp:483] getString(): nvs_get_str len fail: timeZone NOT_FOUND
59[  2833][E][Preferences.cpp:483] getString(): nvs_get_str len fail: wifiSsid NOT_FOUND
3[  2842][E][Preferences.cpp:483] getString(): nvs_get_str len fail: wifiPwd NOT_FOUND
[  2850][E][Preferences.cpp:483] getString(): nvs_get_str len fail: ntpServer NOT_FOUND
1[  2859][E][Preferences.cpp:483] getString(): nvs_get_str len fail: canvasFile NOT_FOUND
0;31m[  2868][E][Preferences.cpp:483] getString(): nvs_get_str len fail: canvasServer NOT_FOUND
 [  2877][E][Preferences.cpp:483] getString(): nvs_get_str len fail: manualPosix NOT_FOUND
wifi:Set ps type: 1

E (10916) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (10916) task_wdt:  - IDLE1 (CPU 1)
E (10916) task_wdt: Tasks currently running:
E (10916) task_wdt: CPU 0: IDLE0
E (10916) task_wdt: CPU 1: loopTask
E (10916) task_wdt: Print CPU 0 (current core) backtrace


Backtrace: 0x4010AB6E:0x3FFB0B90 0x40082FD9:0x3FFB0BB0 0x40177023:0x3FFBB9A0 0x400D3C46:0x3FFBB9C0 0x4008B4F1:0x3FFBB9E0 0x4008D18D:0x3FFBBA00
0x4010ab6e: task_wdt_isr at /home/wuguowei/WorkSpace/esp32/esp-idf/components/esp_system/task_wdt.c:183 (discriminator 3)

0x40082fd9: _xt_lowint1 at /home/wuguowei/WorkSpace/esp32/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1118

0x40177023: cpu_ll_waiti at /home/wuguowei/WorkSpace/esp32/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:183
 (inlined by) esp_pm_impl_waiti at /home/wuguowei/WorkSpace/esp32/esp-idf/components/esp_pm/pm_impl.c:853

0x400d3c46: esp_vApplicationIdleHook at /home/wuguowei/WorkSpace/esp32/esp-idf/components/esp_system/freertos_hooks.c:63

0x4008b4f1: prvIdleTask at /home/wuguowei/WorkSpace/esp32/esp-idf/components/freertos/tasks.c:4099 (discriminator 1)

0x4008d18d: vPortTaskWrapper at /home/wuguowei/WorkSpace/esp32/esp-idf/components/freertos/port/xtensa/port.c:142


E (10916) task_wdt: Print CPU 1 backtrace


Backtrace: 0x4008536D:0x3FFB1190 0x40082FD9:0x3FFB11B0 0x4000BFED:0x3FFBE740 0x4008D43E:0x3FFBE750 0x4010516B:0x3FFBE770 0x400D836C:0x3FFBE7A0 0x400ECA5D:0x3FFBE7D0 0x400E8C86:0x3FFBE7F0 0x400DE999:0x3FFBE810 0x400D8005:0x3FFBE830 0x4008D18D:0x3FFBE850
0x4008536d: esp_crosscore_isr at /home/wuguowei/WorkSpace/esp32/esp-idf/components/esp_system/crosscore_int.c:92

0x40082fd9: _xt_lowint1 at /home/wuguowei/WorkSpace/esp32/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1118

0x4008d43e: vPortClearInterruptMaskFromISR at /home/wuguowei/WorkSpace/esp32/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:571
 (inlined by) vPortExitCritical at /home/wuguowei/WorkSpace/esp32/esp-idf/components/freertos/port/xtensa/port.c:332

0x4010516b: uart_get_buffered_data_len at /home/wuguowei/WorkSpace/esp32/esp-idf/components/driver/uart.c:1362 (discriminator 2)

0x400d836c: uartAvailable at /home/wuguowei/WorkSpace/clockwise/components/arduino/cores/esp32/esp32-hal-uart.c:269

0x400eca5d: HardwareSerial::available() at /home/wuguowei/WorkSpace/clockwise/components/arduino/cores/esp32/HardwareSerial.cpp:429

0x400e8c86: ImprovWiFi::handleSerial() at /home/wuguowei/WorkSpace/clockwise/components/Improv-WiFi-Library/src/ImprovWiFiLibrary.cpp:6

0x400de999: WiFiController::handleImprovWiFi() at /home/wuguowei/WorkSpace/clockwise/firmware/lib/cw-commons/WiFiController.h:56
 (inlined by) loop() at /home/wuguowei/WorkSpace/clockwise/main/../firmware/src/main.cpp:109

0x400d8005: loopTask(void*) at /home/wuguowei/WorkSpace/clockwise/components/arduino/cores/esp32/main.cpp:50

0x4008d18d: vPortTaskWrapper at /home/wuguowei/WorkSpace/esp32/esp-idf/components/freertos/port/xtensa/port.c:142



@jnthas
Copy link
Owner

jnthas commented Mar 21, 2024

Hi there! Can I suggest you run using Arduino framework instead of esp-idf? Just to check if it's everything working or you got errors too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants