ESP32 example program wont compile

Hello, I just installed Arduino IDE for Windows 7 and newer (using windows 10). I installed support for the ESP32, selected DOIT ESP32 DEVKIT V1 and selected the ESP32 BLE Arduino EXAMPLE: BLE_write. It compiled the first time but when I went to upload I got an error:
Error compiling for board DOIT ESP32 DEVKIT V1
Can you help me figure out what is going wrong?

When I push, Copy error messages, I get:

Arduino: 1.8.19 (Windows 10), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\e729128\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\e729128\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\e729128\OneDrive - Honeywell\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32doit-devkit-v1:FlashFreq=80,UploadSpeed=921600,DebugLevel=none -vid-pid=10C4_EA60 -ide-version=10819 -build-path C:\Users\e729128\AppData\Local\Temp\arduino_build_744136 -warnings=none -build-cache C:\Users\e729128\AppData\Local\Temp\arduino_cache_950042 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esptool_py.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.3.0 -prefs=runtime.tools.esptool_py-3.3.0.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.3.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.riscv32-esp-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.riscv32-esp-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s2-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s2-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.mkspiffs.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mklittlefs.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -verbose C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\BLE_write.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\e729128\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\e729128\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\e729128\OneDrive - Honeywell\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32doit-devkit-v1:FlashFreq=80,UploadSpeed=921600,DebugLevel=none -vid-pid=10C4_EA60 -ide-version=10819 -build-path C:\Users\e729128\AppData\Local\Temp\arduino_build_744136 -warnings=none -build-cache C:\Users\e729128\AppData\Local\Temp\arduino_cache_950042 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esptool_py.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.3.0 -prefs=runtime.tools.esptool_py-3.3.0.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.3.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.riscv32-esp-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.riscv32-esp-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s2-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s2-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.mkspiffs.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mklittlefs.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -verbose C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\BLE_write.ino

Using board 'esp32doit-devkit-v1' from platform in folder: C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3

Using core 'esp32' from platform in folder: C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3

cmd /c if exist "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\partitions.csv" COPY /y "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\partitions.csv" "C:\Users\e729128\AppData\Local\Temp\arduino_build_744136\partitions.csv"

cmd /c if not exist "C:\Users\e729128\AppData\Local\Temp\arduino_build_744136\partitions.csv" if exist "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\variants\doitESP32devkitV1\partitions.csv" COPY "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\variants\doitESP32devkitV1\partitions.csv" "C:\Users\e729128\AppData\Local\Temp\arduino_build_744136\partitions.csv"

cmd /c if not exist "C:\Users\e729128\AppData\Local\Temp\arduino_build_744136\partitions.csv" COPY "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\tools\partitions\default.csv" "C:\Users\e729128\AppData\Local\Temp\arduino_build_744136\partitions.csv"

cmd /c IF EXIST "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\bootloader.bin" ( COPY /y "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\bootloader.bin" "C:\Users\e729128\AppData\Local\Temp\arduino_build_744136\BLE_write.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\variants\doitESP32devkitV1\bootloader.bin" ( COPY "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\variants\doitESP32devkitV1\bootloader.bin" "C:\Users\e729128\AppData\Local\Temp\arduino_build_744136\BLE_write.ino.bootloader.bin" ) ELSE ( COPY /y "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\tools\sdk\esp32\bin\bootloader_dio_80m.bin" "C:\Users\e729128\AppData\Local\Temp\arduino_build_744136\BLE_write.ino.bootloader.bin" ) )

    1 file(s) copied.

cmd /c if exist "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\build_opt.h" COPY /y "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\build_opt.h" "C:\Users\e729128\AppData\Local\Temp\arduino_build_744136\build_opt.h"

cmd /c if not exist "C:\Users\e729128\AppData\Local\Temp\arduino_build_744136\build_opt.h" type nul > "C:\Users\e729128\AppData\Local\Temp\arduino_build_744136\build_opt.h"

Detecting libraries used...

Error compiling for board DOIT ESP32 DEVKIT V1.

I just went through a hell of a time getting setup for esp32 boards...

  1. some people find using the generic "esp32 dev board" option tends to work better. I'm working with esp32 VROOM chips, but I just select the generic dev board.

  2. there are a lot of options for esp32 boards, partitions, upload freq, ect...make sure you have those set for the board you have.

