-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esptool 64bit installed on Windows x86 (32bit) #6012
Comments
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
|
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. |
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?
|
I'm not saying they are lying at all. The documentation may be clearly about the Arduino IDE and not the esp32 code. |
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. |
@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. |
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? |
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: (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. |
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: 🥇 Thanks for the DIY guide, i will try it over the weekend 👍 |
@softhack007 It's actually slightly simpler, it's the 32bit windows versions that are no longer supported out-of-box. The included esptool.exe is compiled as x64 only (due to Python limitations noted above). |
Hi @Edwardphantom, as mentioned above. 32bit Windows version are no longer directly supported. |
if the project does not care about 32bit Versions of Windows, then why are all other packages available for Win32bit but the final one to complete the compile??? |
this have nothing to do with |
yeah, but you decide the content of the package - and at the moment it lets you believe it installed correctly on Win32 - I didn't see any warning albeit some previous posts suggest there should be some. |
Most tools, even though marked as win64, do work fine on win32 (or at least that is how they were reported). Another issue is that those tools get updated, bugs fixed and necessary new features added, so they can not be static as you propose. Windows binaries apart from being turned into EXEs, need to also be signed so that they do not trip defender and such. You can rebuild the binary yourself on your computer and replace the one installed by the IDE. If compiled on your computer, you do not need to sign it. |
esptool_win32.zip rename to .7z |
A big thankyou to the help offered for 32 bit support. Some posters might not appreciate that some of us need to use a 32 bit OS for various reasons, and on the latest hardware too, myself included. I need to use Win10 32 bit, I support a medical billing software product. It's easier than firing up a VM each time. |
I have downloaded the above esptool_win32.zip and check it through VirusTotal.com, the result is "14 security vendors and no sandboxes flagged this file as malicious". Beware! |
hmmm, can't say much about that - just that I dl'd the sources and all the python stuff and compiled it. p.s.: "no sandboxes" means that when executing this files, no suspicious actions can't be detected. |
I found a solution. I replaced the esptool.exe 64bit with the 32 bit version. I already have Thonny installed with its esptool ( pip install esptool). That version is in python and works with 32bit processors. I just copied the esptool.exe from the Thonny library folder to the Arduino folder with the esptool that is 64 bit. I renamed the old on esptool_64b.exe incase my test did not work. After that I did the Arduino compile the Blink. I had to change the LED_BUILTIN to pin 4 for the bright flash bulb LED. It Blinked with success! It is pretty bright so try not to look directly at it. |
yeah, but for this to work you need Thonny or at least python installed ... |
It is important to continue supporting 32 bit architecture. |
While the Arduino IDE (v1.8.16) work perfectly on Windows7 32bit, the ESP32 tools fail to compile my sketch:
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" ?
The text was updated successfully, but these errors were encountered: