-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
wdt reset at use pinMode+analogWrite #4688
Comments
@bstsoftorg please edit your issue and fix the sketch. The C in MCVE is for Complete. |
Everything is standard FS Browser and replace a single procedure. Here's the updated sketch for you, only to sense no the same error: wdt reset |
analogwrite is currently bugged, cf issue 4321 #4321 the workaround described there is working |
` /void loop(void){ uint32 qqq = 0; void loop() { wdt reset This is not a workaround since all ports are used by the system and are not free. |
you misunderstand the workaround. Choose a GPIO port that you don't use anywhere in your scketch and put in the setup: pinMode(your pin you don't use, OUTPUT); then never use that port in you sketch (15 should be perfect for that) |
I understood described idea but all ports from 0 PL 17 are occupied!!! pinMode(255, OUTPUT);
analogWrite(255, 0);
analogWrite(255, 10);
}
/*void loop(void){
server.handleClient();
}*/
uint32 qqq = 0;
void loop() {
server.handleClient();
Serial.print(F("*1*="));
Serial.print(qqq);
//if (qqq == 0)
pinMode(15, OUTPUT);
analogWrite(15, qqq);
Serial.println(F("*3*"));
qqq++;
} |
@bstsoftorg there have been several fixes merged since this was reported. Is this still valid in 2.4.2? In latest git (aka latest master branch)? |
Closing due to lack of feedback and age. |
Hello, I was getting the same wdt reset error while trying to use pinMode with digitalWrite() function. Also, make sure to select "Wemos D1 R1" in Tools > Boards so that Dx constants will match |
@ateeb327: |
Hi all, I faced this problem recently. |
Basic Infos
Platform
Settings in IDE
Problem Description
I tried to switch to 2.4.1 and found a strange reboot. There are no such problems with version 2.3.0-rc2.
If in 2.4.1 to perform before pinMode analogWrite no matter what speed, this is a "wdt reset". This problem is manifested when you call to pinMode+analogWrite times per second and the day of these reboots was to 20. But it's tests when using 1 port, if the ports will be greater, the stability at all. Also, tests have shown that very frequent falls occur during rapid circulation. See log.
MCVE Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: