Skip to content

WDT Error and following automatic Reset #23

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

Closed
rudydevolder opened this issue Aug 11, 2016 · 3 comments
Closed

WDT Error and following automatic Reset #23

rudydevolder opened this issue Aug 11, 2016 · 3 comments

Comments

@rudydevolder
Copy link

rudydevolder commented Aug 11, 2016

  • Arduino board: Feather Huzzah
  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.6.10
  • List the steps to reproduce the problem:
    Just running the standard steppertest.ino example with more steps in one run

I found the solution already see: [https://github.com/esp8266/Arduino/issues/2377 ]
By adding in the library-code the delay(0) command.:
*

  while (steps--) {
    //Serial.println("step!"); Serial.println(uspers);
    ret = onestep(dir, style);
    delayMicroseconds(uspers);
    //Rudy De Volder: to solve WDT problem with the ESP8266 simply add the following line:
    delay(0);
  }
@karelv
Copy link

karelv commented Dec 5, 2016

A similar issue on my Feather Huzzah / motor shield is present. I hope your patch fits also my HW!

According to:
https://github.com/esp8266/Arduino/blob/master/doc/reference.md#timing-and-delays
you might also consider to replace the

delay (0);

by

yield();

I will try later today... and let you know.

@ladyada
Copy link
Member

ladyada commented Dec 5, 2016

ok added a yield, please tr it!

a315ff7

@karelv
Copy link

karelv commented Dec 5, 2016

I checked both delay (0); and yield (); ==> both are working for me.
Thanks for adding the yield function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants