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
wdt reset at startup
wdt reset at startup
- Attachments
-
- error2.PNG (47.97 KiB) Viewed 2924 times
Re: wdt reset at startup
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.
-
- Posts: 9582
- Joined: Thu Nov 26, 2015 4:08 am
Re: wdt reset at startup
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, 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?
Re: wdt reset at startup
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
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
Re: wdt reset at startup
i have this:
It says MAC address was invalid. I was flashing .bin from 0 to 0x400000
It says MAC address was invalid. I was flashing .bin from 0 to 0x400000
- Attachments
-
- error.png (13.08 KiB) Viewed 2813 times
-
- Posts: 9582
- Joined: Thu Nov 26, 2015 4:08 am
Re: wdt reset at startup
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 174 guests