Arduino-Library icon indicating copy to clipboard operation
Arduino-Library copied to clipboard

NodeMCU: WDT Reset in combination with HX711.h

Open stonerolling opened this issue 6 years ago • 1 comments

I am using a NodeMCU 1.0 ESP-12E with Arduino HX711 to connect load cells. Your library constantly produces WDT reset in combination with the HX711 library. Unfortunately this stops me from using Thinger.io https://github.com/bogde/HX711

The code I used: SDK:2.2.1(cfd48f3)/Core:2.4.2/lwIP:2.0.3(STABLE-2_0_3_RELEASE/glue:arduino-2.4.1-13-g163bb82)/BearSSL:6d1cefc

#include <ThingerESP8266.h>
#include <HX711.h>



#define USERNAME "xx"
#define DEVICE_ID "xx"
#define DEVICE_CREDENTIAL "xx"

#define SSID "xx"
#define SSID_PASSWORD "xx"

ThingerESP8266 thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);

void setup() {
  Serial.begin(74880);
  Serial.setTimeout(2000);
  // Wait for serial to initialize.
  while (!Serial) { }
  pinMode(LED_BUILTIN, OUTPUT);

  thing.add_wifi(SSID, SSID_PASSWORD);

  // digital pin control example (i.e. turning on/off a light, a relay, configuring a parameter, etc)
  thing["led"] << digitalPin(LED_BUILTIN);

  // resource output example (i.e. reading a sensor value)
  thing["millis"] >> outputValue(millis());

  // more details at http://docs.thinger.io/arduino/
}

void loop() {
  thing.handle();
}

The Error:

SDK:2.2.1(cfd48f3)/Core:2.4.2/lwIP:2.0.3(STABLE-2_0_3_RELEASE/glue:arduino-2.4.1-13-g163bb82)/BearSSL:6d1cefc [NETWORK] Starting connection... [NETWORK] Connecting to network wrt_2_4 mode : sta(80:7d:3a:69:30:f2) + softAP(82:7d:3a:69:30:f2) add if0

Soft WDT reset

ctx: cont sp: 3ffffd50 end: 3fffffd0 offset: 01b0

stack>>> 3fffff00: 426f7437 00002179 000001c8 4010020c
3fffff10: 00000000 4bc6a7f0 67ef9db2 00000000
3fffff20: 00000000 00000000 4bc6a7f0 00000000
3fffff30: 3ffefb00 000001dc 40106848 0000671a
3fffff40: 4023be76 3ffef948 00007530 00000003
3fffff50: 4023d043 0000002c 00000038 3ffefa68
3fffff60: 3fff01e4 402046d4 3ffef948 3ffefa68
3fffff70: 00005a9e 00007530 3ffef948 40202b4d
3fffff80: 00000000 3ffef8e0 0000002c 40206a1d
3fffff90: 3fffdad0 00000001 3ffef8bc 402040c5
3fffffa0: 3fffdad0 00000000 3ffef8bc 402041d8
3fffffb0: feefeffe 00000000 3ffefa60 40206bd4
3fffffc0: feefeffe feefeffe 3ffe8624 40100a49
<<<stack<<<

stonerolling avatar Jan 02 '19 15:01 stonerolling

This issues was also reported by somebody else in the community: https://community.thinger.io/t/using-thinger-wifi-together-with-hx711-library-soft-resets-esp8266-nodemcu/520

stonerolling avatar Jan 02 '19 15:01 stonerolling