-
Notifications
You must be signed in to change notification settings - Fork 132
Not able to upload code on (some) ESP32 boards #1416
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
Comments
Please provide the info requested for a bug report Before creating a bug report check for existing issues Describe your environment Describe the bug To Reproduce
provide the name of the board and the platform version you are using. Expected behavior Data to back up your claim Additional context |
In avvio: C:\Prog\Sloeber\arduinoPlugin\packages\esp32\tools\esptool_py\3.1.0/esptool.exe esptool.py v3.1 - ESP8266 ROM Bootloader Utility positional arguments: optional arguments: |
Can you provide |
In avvio: C:\Prog\Sloeber\arduinoPlugin\packages\esp32\tools\esptool_py\3.1.0/esptool.exe esptool.py v3.1 - ESP8266 ROM Bootloader Utility positional arguments: optional arguments: |
I think the problem is somewhere in the espressif files, something relted to the boards and tools setup. |
The json file https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json does not contain version 2.0.1 |
Nothing changed, this is the output of the upload: In avvio: C:\Prog\Sloeber\arduinoPlugin\packages\esp32\tools\esptool_py\3.1.0/esptool.exe esptool.py v3.1 - ESP8266 ROM Bootloader Utility positional arguments: optional arguments: |
And in any case there is 2.0.1 in the json file: |
In my opinion the button to upload the ihex file to ESP32 calls esptool.exe without or missing or wrong arguments. |
Now version 2.0.1 is there. |
I mostly agree with you but the solution of #1364 as is does not work always for me. This is what I did:
in my case it works if I select ESP32 Dev Module, instead if I select the DOIT EspDuino32 it does not work, the uploaf fails with this error: |
I do not find tools.esptool.upload.pattern in the platform.txt link you provided The fix for #1364 is very generic and applies for more cases then mentioned in the issue |
i think there is a bug when sloeber makes the configuration files for esp32 tools.esptool_py.upload.pattern=python "${tools.esptool_py.path}/${tools.esptool_py.cmd}" ${upload.pattern_args} should be : tools.esptool_py.upload.pattern=python "${tools.esptool_py.path}/${tools.esptool_py.cmd}" ${tools.esptool_py.upload.pattern_args} |
Yes, you are rigth, in Windows there is the same problem also if the syntax is a little bit different (the commented row was wrong): |
@jantje because iti is called tools.esptool_py: |
I opened another ticket because I found that Sloeber also does not compile some examples. |
As I stated before. This is a duplicate of #1364 |
yes, you have right. Upload button only runs esptool.exe without params. |
I have a ESP32 Wemos D1 R32 board that is compatible with EspDuino. I am able to build an example in Sloeber (the elf file, not the hex and the bin also because it is just a copy of the elf file) but I am not ble to upload the code. This is the returned error:
upload failed for "L/BlinkESP32/BlinkESP32}/Release/BlinkESP32.hex"
esptool
tools.esptool.upload.pattern : not found in the platform.txt file
I tryed to change the board to see if something changes and I discovered that produce the sam or other errors mainly related to the esptool (wrong parameters or not found). Instead, generally, there are no probolems to build the application.
The text was updated successfully, but these errors were encountered: