logo elektroda
logo elektroda
X
logo elektroda

ARDUINO and ESP32: Compilation error for ESP32 Dev Module board, link to CORE ESP32

darex120 5970 27
Best answers LABEL_AI_GENERATED

How can I fix the ESP32 Dev Module compilation/upload error in Arduino, especially when ESP8266 works but ESP32 does not?

Your ESP32 problem is most likely a Windows 7 compatibility issue with the installed ESP32 core/esptool, not the board selection itself. The compilation log already showed that `esptool.exe` is not compatible with the version of Windows you are running [#20517192] On Win7, one user reported success by staying with an older ESP32 package/core version, with advice to stop at about 1.0.6 because newer Python/esptool builds no longer work on Win7 [#20525627] The original poster finally fixed it by reinstalling Windows 7, reinstalling Arduino and ESP32, and choosing the lowest available ESP32 version, after which compilation and programming worked [#20525610] Another user noted that on Win7 they use Arduino 1.8.19, ESP32 core 2.0.6, and ESP tool 4.2.1 successfully [#20527150]
AI summary based on the discussion. May contain errors.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • Need exact compilation error details

    #1 20516699
    darex120
    Level 18  
    Posts: 1117
    Help: 1
    Rate: 62
    Hi
    I have an ESP32 board and I wanted to program it using Arduino, I downloaded COER ESP32 from this link https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
    installed it, I selected the ESP32 Dev Module board and it gives me an error during compilation
    Compilation error for ESP32 Dev Module board, I selected different ESPs but the error is still the same only the name of the board changes, I also have ESP8266 and I compile and upload to it without any problem. What could be the reason that I cannot upload or compile the program.
  • ADVERTISEMENT
  • #2 20516885
    inot
    Level 38  
    Posts: 3615
    Help: 449
    Rate: 818
    darex120 wrote:
    I get an error when compiling

    A detailed description of the error may be helpful in answering.
  • Incompatible esptool.exe version on Windows

    #3 20517192
    darex120
    Level 18  
    Posts: 1117
    Help: 1
    Rate: 62
    NOTE: The category '' in the ESP Insights library is incorrect. Set to 'Uncategorized'
    NOTE: Category '' in the ESP RainMaker library is incorrect. Set to 'Uncategorized'
    WORTH: Category '' in the WiFiProv library is incorrect. Set to 'Uncategorized'
    WORTH: The 'Simulator' category in the SimulatorProgram library is incorrect. It has been set to 'Uncategorized'
    The version of C:AppDataLocalArduino15packages_py32.5.1esptool.exe is not compatible with the version of Windows you are running. Check the operating system information on this computer and then contact the software publisher.

    exit status 1
    Compilation error for ESP32 Dev Module board.
  • #4 20517381
    urkotrebor
    Level 21  
    Posts: 336
    Help: 37
    Rate: 83
    If your system is Windows XP then I don't think it is possible to program ESP32 .
    I use LINUX for this reason .
  • #5 20517389
    darex120
    Level 18  
    Posts: 1117
    Help: 1
    Rate: 62
    Windows 7
  • #6 20517422
    urkotrebor
    Level 21  
    Posts: 336
    Help: 37
    Rate: 83
    On W7 it worked for me , but that was some time ago .
    Search for an older version of the package for ESP32 ("4.5.1esptool.exe is not compatible with the version of Windows running.") , but I'm afraid that you will have to install on foot .
    I, however, suggest you install LINUX even on a USB drive (stick) and you will not have problems with ARDUINO .
  • #7 20518286
    darex120
    Level 18  
    Posts: 1117
    Help: 1
    Rate: 62
    Hello

    So I installed older versions of ESP32 in the arduino but still the same , tell me mate what version of Linux is best and if I will have no problem installing and operating the usbasp programmer
  • ADVERTISEMENT
  • Linux Mint recommended for Arduino and ESP32 setup

    #8 20518555
    urkotrebor
    Level 21  
    Posts: 336
    Help: 37
    Rate: 83
    As I fought on windows for ESP32 I remember that it was not enough to run the installation ( deinstallation ) it was necessary to manually clean up because the residues messed up what previously worked .
    What about Linux I use this https://blog.linuxmint.com/?p=4378 recommended it to me a buddy and it works , you can always check other versions if this one will not suit you .
    In the package with Mint you have a lot of proven software including ARDUINO .
  • ADVERTISEMENT
  • #9 20520362
    darex120
    Level 18  
    Posts: 1117
    Help: 1
    Rate: 62
    and can it be, for example, UBUNTU
  • Try the software yourself and verify hardware support

    #10 20520632
    urkotrebor
    Level 21  
    Posts: 336
    Help: 37
    Rate: 83
    Probably yes , although I've never used and don't know how the matter of installing software such as arduino .
    I've been using MINTA for about three years , but I'm still using XP .
    It can be said that I'm like concrete I'm not fond of change , new does not mean better .
    You have to try it yourself , see what you need and what is superfluous and whether your hardware will be supported because it's a lottery .
    Try , you only risk losing time .
  • #11 20521292
    darex120
    Level 18  
    Posts: 1117
    Help: 1
    Rate: 62
    I use windows all the time, whether it's xp, 7 or 8, but since I have to do the circuit on esp32 I didn't expect there to be any problems.
  • #12 20521673
    Anonymous
    Level 1  
  • #13 20521716
    darex120
    Level 18  
    Posts: 1117
    Help: 1
    Rate: 62
    And how about the ESP32 installation
  • ADVERTISEMENT
  • #15 20521904
    urkotrebor
    Level 21  
    Posts: 336
    Help: 37
    Rate: 83
    I fired up the old hardware with W7 and there is still ARDUINO , if you are interested let me know on priv then I will send my directories .
    I myself am curious if this can work because the files are from 2019 .
  • #16 20522915
    JacekCz
    Level 42  
    Posts: 8670
    Help: 760
    Rate: 1464
    Setting up the development environment in Polish is a disaster.

    When you have error messages in English, 90% of the time pasting the message into googling gives a solution.
  • #17 20522997
    darex120
    Level 18  
    Posts: 1117
    Help: 1
    Rate: 62
    Well, in my case it didn't help, I got a shim for the Arduino from a colleague here and we'll see if it works.
  • #18 20525610
    darex120
    Level 18  
    Posts: 1117
    Help: 1
    Rate: 62
    Hello everyone
    So yes, the problem is solved, I reinstalled Windows 7, reinstalled Arduino and ESP32, I chose the lowest version that was available, and compilation and programming fine
    Thank you all for your interest and help.
  • #19 20525627
    lopr_pol
    Level 32  
    Posts: 1725
    Help: 164
    Rate: 491
    On win7 with esp32 it helps to stop at version max 1.0.6, the new python (I think) no longer wants to go on win7.
  • #20 20527150
    kaczakat
    Level 34  
    Posts: 1748
    Help: 317
    Rate: 231
    I have win7, Arduino 1.8.19, ESP32 core 2.0.6, ESP tool 4.2.1. I don't remember installing python in relation to ESP32, surely it was a long time ago and rather for ESP8266, at that time it was recommended to be version 2.x, I have 2.7.16 as version 3 would not work properly. Win7 updated as much as possible, ESP32 examples compile with no problem.
    Helpful post? Buy me a coffee.
  • ESP32 resets after upload except GetChipID sketch

    #21 20557856
    darex120
    Level 18  
    Posts: 1117
    Help: 1
    Rate: 62
    So after installing version 2.0.7 programs but after uploading the program the ESP32 immediately resets and nothing happens, after pressing the boot button on the board it gets communication again

    Added after 45 [minutes]:



    The only program that doesn't reset my ESP32 is GetChipID shows me the esp32 id

    Added after 39 [minutes]:

    I've been reading and reading , and I would like to install ESP-IDF but unfortunately I can't find it for a later version than windows 10 or is there any other development environment besides Linux
  • Power supply likely causing ESP32 WiFi resets

    #22 20558201
    kaczakat
    Level 34  
    Posts: 1748
    Help: 317
    Rate: 231
    I have not encountered a case where some programs work OK after compiling and uploading and others work badly, at least in a working board. As it resets with a program using WIFI it is usually the power supply that is to blame. It also happened to me that at high upload speeds something would crash, but there was an immediate message that the upload "didn't go".
    I also had one ESP board with a connector to the battery, for chrissakes it wouldn't work until I plugged some in there, as if they had saved a couple of capacitors on this occasion.
    Helpful post? Buy me a coffee.
  • #23 20559030
    darex120
    Level 18  
    Posts: 1117
    Help: 1
    Rate: 62
    At the moment I am using the USB cable from my computer and the power supply is definitely 5V.
  • #24 20559363
    urkotrebor
    Level 21  
    Posts: 336
    Help: 37
    Rate: 83
    Not necessarily , with long or poor quality cables the voltage drops are significant .
    If in addition the connection is not direct to the board then there are additional voltage drops .
  • #25 20559365
    darex120
    Level 18  
    Posts: 1117
    Help: 1
    Rate: 62
    The cable is only 20 cm long.
  • #26 21264182
    sq3dwe
    Level 16  
    Posts: 187
    Help: 1
    Rate: 14
    Same for me, Arduino IDE 2.0.3 Windows 7 purchased ESP32-WROOM-32 board selected in program is ESP32-WROOM-DA Module, and message: ESP32-WROOM-32\VFO_CTRL_V8\VFO_CTRL_V8.ino:78:10: fatal error: graph.h: No such file or directory
    78 | #include "graph.h". Please help for a week I have been looking for a way to program it.
  • #27 21287487
    MikeC
    Level 32  
    Posts: 1391
    Help: 201
    Rate: 972
    khoam wrote:
    @darex120 And why do you insist on the Arduino IDE? That is the worst possible option. It's definitely better to use Visual Studio Code with the PlatformIO plugin. You will also be able to write programs using Arduino Core and Arduino libraries.
    .

    Just out of curiosity there is already ESP32 Arduino Core 3.x on PlatformIO , with me after installation still the old version 2.x ??
  • #28 21287660
    Anonymous
    Level 1  

Topic summary

LABEL_AI_GENERATED
The discussion revolves around a user experiencing compilation errors while programming an ESP32 Dev Module board using the Arduino IDE. The user installed the ESP32 core from a specified link but encountered persistent errors during compilation, despite successfully programming an ESP8266. Responses suggest that the issue may stem from compatibility problems with the Windows operating system, particularly Windows 7, and the need for specific versions of the ESP32 core and tools. Recommendations include using older versions of the ESP32 core, cleaning up previous installations, and considering alternative operating systems like Linux for better compatibility. The user eventually resolved the issue by reinstalling Windows 7 and selecting an older version of the ESP32 core. Additional discussions touch on power supply issues, cable quality, and the potential benefits of using Visual Studio Code with PlatformIO for development.
AI summary based on the discussion. May contain errors.

FAQ LABEL_AI_GENERATED

TL;DR: 15 FAQ answers and “stop at version max 1.0.6” summarize the fix for ESP32 Dev Module compile errors on Windows 7: use an older ESP32 Arduino package, clean leftovers, or switch to Linux/PlatformIO when tools reject Win7. [#20525627] Why it matters: The thread shows that ESP32 failures on Windows 7 can come from incompatible tool binaries, stale Arduino package files, or weak USB power, not only from board selection.

Option Thread status Specific value Main trade-off
Arduino IDE on Windows 7 Worked after reinstall ESP32 lowest available version Needs cleanup and older tools
Arduino IDE on Linux Mint Recommended alternative Mint used for about 3 years Requires OS change
Ubuntu Considered possible Not tested in thread User must verify hardware support
VS Code + PlatformIO Recommended alternative Uses Arduino Core and libraries ESP32 Core 3.x needs fork path

Key insight: On Windows 7, the safest path is a clean Arduino/ESP32 reinstall with older ESP32 tools. If sketches upload but reset, check 5 V USB power before blaming the compiler.

Quick Facts

  • The reported compile failure named C:\AppData\Local\Arduino15\packages\...\py3\2.5.1\esptool.exe as incompatible with the running Windows version. [#20517192]
  • The solved setup used Windows 7, a reinstalled Arduino IDE, a reinstalled ESP32 package, and the lowest available ESP32 version. [#20525610]
  • One working reference setup used Windows 7, Arduino 1.8.19, ESP32 Core 2.0.6, ESP tool 4.2.1, and Python 2.7.16. [#20527150]
  • A later failure used ESP32 Core 2.0.7: some programs uploaded, but the ESP32 reset immediately after start. [#20557856]
  • A USB cable of only 20 cm can still be part of a power-path check; poor cables and indirect connections can cause voltage drops despite nominal 5 V USB. [#20559365]

How can I fix the Arduino IDE error “esptool.exe is not compatible with the version of Windows you are running” when compiling for ESP32 Dev Module on Windows 7?

Fix it by using a clean Windows 7 Arduino setup with an older ESP32 package. The reported path used py3\2.5.1\esptool.exe, which Windows rejected.
  1. Remove the ESP32 board package.
  2. Manually clean leftover Arduino package folders.
  3. Reinstall Arduino and choose the lowest ESP32 version available.
The original user solved compilation and programming after reinstalling Windows 7, Arduino, and ESP32. [#20525610]

Which ESP32 Arduino Core version works best on Windows 7, and why do some users recommend staying around version 1.0.6 or older tools?

On Windows 7, stop at ESP32 Core 1.0.6 when newer tools fail. One user stated that Win7 works best at “version max 1.0.6,” because newer Python-related tooling no longer starts correctly. Another working setup used Arduino 1.8.19, ESP32 Core 2.0.6, and ESP tool 4.2.1. Treat 2.0.6 as a known working edge case, not the safest baseline. [#20525627]

How do I completely remove old ESP32 board package files from Arduino IDE so leftover files do not break a new installation?

Remove the package in Arduino IDE, then manually delete leftover ESP32 package directories. The thread warns that ordinary install or uninstall was not enough on Windows. Residual files could disturb a previously working setup. Use this 3-step cleanup:
  1. Uninstall the ESP32 package from Boards Manager.
  2. Delete remaining ESP32 folders under Arduino package storage.
  3. Reinstall one chosen ESP32 version only. [#20518555]

Why does ESP32 compile in Arduino IDE but reset immediately after uploading a sketch?

An ESP32 that uploads but resets often has a power problem, especially with Wi-Fi sketches. In the thread, one user saw ESP32 Core 2.0.7 upload programs, but the board reset immediately. Another user said Wi-Fi reset cases usually point to the power supply. The edge case was that GetChipID still worked, so simple sketches may pass while heavier sketches fail. [#20558201]

What power supply problems can cause an ESP32 board to reboot when running Wi-Fi sketches from USB?

USB power can reboot ESP32 when voltage drops under Wi-Fi load. The thread identifies the power supply as the usual cause when Wi-Fi programs reset after upload. One board also needed a battery connected before it worked reliably, suggesting missing onboard capacitance. The user measured the source only as computer USB with nominal 5 V, which does not prove stable board-side voltage. [#20558201]

How does USB cable length or quality affect ESP32 programming and stability?

A poor USB cable can cause voltage drops even when the computer provides 5 V. The thread states that long or low-quality cables create significant voltage loss. Extra adapters or indirect board connections add more loss. The user’s cable was 20 cm, so length alone was not enough to rule out cable resistance or connector quality. [#20559363]

What is ESP32 Arduino Core and why is the package URL from Espressif needed in Arduino IDE?

ESP32 Arduino Core lets Arduino IDE compile and upload sketches for ESP32 boards. "ESP32 Arduino Core is a board-support package that adds ESP32 targets, tools, and Arduino-library compatibility, so Arduino IDE can build programs for Espressif ESP32 modules." The thread used Espressif’s JSON package URL to install that board support before selecting ESP32 Dev Module. [#20516699]

What is esptool.exe and what role does it play when uploading programs to ESP32 boards?

esptool.exe is the Windows upload tool invoked by the ESP32 Arduino package. "esptool.exe is an ESP32 programming utility that communicates with the bootloader, transfers compiled firmware, and must match the operating system well enough to run as a Windows executable." In the thread, compilation stopped because version 2.5.1 was incompatible with Windows 7. [#20517192]

What is ESP-IDF and how is it different from programming ESP32 with Arduino IDE?

ESP-IDF is the alternative development environment the user considered after Arduino problems. "ESP-IDF is Espressif’s development framework for ESP32 projects that targets native ESP32 development, unlike Arduino IDE, which uses Arduino Core abstractions and Arduino-style libraries." In the thread, the user could not find a suitable ESP-IDF route for an OS later than Windows 10. [#20557856]

Arduino IDE vs Visual Studio Code with PlatformIO — which environment is better for programming ESP32 with Arduino libraries?

The thread recommends Visual Studio Code with PlatformIO over Arduino IDE for ESP32 work. One participant called Arduino IDE “the worst possible option” and said PlatformIO can still use Arduino Core and Arduino libraries. This advice targets the same programming model, but with a stronger project environment. It does not remove Windows 7 tool compatibility limits. [#20521673]

How do I set up ESP32 programming in Visual Studio Code using the PlatformIO plugin?

Install Visual Studio Code, add PlatformIO, then create an Espressif32 Arduino project. The thread links directly to PlatformIO’s Espressif32 Arduino tutorial for debugging and unit testing. That path supports Arduino Core and Arduino libraries, so existing Arduino-style ESP32 sketches can remain close to their original structure. Use the linked Espressif32 Arduino documentation as the setup reference. [#20521735]

What Linux distribution is suitable for Arduino and ESP32 development, such as Linux Mint or Ubuntu?

Linux Mint is the thread’s tested Linux choice for Arduino and ESP32 development. One user used Mint for about 3 years and said it includes much proven software, including Arduino. Ubuntu was considered acceptable, but no participant confirmed personal ESP32 setup on it. The practical advice was to test hardware support yourself, because compatibility can vary by machine. [#20518555]

How can I use an ESP32-WROOM-32 board in Arduino IDE when the selected board is ESP32-WROOM-DA Module?

Select a compatible ESP32 board profile, then fix the actual compile error shown. The later user had ESP32-WROOM-32 hardware but selected ESP32-WROOM-DA Module in Arduino IDE 2.0.3 on Windows 7. The reported failure was not board naming; it was fatal error: graph.h: No such file or directory at line 78. Fix the missing file first. [#21264182]

What does the Arduino IDE error “fatal error: graph.h: No such file or directory” mean and how do I fix a missing header file?

It means the compiler cannot find graph.h in the sketch or library paths. The thread shows the error at line 78: #include "graph.h". Put graph.h beside the .ino file, add the library that provides it, or correct the include name. This is a source-file problem, not the original esptool.exe Windows 7 compatibility error. [#21264182]

How can I use ESP32 Arduino Core 3.x with PlatformIO now that official Espressif Arduino support on PlatformIO is limited?

Use the alternative PlatformIO fork mentioned in the thread: pioarduino/platform-espressif32. A participant wrote that ESP32 Arduino Core 3.x would not arrive soon through the usual PlatformIO path, because Espressif had dropped Arduino support on PIO. The suggested workaround was the fork maintained by Tasmota developers. Treat it as the thread’s Core 3.x route. [#21287660]
AI summary based on the discussion. May contain errors.
ADVERTISEMENT