6
votes
Accepted
Need help with parsing NWS JSON weather alerts causing reset on ESP8266
By default, the size of the stack is limited to 4KB on ESP8266, so you cannot store an 8KB document there.
To fix this issue, replace the StaticJsonDocument with a DynamicJsonDocument to move the ...
5
votes
Accepted
Save Watchdog ISR Return Address in EEPROM
GCC has a handy function __builtin_return_address(depth) which should do what you want. To get the return address of the current function (which should be the same whether it's a normal function or ...
4
votes
Accepted
How do I escape a boot loop?
Start holding the reset button. This is to prevent the Arduino from entering the boot loop.
Unplug the Arduino and plug it back in.
Open a new sketch. Remove all of the code and replace it with int ...
3
votes
Arduino not rebooting with watchdog enabled
You can choose to either reset the processor or execute an interrupt routine. Example code:
#include <avr/wdt.h>
// watchdog intervals
// sleep bit patterns for WDTCSR
enum
{
WDT_16_MS = ...
2
votes
ESP12E Soft WDT reset stack trace leads to libraries
First, take out the wdt.feed all that does is delay the real problem and/or shift it somewhere else. As a rule of thumb, if you even THINK you have to use / touch / play with / cancel the WDT, your ...
2
votes
AVR software reset without watchdog
The logic of you applications is wrong. You set the needRecover at the beginning of main, but test it in your infinite while (1) loop. The needRecover value will not change in the loop.
Do your ...
2
votes
AVR software reset without watchdog
The reset is basically jumping to the reset vector address 0x0000 (if you don't have the bootloader, or you don't want to start it).
There is also the MCUSR register, indicating which reset source ...
2
votes
wdt reset cause:4, boot mode:(3,6)
You're calling delay() in the onWsEvent() callback. The ESPAsyncWebServer documentation specifically says not to do that in the 'Important things to remember' section:
You can not use yield or delay ...
2
votes
WDT ISR not called when SPI ST7789 module initiated
You can't use the LED on pin 13 on Uno, Nano or Nano Every, if you use SPI . It is the clock pin of the SPI.
The init function of the display initializes SPI which dedicates the pin to SPI peripheral ...
2
votes
Attiny85 Watchdog fires only once
The line below lacks parens () to make it a function call; as it stands, it's not actually calling WDT_on.
WDT_on; //start watchdog again
should be:
WDT_on(); //...
2
votes
Arduino Reset via Software (every day)
You can use the watchdog timer, but you have to change the way you measure the elapsed time. Try this code:
#include <avr/wdt.h>
unsigned long myTime; // Millis() function time value
unsigned ...
2
votes
Need help with parsing NWS JSON weather alerts causing reset on ESP8266
There is a good clue in the first line of your reported error:
21:13:07.521 -> wdt reset
The ESP-8266 Watchdog Timer (WDT) will reset the device if it has not been correctly 'fed' for a period of ...
2
votes
I'm getting watchdog timer resets in NodeMCU. How can I permanently disable or stop that?
here my way to find the bug first
1.comment out the watchdog from the code.
2.debug the code flow and find it get struck. Debugging in the sense put "Serial.print()" in between your code where you ...
1
vote
Accepted
Why is the watchdog biting to quickly?
In the WDTZero library the long watchdog times are achieved by restarting the watchdog timer in watchdog interrupt until the required time is reached.
This doesn't work if the MCU sleeps.
1
vote
Help with Arduino sleep and watchdog timer interrupt
Try changing this:
void setupWDT() {
cli();
WDTCSR |= (1 << WDCE);
WDTCSR &= ~(1 << WDE);
WDTCSR |= (1 << WDCE) | (1 << WDIE) | (1 << WDP3) | (1 << WDP0)...
1
vote
Arduino Reset via Software (every day)
You can do an almost immediate full reset with watchdog by activating it 'on place'.
wdt_enable(WDTO_15MS); // resets the MCU after 15 milliseconds
while (true);
You can use millis() for timing the ...
1
vote
ESP12E Soft WDT reset stack trace leads to libraries
i had look like this problem before.
for me , when i much used of " Serial.print " this RST fault occur for me..
so i use of a function:
void Serial_Show() {
Serial.println();
}
maybe your ...
1
vote
Accepted
esp32s: error: 'WDT_TIMEOUT' was not declared in this scope
There is no such macro in the ESP32 core. That parameter is just the number of seconds before a timeout occurs. Just pick a reasonable value. 5 seconds seems to be a commonly used (and appears to be ...
1
vote
Watchdog timer/deep sleep loop for Atmega 328 Pro Mini 5v 16 mhz
I don't know if this is the best solution, but I found a workaround. In the ISR(WDT_vect) function I added a while statement where I added a boolean variable set to true when running the basic program,...
1
vote
AsyncWebServer giving wdt reset
The following recommendations, as you aren't providing enough relevant info:
Install ESP-exception decoder and analyse your backtrace - Post it here so we can see in detail what caused the wdt
...
1
vote
Task watchdog gets triggered during Bluetooth initialization
SerialBT.begin("ESP32test") is hanging, and because ESP32 doesn't deal well with code that hangs, so it complains about it.
ESP32 runs a Real-Time OS (FreeRTOS).
The fact that it is a real-...
1
vote
Accepted
Low power error with serial connection
It seems, that the Sim800 module is drawing too much current, when you start it again. The voltage drops and the Arduino/Sim800 stops working.
This datasheet of the Sim800 states, that it can draw up ...
1
vote
RC-oscillator calibration in real time
We've been using the WDT delta as a temperature sensing method:
https://thecavepearlproject.org/2019/02/25/no-parts-temperature-measurement-with-arduino-pro-mini-to-0-005c-or-better/
Point being ...
1
vote
RC-oscillator calibration in real time
Your description is pretty detailed but you've missed to tell, which device you are talking about.
I assume you are talking about the ATmega 328P in an Arduino Uno.
AFAIK you can only calibrate the ...
1
vote
I'm getting watchdog timer resets in NodeMCU. How can I permanently disable or stop that?
After long time I have seen this question and thought of answering as I found the issue at that time itself, But not posted here.
After debugging for long time, I got to know that there is a string i ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
watchdog × 34esp8266 × 9
reset × 6
arduino-uno × 5
esp32 × 5
atmega328 × 5
interrupt × 4
nodemcu × 4
arduino-ide × 3
sleep × 3
power × 2
wifi × 2
timers × 2
bootloader × 2
avr × 2
web-server × 2
arduino-nano × 1
led × 1
bluetooth × 1
library × 1
spi × 1
c × 1
attiny × 1
nrf24l01+ × 1
hardware × 1