what esp32 support package did you install? I'm using the expressIf package, which works in arduino IDE & in platformIO.

What board to you actually have?

ESP32-DevKitM-1
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/esp32/user-guide-devkitm-1.html
but the board doesnt have to even be plugged in to use the VERIFY button to compile the program

  1. Do you mean the ESP32 Dev Module selection in Arduino 1.8.19 under tools, board, ESP32 Arduino?
  2. i am sure there are several things you have to do right to get the program to work with the board but since it is an example program AND the fact that it worked for me previously I figured those things were setup correctly.

I have esp32 by Espressif Systems version 2.0.3 installed by following
I found this link: GitHub - espressif/arduino-esp32: Arduino core for the ESP32
which has a link to here https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html
which has the stable release link to paste into Arduino File Preferences, Additional board managers URL

yes, i do. I run esp32 vroom boards, there are closer descriptions to that, but I use "esp32 dev module" works great.

good, just wanted to make sure that was the core you installed, if you have options for esp32, safe to say you installed it correctly. And your assumption that the examples should work straight away, is also sound. I suspect changing the board type as indicated will get you going.

a fair point indeed. Though, settings for how its compiled are in the settings. Why that wouldn't still compile, just for the the wrong board, may be as simple as different pin assignments, I dont know, I'm just speculating.

Try the other board selection & report back. we can work from there.

food for thought: since you're moving to esp32's, its safe to assume you'lle be writing more complex programs. It might be a good time to upgrade your IDE. arduino ide is solid, no question, but its incredibly basic & offers little in the way of file management. For ages I used sloeber, a plugin for eclipse. I still run it & it by far my preference, but I havn't been able to get my esp32 library to run under it. Which leads me to recommend what I am begrudgingly using now: platformio. it runs in visual studio code, has Atom as an editor, which is pretty good. I get frustrated with it when libraries dont link properly(normally they do), but all together its a lot more pleasurable to code in...if for no other reason, auto complete. 2 weeks ago I would not have made this recommendation, but I've gotten through some of the learning curve & its been worth it IMO. There is no financial cost to any of those recommendations.

Try installing the latest IDE and follow the guide at Getting Started with the ESP32 Development Board | Random Nerd Tutorials to set up your board properly before compiling and uploading a sketch.

I dont have the vroom board

I have the latest IDE and am not doing anything wrong. How do I fix this bug?

you are doing something wrong, its not a bug.

you also dont have a " DOIT ESP32 DEVKIT V1" board, the point is that the one I showed you to select, is kind of generic.
Did you even bother trying the option I gave you? what were the results?

I guess that is true, but i dont have either one plugged into the computer during verify/compile and the example should work unchanged out of the box for any board I would think.
I changed to the generic one you suggested and verified the BLE_write example but got a similar error: Error compiling for board ESP32 Dev Module.
This was during the first Verify attempt, so it didnt verify good the first time like the other board.
Copy error messages:
Arduino: 1.8.19 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\e729128\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\e729128\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\e729128\OneDrive - Honeywell\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32:PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none -ide-version=10819 -build-path C:\Users\e729128\AppData\Local\Temp\arduino_build_234783 -warnings=none -build-cache C:\Users\e729128\AppData\Local\Temp\arduino_cache_846862 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s2-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s2-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.esptool_py.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.3.0 -prefs=runtime.tools.esptool_py-3.3.0.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.3.0 -prefs=runtime.tools.mklittlefs.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.riscv32-esp-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.riscv32-esp-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -verbose C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\BLE_write.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\e729128\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\e729128\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\e729128\OneDrive - Honeywell\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32:PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none -ide-version=10819 -build-path C:\Users\e729128\AppData\Local\Temp\arduino_build_234783 -warnings=none -build-cache C:\Users\e729128\AppData\Local\Temp\arduino_cache_846862 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s2-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s2-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s2-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32s3-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.xtensa-esp32-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.esptool_py.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.3.0 -prefs=runtime.tools.esptool_py-3.3.0.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.3.0 -prefs=runtime.tools.mklittlefs.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.riscv32-esp-elf-gcc.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -prefs=runtime.tools.riscv32-esp-elf-gcc-gcc8_4_0-esp-2021r2-patch3.path=C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\gcc8_4_0-esp-2021r2-patch3 -verbose C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\BLE_write.ino

