Description
While the Arduino IDE (v1.8.16) work perfectly on Windows7 32bit, the ESP32 tools fail to compile my sketch:
Arduino: 1.8.16 (Windows 7), Board: "WEMOS D1 MINI ESP32, 80MHz, Default, 240MHz (WiFi/BT), 921600"
fork/exec C:\Users\Eee PC\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.1.0/esptool.exe: Die Version von %1 ist nicht mit der ausgeführten Windows-Version kompatibel. Öffnen Sie die Systeminformationen des Computers, um zu überprüfen, ob eine x86-(32 Bit)- oder eine x64-(64 Bit)-Version des Programms erforderlich ist, und wenden Sie sich anschließend an den Herausgeber der Software.
Error compiling for board WEMOS D1 MINI ESP32.
The message basicially says that esptool.exe is not compatible with my version of windows, and I should check if a 32bit or 64bit version would be needed, then contact my software vendor.
I have checked the esptool.exe installed by the ESP32 board package using "depends", and in fact it seems to be the 64bit version.
BTW, I saw that a similar question from another user was wiped away, saying "time to get an up-to-date PC and OS". Actually I am using an older Laptop (Win7 32bit) in my workshop, as a kind of "secondary arduino coding facility". And it works perfect for all my Arduinos including an UNO, a MEGA, and NANO EVERY. Just my new ESP32 D1 R32 board should not work in this setup? C'mon, you can do better ...
If the esptool.exe cannot be installed for win32, then at least some information could be provided on how to find a 32bit version for download. I have python (32bit) installed any way, so maybe I can get esptool via "pip install" ?
Activity
softhack007 commentedon Dec 11, 2021
PS: on the espressif website, it say that 32bit and 64bit versions are available for windows - so I understand that 32bit Windows is supported, isn't it?
https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html
atanisoft commentedon Dec 12, 2021
Windows 7 (and other 32bit OSes) have been de-supported by many of the underlying tools used for building and by Microsoft. It's time to upgrade to a 64bit OS.
softhack007 commentedon Dec 13, 2021
Hello @atanisoft, are you saying that espressif are lying to their customers? Because their website clearly states that board packages for x86 are available.
Technical question: will the following produce an "esptool" that works in arduino-esp32?
atanisoft commentedon Dec 13, 2021
I'm not saying they are lying at all. The documentation may be clearly about the Arduino IDE and not the esp32 code.
atanisoft commentedon Dec 13, 2021
Also missed the bit about pip etc, that may give a usable esptool but it won't be used in the IDE which expects and uses esptool.exe which has only been made available using python x64 for a very long time.
Also note that python 2.x is already on the desupport path and may already be unsupported.
As noted originally, it is time to upgrade to a supported OS.
VojtechBartoska commentedon Dec 13, 2021
@pedrominatel Please take a look and I would gladly ask you for the update of documentation.
@softhack007 Sorry for the inconvenience with outdated Documentation. As solution please consider update of your OS, we are not able to keep support for older versions of mentioned OS.
softhack007 commentedon Dec 13, 2021
Hi @VojtechBartoska, yes i can understand that officially supporting another platform with just a few remaining users is a lot of effort. I was more looking for some do-it-yourself guide on how to get the toolchain up and running on x86, unfortunately got no help here.
@atanisoft I know you might be worried about the safety of my "tinker laptop" when major vendors are not providing active support for Win32 any more. I can assure you that I know what i'm doing, and I am clear about the risks. My tinker laptop is not connected to the internet, and just needed for some quick arduino hacking. However it does not help much when you suggest to spend >350€ (for a new laptop that can run win64) just to work with a device that costs around 10€. Maybe you also understand me on this.
A last question - i would also be willing to "downgrade" arduino-esp32 to an older release version - Can you indicate which release still does include working support for win32?
igrr commentedon Dec 13, 2021
For the DIY approach: to get an esptool.exe which would work with arduino-esp32, you need to do the following using a 32-bit Python installation:
https://github.com/espressif/esptool/blob/5c742218233098934300abe5b9c3d357a7d139cb/.github/workflows/build_esptool.yml#L31-L36
(i.e. install pyinstaller, then use pyinstaller to create an .exe file from esptool)
It's not impossible to add this step to our automated builds of esptool, but I need to check if it's still possible to install 32-bit Python in the CI environment.
softhack007 commentedon Dec 14, 2021
Maybe you can also add a note for windows users, to clarify the minimum required OS. Something like we find on python.org "ESP32 core V2.0.x cannot be used on Windows 7 or earlier. Please also note that 32bit OS are no longer supported by the toolchain."
And to answer my own question:
ESP32 version 1.0.6 still works on win32. You might want to install python 3.8.x because it is the latest release supporting windows7.
🥇 Thanks for the DIY guide, i will try it over the weekend 👍
18 remaining items