Skip to content
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 with PWM_USE_NMI 1 #25

Open
ge0rg opened this issue May 13, 2018 · 2 comments
Open

wdt reset with PWM_USE_NMI 1 #25

ge0rg opened this issue May 13, 2018 · 2 comments

Comments

@ge0rg
Copy link

ge0rg commented May 13, 2018

I'm not using the timer directly, but I have some libraries that probably depend on it (ESP8266HTTPUpdateServer, WifiManager, ...). Therefore I had to enable this in pwm.c for the library to work:

#define PWM_USE_NMI 1

The PWM works very well, but if I enable color cycling in my loop(), where I change the PWM settings according to a HSV color table in each cycle, I get a wdt reset after some time (tens of seconds to some minutes):

 ets Jan  8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
va3a36545
~ld

<new boot here>
@rvt
Copy link

rvt commented Mar 21, 2020

Same here. Just for reference. I am using WifiManager and SPI. It seems to happen with changing the PWM when the duty is set higher + high frequency.

@taseraul
Copy link

taseraul commented Jul 1, 2020

I use 3 channels on an esp-01 pins GPIO0 ,2 and 3 for a RGB strip, set-up with a 255 step period (~19kHz) it crashes consistently with the duty cicle 0,17,255 (of max 255,255,255) when using NMI1.

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