Using board 'esp32' from platform in folder: C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3

Using core 'esp32' from platform in folder: C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3

cmd /c if exist "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\partitions.csv" COPY /y "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\partitions.csv" "C:\Users\e729128\AppData\Local\Temp\arduino_build_234783\partitions.csv"

cmd /c if not exist "C:\Users\e729128\AppData\Local\Temp\arduino_build_234783\partitions.csv" if exist "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\variants\esp32\partitions.csv" COPY "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\variants\esp32\partitions.csv" "C:\Users\e729128\AppData\Local\Temp\arduino_build_234783\partitions.csv"

cmd /c if not exist "C:\Users\e729128\AppData\Local\Temp\arduino_build_234783\partitions.csv" COPY "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\tools\partitions\default.csv" "C:\Users\e729128\AppData\Local\Temp\arduino_build_234783\partitions.csv"

cmd /c IF EXIST "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\bootloader.bin" ( COPY /y "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\bootloader.bin" "C:\Users\e729128\AppData\Local\Temp\arduino_build_234783\BLE_write.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\variants\esp32\bootloader.bin" ( COPY "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\variants\esp32\bootloader.bin" "C:\Users\e729128\AppData\Local\Temp\arduino_build_234783\BLE_write.ino.bootloader.bin" ) ELSE ( COPY /y "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\tools\sdk\esp32\bin\bootloader_qio_80m.bin" "C:\Users\e729128\AppData\Local\Temp\arduino_build_234783\BLE_write.ino.bootloader.bin" ) )

    1 file(s) copied.

cmd /c if exist "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\build_opt.h" COPY /y "C:\Users\e729128\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\BLE\examples\BLE_write\build_opt.h" "C:\Users\e729128\AppData\Local\Temp\arduino_build_234783\build_opt.h"

cmd /c if not exist "C:\Users\e729128\AppData\Local\Temp\arduino_build_234783\build_opt.h" type nul > "C:\Users\e729128\AppData\Local\Temp\arduino_build_234783\build_opt.h"

Detecting libraries used...

Error compiling for board ESP32 Dev Module.

damn, I was hoping that'd work for ya. But you are right, that the board shouldn't matter. I just ran the sketch you're trying to compile, it works fine. Which leads me to think your ide/ compiler is corrupt.

Have you tried uninstalling & reinstalling arduino IDE?

if you have, with no improvement. I would suggest trying to get PIO working. You might also go back & verify that a standard arduino board still works.

scratch that, I think I found your problem. this screen shot came from the page you posted & used to install:

I went back & read your original post, where you say you are using win7. So you will need to roll back to esp32 v1.0.6. Not a bad idea to verify python is installed as well.

or just upgrade to a modern OS, win7 (as much as I liked it better than 10) is no longer supported & as a result, no longer a secure OS.

@cwillis77 this Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials is the guide for setting up ESP32 board.

Note that the version of the package core you install (see image below) is important. Depending on the type of ESP32 board you have, you might try different versions of the package core to find one that works for your board. So I would suggest you take you time to try out the package core versions and make sure you select the right board via the board manager afterwards before compilling/uploading a sketch.

he needs to rollback, but not because of the board, because of his OS as I indicated in 13,

Yes, I followed the same steps as shown in the guide: Installing ESP32 in Arduino IDE (Windows, Mac OS X, Linux) | Random Nerd Tutorials

Apologies for the misunderstanding about the OS, I have 64bit Windows 10, what I meant was that when I went to Arduino software download, I clicked on the link that said Windows Win 7 and newer (see image below)

I tried the esp32 2.0.3, 2.0.2, 2.0.1, and 1.0.6 (I made sure to uninstall the previously installed version before installing the earlier version each time) but no luck.

Also I did uninstall and reinstall twice and even installed on a different computer and got the same problem.

What is odd is that it worked the first time. I had downloaded Visual Studio and got the blink and hello world to work and was suggested the Arduino example for BLE so I followed the steps, compiled and downloaded the BLE_write onto my demo board and could see it on my phone and got its HELLO message and could write a text back to it that I saw on the serial monitor.
Then something happened and it started giving me this error.
Around the same time (not sure if it is related at all) but my Visual Studio examples stopped working and to fix them I had to manually go into configuration and select the box for "Run FreeRTOS only on first core" which fixed those.

oh, also, I have python 3.10

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