ESP32 Dev Module - error compiling

I am trying to compile and upload ESP32_Audio_Dev_blink.ino sketch from step 4 of this month's Hackerbox Instructables. I am using the ESP32 Dev Module board and I have confirmed I am using the correct port.

​I am getting the following error:

c:/users/xxxxxx/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find crt1-sim.o: No such file or directory
c:/users/xxxxxx/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find _vectors.o: No such file or directory
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board ESP32 Dev Module.

​I have made sure the boards and libraries are up to date​ in the Arduino IDE, and even removed them, along with the Boards Manager URL in Preferences, and added them back in with no luck. I also restarted the computer after doing so just for good measure. I have not modified the blink sketch in any way - here is the code I am trying to upload:

​// Blink two red LEDs for ESP32 Audio Development Platform
// (alternates between each LED on and off every second)
void setup() {
pinMode(19, OUTPUT);
pinMode(22, OUTPUT);
}
void loop() {
digitalWrite(19, HIGH);
digitalWrite(22, LOW);
delay(1000);
digitalWrite(19, LOW);
digitalWrite(22, HIGH);
delay(1000);
}

Problem Solved - It seems that I somehow ended up with two separate ESP32 packages on my computer. I deleted the ESP32 folder from C:\Users\xxxxxx\AppData\Local\Arduino15\packages and reinstalled the ESP32 board through the Arduino IDE, and that worked.

:+1:

BTW if you have not looked here, it’s a great place for ESP32:

1 Like

Thanks, Larry! I will check that out for sure...

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