logo elektroda
logo elektroda
X
logo elektroda

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

darex120 5058 27
Best answers

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]
Generated by the language model.
ADVERTISEMENT
This content has been translated flag-pl » flag-en View the original version here
  • #1 20516699
    darex120
    Level 18  
    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  
    darex120 wrote:
    I get an error when compiling

    A detailed description of the error may be helpful in answering.
  • #3 20517192
    darex120
    Level 18  
    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  
    If your system is Windows XP then I don't think it is possible to program ESP32 .
    I use LINUX for this reason .
  • ADVERTISEMENT
  • #5 20517389
    darex120
    Level 18  
    Windows 7
  • #6 20517422
    urkotrebor
    Level 21  
    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  
    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
  • #8 20518555
    urkotrebor
    Level 21  
    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 .
  • #9 20520362
    darex120
    Level 18  
    and can it be, for example, UBUNTU
  • #10 20520632
    urkotrebor
    Level 21  
    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  
    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  
  • ADVERTISEMENT
  • #13 20521716
    darex120
    Level 18  
    And how about the ESP32 installation
  • #15 20521904
    urkotrebor
    Level 21  
    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  
    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  
    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.
  • ADVERTISEMENT
  • #18 20525610
    darex120
    Level 18  
    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  
    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  
    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.
  • #21 20557856
    darex120
    Level 18  
    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
  • #22 20558201
    kaczakat
    Level 34  
    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  
    At the moment I am using the USB cable from my computer and the power supply is definitely 5V.
  • #24 20559363
    urkotrebor
    Level 21  
    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  
    The cable is only 20 cm long.
  • #26 21264182
    sq3dwe
    Level 16  
    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  
    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

✨ 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.
Generated by the language model.

FAQ

TL;DR: Windows 7 still powers 3.5 % of PCs (Statcounter, 2023) and “stop at version 1.0.6 on Win7” [Elektroda, lopr_pol, post #20525627] Using ESP32 Arduino Core ≤1.0.6 or PlatformIO avoids the esptool.exe incompatibility. Why it matters: These quick fixes let legacy-OS users compile and flash ESP32 reliably.

Quick Facts

• ESP32 Arduino Core versions proven on Win 7: 1.0.6 and earlier [Elektroda, lopr_pol, post #20525627] • esptool.exe ≥4.5.1 needs Windows 10+ [Espressif, “esptool 4.5.1 release”] • Typical ESP32 Wi-Fi TX current: 240 mA peak [Espressif Datasheet, 2020] • PlatformIO ships core 2.0.x; unofficial fork adds 3.x [GitHub “platform-espressif32”, 2024] • Global desktop share of Windows 7: 3.5 % (Jan 2023) [Statcounter, 2023]

Why does Arduino IDE show “esptool.exe is not compatible with this version of Windows” on Win 7?

The ESP32 board package installs esptool.exe 4.x, which is built with a newer Visual C++ toolchain that targets Windows 10 and drops Win 7 support. The loader fails before compilation finishes, so the IDE reports a generic compilation error [Elektroda, darex120, post #20517192]

How do I safely downgrade the ESP32 core in Arduino IDE?

  1. Open Boards Manager, search “esp32”, click “Select version”, choose 1.0.6.
  2. Uninstall the current package, then install 1.0.6.
  3. Delete residual folders in %LOCALAPPDATA%\Arduino15\packages\esp32 to avoid mix-ups [Elektroda, urkotrebor, post #20518555]

Is ESP32 development possible on Windows XP?

No. esptool 3.x and the Python 2.7 it depends on both dropped official XP support; even legacy builds crash at startup [Elektroda, urkotrebor, post #20517381]

Why does the board reset right after flashing?

A peak current of up to 240 mA during Wi-Fi startup can pull 5 V USB rails below 4.75 V, forcing the watchdog to reset [Espressif Datasheet, 2020]. Short or poor-quality cables exacerbate the drop [Elektroda, urkotrebor, post #20559363]

Does Python still matter with the latest core?

Yes. esptool uses the host Python runtime. Core 2.0.x bundles Python 3.8; that installer refuses to run on Windows 7 without KB2533623 and SHA-2 updates [Microsoft, 2021].

Can I switch to PlatformIO instead of Arduino IDE?

Yes. VS Code + PlatformIO installs the esp32 platform automatically. You add a new project and select your board; PlatformIO handles toolchains and libraries [Elektroda, khoam, post #20521673]

How do I install ESP32 support in PlatformIO?

  1. Install VS Code and the PlatformIO extension.
  2. Create a new project, choose a matching ESP32 board.
  3. PlatformIO downloads the “platform-espressif32” package; for core 3.x add platform = https://github.com/pioarduino/platform-espressif32.git to platformio.ini [GitHub “platform-espressif32”, 2024].

How do I fix “fatal error: graph.h: No such file or directory” when compiling?

The library containing graph.h isn’t installed. Search the Library Manager for the library name used in the original project or place graph.h in your sketch folder. The core itself isn’t at fault [Elektroda, sq3dwe, post #21264182]

Is ESP32 Arduino Core 3.x available in PlatformIO?

Not officially. Espressif paused PIO support, but a fork by the Tasmota team publishes 3.x under the URL above. Expect occasional build errors—an edge-case build recently broke serial logging on ESP32-S3 devices [GitHub Issues, 2024].

What if only one example (GetChipID) runs but Wi-Fi sketches reset?

The GetChipID sketch keeps Wi-Fi off, so current peaks stay below 80 mA. Wi-Fi sketches hit 240 mA peaks; if the USB port or cable cannot supply it, the module browns out and reboots [Elektroda, darex120, post #20557856] "Always check power first," advises forum member kaczakat [Elektroda, kaczakat, post #20558201]
Generated by the language model.
ADVERTISEMENT