ESP 32 Cant get the board to work - Error compiling for board DOIT ESP32 DEVKIT V1

Hello,

This is my first time using an ESP32 with Arduino IDE, and I keep getting the following error; Error compiling for board DOIT ESP32 DEVKIT V1.

Steps I've done so far;

The first time I tried it, it compiled correctly, started uploading until it said connecting, I pressed EN, but it timed out. Since then it just gives this error when I try to compile or upload. Tried disconnecting and reconnecting the board, and restarting the IDE.

When I restart the IDDE I can compile correctly, but when I then click upload I get Error compiling for board DOIT ESP32 DEVKIT V1.

What am I doing wrong?

Thanks
Chris

Example code used;

/*
* [https://circuits4you.com](https://circuits4you.com/)
* ESP32 LED Blink Example
* Board ESP23 DEVKIT V1
*
* ON Board LED GPIO 2
*/

#define LED 2

void setup() {
// Set pin mode
pinMode(LED,OUTPUT);
}

void loop() {
delay(500);
digitalWrite(LED,HIGH);
delay(500);
digitalWrite(LED,LOW);
}

Hi @chrisingham.

There is probably more to the error than that. I'm going to ask you to post some additional information that might help us to identify the problem.

Please do this:

  1. When you encounter an error, you'll see a button on the right side of the orange bar in the Arduino IDE: Copy error messages. Click that button.
  2. Open a forum reply here by clicking the Reply button.
  3. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  4. Press Ctrl+V.
    This will paste the compilation output into the code block.
  5. Move the cursor outside of the code block markup before you add any additional text to your reply.
  6. Click the Reply button to post the output.
1 Like

Strange, I just tried to replicate the issue, and today it uploads fine! Thanks :slight_smile:

I'm glad it is working. Perhaps not so satisfying as identifying the problem before solving it, but I guess we will consider it a win either way. Enjoy!

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