Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By overcool
#55751 Hello,

I am experiencing crashes when i use PinMode() on arduino IDE.

Code: Select allvoid setup() {
  Serial.begin(115200);
  Serial.println("start");
  pinMode(2, INPUT);
  Serial.println("1");
  pinMode(13, INPUT);
  Serial.println("2");
  pinMode(8, OUTPUT);
  Serial.println("3");
  pinMode(12, OUTPUT);
  Serial.println("4");
}

void loop() {
  delay(1000);
}


start
1
2

ets Jan 8 2013,rst cause:4, boot mode:(1,6)

wdt reset



As you can see the Wemos crash after the second input. Seem to happen everytime i setup a OUTPUT.

Another exemple with input only


Code: Select allvoid setup() {
  Serial.begin(115200);
  Serial.println("start");
  pinMode(2, INPUT);
  Serial.println("1");
  pinMode(13, INPUT);
  Serial.println("2");
  pinMode(8, INPUT);
  Serial.println("3");
  pinMode(12, INPUT);
  Serial.println("4");
  pinMode(14, INPUT);
  Serial.println("5");
}

void loop() {
  delay(1);
}


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

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld
ástart
1
2
3
4



Here the watchdog reset happen before the last input. Tried with a second D1 and same thing happen.

Anyone can help on this ?

Thank you.
User avatar
By icdusw
#55788 Hi
i dont know what D1 board is

anyway i have a ESP8266 ESP-12E board and i experienced same issue with pinMode for pins 8,9,11,7
=> wdt reset if any of these pins is in OUTPUT mode

board works OK when i set pins 0,1,2,3,4,5,12,13,14,15,16 as outputs

i tried with external 3.3 supply ==> same issue ie wdt resets if i put any of the pin 8,9,11,7 in OUTPUT mode
very strange.....

i also tried on another ESP8266 ESP-12E board => same behaviour