wdt reset at startup

NIXIE_123
Posts: 32
Joined: Fri Aug 02, 2019 9:51 am

wdt reset at startup

Postby NIXIE_123 » Sat Sep 04, 2021 11:24 am

Hi

Please help me to seek where the problem is. It mostly happens when the logging is ON.
When I disconnect the uart the code works for months!
It happens when esp connects to wifi
Attachments
error2.PNG
error2.PNG (47.97 KiB) Viewed 3175 times

username
Posts: 536
Joined: Thu May 03, 2018 1:18 pm

Re: wdt reset at startup

Postby username » Mon Sep 06, 2021 2:10 am

odd are your starving the CPU. In other words you probably either need a delay somewhere, or some piece of your code is taking to long to complete. Start commenting out lines of your code one by one until the issue goes away, then you will know what line is causing the problem.

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: wdt reset at startup

Postby ESP_Sprite » Mon Sep 06, 2021 2:27 am

I doubt it's a CPU starving issue... that would usually not lead to a reset in the panic printchar handler.

NIXIE_123, do you have logging from before the bit that you just posted? As in, more of the ESP32 log leading up to the yellow text?

NIXIE_123
Posts: 32
Joined: Fri Aug 02, 2019 9:51 am

Re: wdt reset at startup

Postby NIXIE_123 » Mon Sep 06, 2021 8:08 am

No, I dont have more information in logging. When It happens, the esp restarts and runs in low level logging

It works when;

-I connect logging and comment out section from esp_wifi_start() to esp_wifi_stop()
-I disconnect logging. The program works fine for days and nothing wrong happens, it connects to wifi and disconnects every hour

When it breaks it needs couple of restarts with disconnected logging to repair. Some times it does not repair and i have to wait longer with disconnected 3V3

NIXIE_123
Posts: 32
Joined: Fri Aug 02, 2019 9:51 am

Re: wdt reset at startup

Postby NIXIE_123 » Mon Sep 06, 2021 11:42 am

i have this:

It says MAC address was invalid. I was flashing .bin from 0 to 0x400000
Attachments
error.png
error.png (13.08 KiB) Viewed 3064 times

ESP_Sprite
Posts: 9759
Joined: Thu Nov 26, 2015 4:08 am

Re: wdt reset at startup

Postby ESP_Sprite » Tue Sep 07, 2021 1:01 am

Hmm... that screendump doesn't really make much sense. The yellow lines are a decoded backtrace, the esp-idf monitor generates those when it finds things it thinks are valid memory addresses in the serial output. However, there's no serial output preceeding those lines that have any serial addresses in them. Also, the timestamp indicates the thing has been running for a long while (17 hours), while the stack trace points at startup code, something that should have run its course the first second.

Who is online

Users browsing this forum: No registered users and 133 guests