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
Hitting WDT resets with ESP8266 #2
Comments
I tried to move 3 float arrays of 768 elements from their respective functions : to the front of the file and declared them static. It moves them from stack to heap. After that the demo works on ESP8266.. |
I am in the same boat. @caternuson can you test this code:
@JVaassen is this your idea? |
@sorryusernameisalreadytaken Which library are you using? These methods are not in this one: mlx.getFrameData(mlx90640To);
mlx.interpolateOutliers(mlx90640To); |
No change needed to sketch. The fix is to the library code. |
Discovered while attempting to troubleshoot this thread:
https://forums.adafruit.com/viewtopic.php?f=19&t=185356
Seems like some kind of memory clobbering issue preventing the Arduino
loop()
from successfully looping and eventually hitting a WDT reset. Here is a simple sketch to demonstrate. Note it doesn't do anything other than callbegin()
on the MLX90640 instance.Running that sketch on a Feather ESP8266 results in:
Simply comment out the call to
begin()
, and sketch runs as expected.The text was updated successfully, but these errors were encountered: