Getting error in uploading first code to ESP32

i bought esp32 board from
esp 32 Robu.in
and trying my first simple sketch

void setup() {
Serial.begin(9600);
}

void loop() {
Serial.println("test esp32");
delay(1000);
}

please note...
for this i download Arduino 1.8.19 and run it from this folder. as below

i select board as this

i also installed board as this.

and got error

Arduino: 1.8.19 (Windows 7), Board: "ESP32-WROOM-DA Module, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled"





















D:\Software\Arduino Kit\All     Setup  s\arduino-1.8.19\arduino-builder -dump-prefs -logger=machine -hardware D:\Software\Arduino Kit\All     Setup  s\arduino-1.8.19\hardware -hardware C:\Users\acer\AppData\Local\Arduino15\packages -tools D:\Software\Arduino Kit\All     Setup  s\arduino-1.8.19\tools-builder -tools D:\Software\Arduino Kit\All     Setup  s\arduino-1.8.19\hardware\tools\avr -tools C:\Users\acer\AppData\Local\Arduino15\packages -built-in-libraries D:\Software\Arduino Kit\All     Setup  s\arduino-1.8.19\libraries -libraries C:\Users\acer\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32da:PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none -vid-pid=10C4_EA60 -ide-version=10819 -build-path C:\Users\acer\AppData\Local\Temp\arduino_build_678991 -warnings=none -build-cache C:\Users\acer\AppData\Local\Temp\arduino_cache_869405 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esp32-arduino-libs.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef -prefs=runtime.tools.esp32-arduino-libs-idf-release_v5.1-bd2b9390ef.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef -prefs=runtime.tools.riscv32-esp-elf-gdb.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gdb\12.1_20231023 -prefs=runtime.tools.riscv32-esp-elf-gdb-12.1_20231023.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gdb\12.1_20231023 -prefs=runtime.tools.esp-xs2.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-xs2\2302 -prefs=runtime.tools.esp-xs2-2302.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-xs2\2302 -prefs=runtime.tools.dfu-util.path=C:\Users\acer\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.11.0-arduino5 -prefs=runtime.tools.dfu-util-0.11.0-arduino5.path=C:\Users\acer\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.11.0-arduino5 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp-elf-gdb\12.1_20231023 -prefs=runtime.tools.xtensa-esp-elf-gdb-12.1_20231023.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp-elf-gdb\12.1_20231023 -prefs=runtime.tools.openocd-esp32.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20240318 -prefs=runtime.tools.openocd-esp32-v0.12.0-esp32-20240318.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20240318 -prefs=runtime.tools.esp-xs3.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-xs3\2302 -prefs=runtime.tools.esp-xs3-2302.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-xs3\2302 -prefs=runtime.tools.esp-x32.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-x32\2302 -prefs=runtime.tools.esp-x32-2302.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-x32\2302 -prefs=runtime.tools.mklittlefs.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.esptool_py.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6 -prefs=runtime.tools.esptool_py-4.6.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6 -prefs=runtime.tools.esp-rv32.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-rv32\2302 -prefs=runtime.tools.esp-rv32-2302.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-rv32\2302 -prefs=runtime.tools.mkspiffs.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -verbose C:\Users\acer\Documents\Arduino\ESP_32\ESP_32.ino

D:\Software\Arduino Kit\All     Setup  s\arduino-1.8.19\arduino-builder -compile -logger=machine -hardware D:\Software\Arduino Kit\All     Setup  s\arduino-1.8.19\hardware -hardware C:\Users\acer\AppData\Local\Arduino15\packages -tools D:\Software\Arduino Kit\All     Setup  s\arduino-1.8.19\tools-builder -tools D:\Software\Arduino Kit\All     Setup  s\arduino-1.8.19\hardware\tools\avr -tools C:\Users\acer\AppData\Local\Arduino15\packages -built-in-libraries D:\Software\Arduino Kit\All     Setup  s\arduino-1.8.19\libraries -libraries C:\Users\acer\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32da:PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none -vid-pid=10C4_EA60 -ide-version=10819 -build-path C:\Users\acer\AppData\Local\Temp\arduino_build_678991 -warnings=none -build-cache C:\Users\acer\AppData\Local\Temp\arduino_cache_869405 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esp32-arduino-libs.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef -prefs=runtime.tools.esp32-arduino-libs-idf-release_v5.1-bd2b9390ef.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef -prefs=runtime.tools.riscv32-esp-elf-gdb.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gdb\12.1_20231023 -prefs=runtime.tools.riscv32-esp-elf-gdb-12.1_20231023.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gdb\12.1_20231023 -prefs=runtime.tools.esp-xs2.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-xs2\2302 -prefs=runtime.tools.esp-xs2-2302.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-xs2\2302 -prefs=runtime.tools.dfu-util.path=C:\Users\acer\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.11.0-arduino5 -prefs=runtime.tools.dfu-util-0.11.0-arduino5.path=C:\Users\acer\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.11.0-arduino5 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp-elf-gdb\12.1_20231023 -prefs=runtime.tools.xtensa-esp-elf-gdb-12.1_20231023.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp-elf-gdb\12.1_20231023 -prefs=runtime.tools.openocd-esp32.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20240318 -prefs=runtime.tools.openocd-esp32-v0.12.0-esp32-20240318.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20240318 -prefs=runtime.tools.esp-xs3.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-xs3\2302 -prefs=runtime.tools.esp-xs3-2302.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-xs3\2302 -prefs=runtime.tools.esp-x32.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-x32\2302 -prefs=runtime.tools.esp-x32-2302.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-x32\2302 -prefs=runtime.tools.mklittlefs.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933 -prefs=runtime.tools.esptool_py.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6 -prefs=runtime.tools.esptool_py-4.6.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6 -prefs=runtime.tools.esp-rv32.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-rv32\2302 -prefs=runtime.tools.esp-rv32-2302.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esp-rv32\2302 -prefs=runtime.tools.mkspiffs.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -verbose C:\Users\acer\Documents\Arduino\ESP_32\ESP_32.ino

Using board 'esp32da' from platform in folder: C:\Users\acer\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2

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

cmd /c if exist "C:\\Users\\acer\\Documents\\Arduino\\ESP_32\\partitions.csv" COPY /y "C:\\Users\\acer\\Documents\\Arduino\\ESP_32\\partitions.csv" "C:\\Users\\acer\\AppData\\Local\\Temp\\arduino_build_678991\\partitions.csv"

cmd /c if not exist "C:\\Users\\acer\\AppData\\Local\\Temp\\arduino_build_678991\\partitions.csv" if exist "C:\\Users\\acer\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.2\\variants\\esp32da\\partitions.csv" COPY "C:\\Users\\acer\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.2\\variants\\esp32da\\partitions.csv" "C:\\Users\\acer\\AppData\\Local\\Temp\\arduino_build_678991\\partitions.csv"

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

        1 file(s) copied.

cmd /c IF EXIST "C:\\Users\\acer\\Documents\\Arduino\\ESP_32\\bootloader.bin" ( COPY /y "C:\\Users\\acer\\Documents\\Arduino\\ESP_32\\bootloader.bin" "C:\\Users\\acer\\AppData\\Local\\Temp\\arduino_build_678991\\ESP_32.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\\Users\\acer\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.2\\variants\\esp32da\\bootloader.bin" ( COPY "C:\\Users\\acer\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.2\\variants\\esp32da\\bootloader.bin" "C:\\Users\\acer\\AppData\\Local\\Temp\\arduino_build_678991\\ESP_32.ino.bootloader.bin" ) ELSE ( "C:\\Users\\acer\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esptool_py\\4.6\\esptool.exe" --chip esp32 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o "C:\\Users\\acer\\AppData\\Local\\Temp\\arduino_build_678991\\ESP_32.ino.bootloader.bin" "C:\\Users\\acer\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.1-bd2b9390ef\\esp32\\bin\\bootloader_qio_80m.elf" ) )

This version of C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6\esptool.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.

exit status 1

Error compiling for board ESP32-WROOM-DA Module.

Could not find boards.txt in C:\Users\acer\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1. Is it pre-1.5?

Could not find boards.txt in C:\Users\acer\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1. Is it pre-1.5?


please check where i did mistake . it is first time i with esp32.
thank you...

@charnjit
Wrong board
Choose ESP32 Dev Module

i got error

fork/exec C:\Users\acer\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.1.0/esptool.exe: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.

Error compiling for board ESP32 Dev Module.

please suggest what version of esp32 board i should install to be compatible with window7 , 32bit , Arduino 1.8.19
????

Hi @charnjit. The problem is caused by the "esp32" boards platform's esptool tool dependency having been built as a 64-bit executable:

The last version of the tool dependency built as a 32-bit executable was 3.0.0, which is installed with version 1.0.6 of the "esp32" boards platform.

I'll provide instructions you can follow to install version 1.0.6 of the platform:

  1. Select Tools > Board > Boards Manager... from the Arduino IDE menus.
    The "Boards Manager" dialog will open.
  2. Wait for the updates to finish, as shown by the messages printed at the bottom of the "Boards Manager" dialog.
  3. Scroll down through the list of boards platforms until you find the "esp32" entry. Click on it.
    A "Select version" dropdown will appear in the entry.
  4. Click on the "Select version" dropdown.
    It will expand.
  5. Select "1.0.6" from the menu.
  6. Click the "Install" button in the "esp32" entry.
  7. Wait for the installation to finish.
  8. Click the "Close" button on the "Boards Manager" dialog.
    The "Boards Manager" dialog will close.

Arduino IDE will occasionally notify you that a new version of the boards platform is available, you'll need to refrain from accepting the offer that will cause an update back to the problematic version of the platform. If you find these notifications annoying, you can disable them via the IDE preferences.

I'll provide instructions you can follow to do that:

  1. Select File > Preferences... (or Arduino > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to "Check for updates on startup" in the "Preferences" dialog.
  3. Click the "OK" button.
    The "Preferences" dialog will close.

If you disable the automatic update check, make sure to periodically do a manual check for newer versions of the installed boards platforms and libraries that you want to keep updated. You can check for new versions of Arduino IDE by selecting Help > Check for Arduino IDE Updates from the Arduino IDE menus. You can check for new versions of boards platforms and libraries by selecting "Updatable" from the "Type" menu in the Boards Manager and Library Manager views.


Although Windows 7 was an excellent version, it is very long in the tooth and has not received any security updates since Microsoft retired it 4.5 years ago. It is time for you to seriously think about updating your system. If you can't or won't use a newer version of Windows, consider switching to the free open source Linux operating system. Linux has excellent performance even on older and lower spec computers.

Thank you,, it solved, I install ide 1.8.19 .
ESP 32 is working.

You are welcome. I'm glad it is working now.

Huh??? You were already using Arduino IDE 1.8.19 at the time you experienced the problem:

Did you follow my instructions to install version 1.0.6 of the "esp32" boards platform? If so, it was that change that provided the solution, not the installation of Arduino IDE 1.8.19.

It is good that it is working for you now, regardless of the solution. However, our hope is that the forum topics can serve as a reference for others in the years to come, so that the efforts of the small number of helpers who dedicate themselves to sharing knowledge here can be multiplied through the power of the Internet. If we conclude it on "if you encounter this error, install Arduino IDE 1.8.19 and it will be solved", when that actually is not the thing that must be done to solve it, then we are doing a disservice to those future readers.