Closed djwfly closed 6 years ago
Maybe you can try this alternative installation for Arduino IDE
I would also recommend to open a CMD prompt as administrator and try to run python esptool.py chip_id
from the tools directory.
Hello beegee-tokyo , I reinstall according to your suggestion. Step by step I follow the instruction. all is carried out, but at the last step "run 'get.exe' in git bash " ,this could not be carried out with the message "command not found". So I have to double click 'get.exe' in the directory so as to complete the install. Then I compile and upload a exemple, the same error appear. Oh this make me crazy...
Maybe it is because of Win XP? The above procedure worked for me on Win 7. I made only one small error in my Wiki entry. It should be ./get.exe
not get.exe
.
Did you try what lbernstone suggested and what is the result?
I try ./get.exe, not succeed, get the follwing message. Maybe it is because of my windows xp 32Bit .
$ ./get.exe
System: Windows, Info: Windows-XP-5.1.2600-SP3
Platform: i686-mingw32
Downloading xtensa-esp32-elf-win32-1.22.0-80-g6c4433a-5.2.0.zip
Done
Extracting xtensa-esp32-elf-win32-1.22.0-80-g6c4433a-5.2.0.zip
Downloading esptool-4dab24e-windows.zip
Done
Extracting esptool-4dab24e-windows.zip
Downloading mkspiffs-0.2.1-windows.zip
Traceback (most recent call last):
File "get.py", line 139, in
I tried lbernstone's suggestion,aslo failed. My pc is very old and i have no budget to change another one. Maybe have to use arduino esp32 later or eclipse instead.
It seems that the toolchain and esptool are downloaded but then it fails downloading the mkspiffs tool.
But Arduino IDE should still work even without the mkspiffs tool (I guess).
If you still want to try, I can give you a link to download the complete folder with everything. You would just need to unzip it and copy it into your
Or you can try to work with another IDE like Atom or Visual Studio Basic (my preference). There the whole installation process is easier, but still no guarantee that it works on XP.
Yes, the arduino still work ,I try it on esp8266 chip. I want to have a try . Can you give me the link of the complete folder. The visual studio have higher requiement not only PC but also knowledge. I am a mechanical engineer and embed MCU is my hobby . I have limited knowledge and arduino is more convenient.
Link The content should be in <Sketchbook-folder>\hardware
.
If you need some tutorials check out ESP32 weatherstation. I have examples for I2C, SPI, Bluetooth, BLE, UDP, TCP and others in it.
the issue with esp32 on windows xp is get.exe, esptool.exe are basically a compiled version of the python scripts, they've been built with a new version of pyserial library that does not work on windows XP. you could do what i did and modify the platform.txt file so that it uses python like the linux version does. note you'll need to have a version of python and the pyserial library installed that support XP (python <=3.4, pyserial 2.7) the mods i made:
line 9: tools.esptool.cmd.windows=esptool.py
line 81: recipe.objcopy.hex.pattern=py "{tools.esptool.path}/{tools.esptool.cmd}" --chip esp32 elf2image --flash_mode "{build.flash_mode}" --flash_freq "{build.flash_freq}" --flash_size "{build.flash_size}" -o "{build.path}/{build.project_name}.bin" "{build.path}/{build.project_name}.elf"
line 98: tools.esptool.upload.pattern=py "{path}/{cmd}" --chip esp32 --port "{serial.port}" --baud {upload.speed} --before default_reset --after hard_reset write_flash -z --flash_mode {build.flash_mode} --flash_freq {build.flash_freq} --flash_size detect 0xe000 "{runtime.platform.path}/tools/partitions/boot_app0.bin" 0x1000 "{runtime.platform.path}/tools/sdk/bin/{build.boot}.bin" 0x10000 "{build.path}/{build.project_name}.bin" 0x8000 "{build.path}/{build.project_name}.partitions.bin"
note i used "py" at the start instead of python as i have 3 versions installed and none on the path. however if you only have one version installed you can put it on the path and use "python" or if you have several like me and want to force a particular version you could use "py -3" to force python 3, or "py -3.3" to force python 3.3 etc....
this should let you compile at lease, but doesn't fix the missing mkspiffs...
@JamesGKent Thanks for the solution for Windows XP. I added your solution to the Wiki
Thanks very much.
Can this issue be closed?
You'll need an older version of esptool.py too, version from Jan 23, 2018 worked for me.
The new version requires pyserial 3, and with 2.7 it will produce an error like
AttributeError: 'Serial' object has no attribute 'dtr'
Hardware:
Board: ?ESP32 Dev Module? Core Installation/update date: ?11/jul/2017? IDE name: ?Arduino IDE? ?Platform.io? ?IDF component? Flash Frequency: ?40Mhz? Upload Speed: ?115200?
Description:
For a few days I have been installing the arduino-esp32 development enviroment again and again. But failed all the time. The esp32 module could been found in the arduino. But when compile and upload , it failed... The error message is as below:
Archiving built core (caching) in: C:\DOCUME~1\dell\LOCALS~1\Temp\arduino_cache_197603\core\core_espressif_esp32_esp32_FlashMode_qio,FlashFreq_80,FlashSize_4M,UploadSpeed_921600,DebugLevel_none_2b738b201fc88a468b2acb947ad43f23.a Traceback (most recent call last):
File "esptool.py", line 25, in
File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "site-packages\serial__init__.py", line 27, in
File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "site-packages\serial\serialwin32.py", line 15, in
File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "site-packages\serial\win32.py", line 182, in
File "ctypes__init.py", line 375, in getattr__
File "ctypes__init.py", line 380, in getitem__
AttributeError: function 'CancelIoEx' not found
Failed to execute script esptool
exit status -1
My PC is windows xp sp3, python use python 2.7. I have tried the following methods: ----try python2.7.10 and then 2.7.12 -----change pyserial from 2.7 to pyserial3.0.1; -----change arduino from version 1.8.2 to 1.8.5; -----change the directory from" C:\Documents and Settings\dell\My Documents\Arduino\hardware \espressif\esp32" to "C:\Program Files\Arduino\hardware\espressif\esp32"
All the time it failed. This trouble me for a few days. Anyone know how to resolve this problem, thanks very much!