logo elektroda
logo elektroda
X
logo elektroda

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

darex120 2298 27
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #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.
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 20516885
    inot
    Level 37  
    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 .
  • ADVERTISEMENT
  • #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
    khoam
    Level 42  
    @darex120 And why do you insist on the Arduino IDE? This is the worst possible option. 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.
  • #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
    khoam
    Level 42  
    MikeC wrote:
    So out of curiosity there is already ESP32 Arduino Core 3.x on PlatformIO
    .
    It probably won't be released so soon (Espressif has dropped support for Arduino on PIO), but there is an alternative (a fork from the Tasmota developers):
    https://github.com/pioarduino/platform-espressif32

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.
Summary generated by the language model.
ADVERTISEMENT