-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Cannot upload sketch to NodeMCU ESP-32S V1.1 (ESPTOOL-936) #1016
Comments
Hi @nicolasgomez1. The troubleshooting guide contains a section about the "wrong boot mode": https://docs.espressif.com/projects/esptool/en/latest/esp32/troubleshooting.html#wrong-boot-mode-detected-0xxx-the-chip-needs-to-be-in-download-mode. That section links the manual bootloader section: https://docs.espressif.com/projects/esptool/en/latest/esp32/advanced-topics/boot-mode-selection.html#manual-bootloader. I guess you found this. I think you also guessed that the issue is with the Windows driver. We introduced a workaround (feature) to be able to specify custom reset sequences and work around issues with the Windows driver. You are on a year and a half old esptool version. Let me check if this is available.... |
Yes, custom reset sequences are available since v4.5: https://docs.espressif.com/projects/esptool/en/latest/esp32/esptool/configuration-file.html#custom-reset-sequence You can change the reset sequence by the configuration file in case you have only an |
Hello @nicolasgomez1,
The button is actually labeled If you can, please try installing the latest esptool and try running some basic commands (e.g. |
Yep the button says IO0, my apologies, the PCB etching typography is not very clear. I updated to version 4.8 of esptool and ran the flash_id command. the output was
|
you can see your chip now successfully connects! So the latest version of esptool solves your issues. It seems like the latest version used in Arduino is v4.6 - so you have two options:
|
No no, version 4.8.1 doesn't solve the problem. It is still necessary to press the IO0 button... As for the Arduino IDE, I found a bit of a dirty solution. Replace the line
With
In the platform.text file. As for esptool, in the links shared by @dobairoland it seems that it is possible to use a configuration file. Is that possible with the binary version of the tool? |
Well, that wasn't apparent from your log. In that case, you will have to resort to trying to change the reset sequence.
If v4.8.1 doesn't solve the issue, replacing esptool in Arduino won't do anything.
Yes, the config file option works even with the binary version ( |
excuse me for my ignorance, but I don't know how to do it. I pass the -help argument to esptool.exe and in the list of commands it returns, I don't see any that indicate that it can be used to pass a different sequence or pass the path of a file with the new sequence. I see that it can be done with the .py version but I don't understand how to do it with the binary. |
You need to create a config file in the correct location. There is no difference in how to do this between the |
This seems to be a hardware issue, or OS drivers issue. There's probably not much we can do on the software side. For this reason and for inactivity, I am closing this issue. |
Operating System
Windows 11 23H2 (22631.4249)
Esptool Version
Python Version
4.6
Chip Description
ESP32-D0WD-V3 (revision v3.1)
Device Description
No response
Hardware Configuration
No response
How is Esptool Run
Arduino IDE 2.3.3
Full Esptool Command Line that Was Run
"C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6/esptool.exe" --chip esp32 --port "COM4" --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode keep --flash_freq keep --flash_size keep 0x1000 "C:\Users\XXX\AppData\Local\Temp\arduino\sketches\A11E3EF2B4A234F97DA8C0291DCB4111/ESP32Indoor.ino.bootloader.bin" 0x8000 "C:\Users\XXX\AppData\Local\Temp\arduino\sketches\A11E3EF2B4A234F97DA8C0291DCB4111/ESP32Indoor.ino.partitions.bin" 0xe000 "C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\XXX\AppData\Local\Temp\arduino\sketches\A11E3EF2B4A234F97DA8C0291DCB4111/ESP32Indoor.ino.bin"
Esptool Output
More Information
Sorry if I filled out the issue data wrong, I'm new to this... It turns out I bought a NodeMCU ESP-32S V1.1 recently. And I can't upload the sketches like I did with my ESP8266. The only way I found was to press the 100 button (the board has another one that says EN, I don't press that one)
First I tried with the drivers: CP210x_Universal_Windows_Driver. Then with: CP210x_VCP_Windows. But nothing works. I see that some say that you can modify the esptool.py, but I don't have that file, only esptool.exe
Other Steps to Reproduce
No response
I Have Read the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: