Exit Status 2 when connecting ESP8266 to WiFi with duinotech XC4411

New to Arduino... Trying to get the ESP8266 to join my WiFi. I'd really appreciate some help :slight_smile:

Running duinotech UNO with WiFi & have pushed firmware to Uno and esp8266 chips

With Board set to Generic ESP8266 and Port set (port confirmed working with Uno).

I get this error:
. Variables and constants in RAM (global, static), used 28196 / 80192 bytes (35%)
║ SEGMENT BYTES DESCRIPTION
╠══ DATA 1504 initialized variables
╠══ RODATA 980 constants
╚══ BSS 25712 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 59735 / 65536 bytes (91%)
║ SEGMENT BYTES DESCRIPTION
╠══ ICACHE 32768 reserved space for flash instruction cache
╚══ IRAM 26967 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 238416 / 1048576 bytes (22%)
║ SEGMENT BYTES DESCRIPTION
╚══ IROM 238416 code in flash
esptool.py v3.0
Serial port /dev/cu.usbserial-8330
Failed uploading: uploading error: exit status 2

I have dip switches 5,6,7 = ON

This is the Code I am running:

#include <ESP8266WiFi.h> // Include the Wi-Fi library

const char* ssid = "*****"; // The SSID (name) of the Wi-Fi network you want to connect to
const char* password = "*******";

void setup() {

WiFi.mode(WIFI_STA);
WiFi.begin(ssid,password);

Serial.begin(115200);

while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to ");
Serial.print(ssid);
Serial.print("IP Address: ");
Serial.print(WiFi.localIP());
}

void loop() {

}

reset the esp8266 before upload

Thanks Juraj. I've pressed this button during Upload, however the "exit status 2" error comes immediately at the end of the compile. I understand this is the point at which the button needs to be pressed - please correct if I am mistaken.

Now I've encountered a new problem where the Port does to appear in the IDE when the serial cable is connected.. Grrr

turn on upload verbose mode in IDE preferences.

is there a reset button for the esp8266 on that board?

Was this ever solved, I have same issue, empty script and just trying to compile not even upload.

No - I've marked as poorly designed/supported and moved on to alternative technology.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.