hatlabs / SH-ESP32-nmea2000-gateway

An Actisense NGT-1 compatible NMEA 2000 USB gateway for the SH-ESP32
Apache License 2.0
29 stars 9 forks source link

Error: Task watchdog got triggered #10

Closed johannbarbie closed 5 months ago

johannbarbie commented 5 months ago

I noticed this output on the serial console every few seconds. I only built and uploaded this project on a Sailorhat revision 1.00+u.1 without changes.

E (44282) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (44282) task_wdt:  - loopTask (CPU 1)
E (44282) task_wdt: Tasks currently running:
E (44282) task_wdt: CPU 0: IDLE
E (44282) task_wdt: CPU 1: loopTask
E (44282) task_wdt: Aborting.

abort() was called at PC 0x400de401 on core 0

Backtrace:0x400833d9:0x3ffbe79c |<-CORRUPTED

  #0  0x400833d9:0x3ffbe79c in panic_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/panic.c:402

ELF file SHA256: 0000000000000000

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x17 (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:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
mairas commented 5 months ago

Could you please provide some more details on your setup. Did you have the device connected to an NMEA 2000 network? And when did you download/clone the code? Older versions of this software rebooted themselves in case of a network failure. That behavior has been changed four months ago.

johannbarbie commented 5 months ago
johannbarbie commented 5 months ago

I guess I didn't observe it long enough, now with n2k connected, I also see restarts

mairas commented 5 months ago

Ohh, thank you for the heads-up. That needs to be fixed.

johannbarbie commented 5 months ago

I've used a different desktop, flashed the chip again, and can NOT reproduce the issue. the codes runs reliably. 🤷