ESP 32 does not connect

Hi, I'm trying to upload a sketch which commands a sensor PIR and this sends data to my ESP 32 DOIT DEVKIT V1 in order to activate a buzzer. Hovewer, as soon as I press the compile button it doesn't upload since it appears this message below the screen:

"exec: "cmd": executable file not found in %PATH%
Error compilando para la tarjeta DOIT ESP32 DEVKIT V1".

Plenty results that can be useful in "exec: "cmd": executable file not found in %PATH% site:forum.arduino.cc - Google Search

You can add your board in the search to filter further if needed.

There are varieties of ESP32 Boards; please, post a picture of your one. Is it like the below one?

Yes Golam. It is exactly this board. It has 30 pins.

error "exec: "cmd": executable file not found in %PATH% - Using Arduino / Installation & Troubleshooting - Arduino Forum

There is no button named as "compile" except "EN" and "BOOT" buttons which are not required to activate (pressing down and release) to upload sketch.

1. Open IDE and select ESP32 Dev Module.
2. Upload the following sketch to check that the onboard Blue-LED blinks at 1-sec interval.

int LED_BUILTIN = 2; //Onboard Blue-LED is connected with gpio-2

void setup()
{
  pinMode (LED_BUILTIN, OUTPUT);
}

void loop()
{
  digitalWrite(LED_BUILTIN, HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN, LOW);
  delay(1000);
}

3. Post your connecton diagram among Buzzer, PIR, and ESP32.

Maybe OP means one of the buttons in the IDE? But tey are called "verify" and "upload", not "compile".

So nobody knows :wink:

1 Like

"Verify/Compile" and "Upload".

Thank you. That was what I wanted to express and I didn't have the correct words. The "verify" and the "upload" which are not buttons but I should press them, as if they were buttons.

1 Like

Now, you click on them using mouse buttons.

Hi Golam. How are you? I uploaded your sketch on my ESP 32 but the onboard led, the blue one, didn't turn on. At the bottom of the screen there was this message:

"exit status 1
Error compilando para la tarjeta DOIT ESP32 DEVKIT V1."

The message is in Spanish, as I live in a Spanish speaking country. It says " exit status 1. Compilation error for the board DOIT ESP32 DEVKIT V1"
In order to know why the blue onboard led did not turn on with your sketch, I attempted a second test. I went to examples, then basics, then blink and then I uploaded that sketch. This time the uploading was correct, in the sense that there was not any strange message at the buttom of the screen. However, the blue onboard lead again didn't turn on. Could it be damaged the onboard led? Thank you very much for your help.

Connect a 2.2k or close + Red/Green/Blue LED at gpio-4 and then upload the following sketch. Report if the LED blinks. (In my ESP, the LED is blinking.)

int LED_BUILTIN = 4; // connect external LED with gpio-4

void setup()
{
  pinMode (LED_BUILTIN, OUTPUT);
}

void loop()
{
  digitalWrite(LED_BUILTIN, HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN, LOW);
  delay(1000);
}

Ok. I did it but I used the gpio- 23 instead of the gpio 4. Sorry but I cannot see this gpio 4 on the board. Anyway, It didnt turn on the led and again it dropped the same error message, the one I mentioned before.

Please, post your sketch.

Can you locate gpio-4 below in the picture?
es32BoardPic

It doesn't work. It doesn't turn on the external led. I checked everything. It is everything all right, but the led doesn't turn on by using the GPIO 4. I uploaded again the sketch you suggested me to use and I connected the possitive of the external led to GPIO 4. But nothing happens. Here's the code.

int LED_BUILTIN = 4; // connect external LED with gpio-4

void setup()
{
pinMode (LED_BUILTIN, OUTPUT);
}

void loop()
{
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}

Hey Golam! Now it works!. The external led is blinking. I modified the previous sketch you gave me and it works! Instead of writing "Led-builtin" I simply wrote "led". Here's the modification:

int LED = 4; // connect external LED with gpio-4

void setup()
{
pinMode (LED, OUTPUT);
}

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

Thanks for you help.

Good work!

1 Like

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