-->
Page 1 of 2

Issues with single IDE 1.8.5 and both esp8266 and esp32

PostPosted: Sat Jun 16, 2018 6:37 pm
by picstart
I can compile and run successfully esp32 boards and I can compile code for esp8266 boards but they don't run they freeze and wdt timeout when trying to connect to WiFi. Can both cores esp32 and esp8266 exist and be compatible in a single IDE?

Re: Issues with single IDE 1.8.5 and both esp8266 and esp32

PostPosted: Sat Jun 16, 2018 8:36 pm
by QuickFix
Don't know for certain, but they should.
Only thing I can be certain of is that the only way to get a guaranteed watchdog time-out is by not giving the watchdog time to breathe (using yield or delay), so it will choke. :idea:

Re: Issues with single IDE 1.8.5 and both esp8266 and esp32

PostPosted: Sun Jun 17, 2018 6:14 am
by picstart
I'm unsure it is only a wdt issue since if I compile the same code in an Arduino IDE without the Esp32 core installed the esp8266 will run just fine. Also esp8266 boards will run in the dual Esp32 esp8266 environment as long as they don't try to access wifi.
Below is a basic snippet of the code the esp8266 bombs at WiFi.begin

#include <WiFi.h>

char* ssid = "xxxx";
const char* password = "xxx";
void setup()
{
Serial.begin(115200);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected.");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}

Re: Issues with single IDE 1.8.5 and both esp8266 and esp32

PostPosted: Fri Jun 22, 2018 3:12 am
by btidey
I am successfully using a single IDE with both ESP32 and ESP8266 support added, and I don't see any issues.

How did you install them together?

I used the 'portable' method as described viewtopic.php?f=26&t=14222