ESP32 not connecting

Hello,

I am going crazy trying to get a blink code working on these esp32s. When I try to use the Arduino ide I cannot even get a simple blink program to compile.

I have put the link for the board manager in under the additional board manager section,
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
I have also added the esp32 through the board manager under tools.
I am positive I have a data cable to (checked)
I tried both as a (esp32 devkit1 & as an esp32 wroover module)
I have searched everywhere for an answer

When I click compile I get the following message

collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board ESP32 Wrover Module.

My code is super simple

void setup() {
// Set pin mode
pinMode(2,OUTPUT);
Serial.begin(115200);
}
void loop() {
delay(1000);
digitalWrite(2,HIGH);// HIGH = blue led on
Serial.println("HIGH");

delay(1000);
digitalWrite(2,LOW);// LOW = blue led off
Serial.println("LOW");
}

The online editor compiles the code, but through neither method am I able to have the port the board is connected to to show. The device doesn't even show in the port manager of windows

The product is below if that helps

Teyleten Robot ESP32S ESP32 ESP-WROOM-32 Development Board 2.4GHz Dual-Core WiFi +Bluetooth 2 Function Microcontroller for Arduino (ESP32 30P, 3PCS)

1 Like

I use "ESP32 Dev Module".

same thing, it won't compile

collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board ESP32 Dev Module.

Sorry
It compiles OK for me (that way), so it's not the sketch.

In 'Preferences' I'm set up this way --

http://arduino.esp8266.com/stable/package_esp8266com_index.json
https://dl.espressif.com/dl/package_esp32_index.json

When I plug in the arduino port 7 shows up, but when I plug in these esp 32 boards it only gives me the options for port 3 and 4. Is that maybe something?

I suppose you are selecting com4 for the ESP32?

I'VE FOUND THE AWNSER
For some reason installing the new IDE version solved the compilation errors

THE PORT NOT SHOWING
This was due to missing drivers......Ahhh this took so long to figure out I am going to link the article that I found the answer in. It was a problem of missing drivers: CP210x USB to UART Bridge VCP Drivers

(Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials)

Thank you all for your help tho

"When I try to use the Arduino ide I cannot even get a simple blink program to compile."

Wait a minute -- how would not having a driver make it so a sketch wouldn't Compile?

Thank you this solved my port issue with esp32s as well.

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