-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Flashing fails with Arduino IDE 1.8.9 / Linux Mint #6755
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
This may be reset related. After I have seen the message resetting via RTS pin I did some manual resets whenever the host tried to connect. Eventually it worked. edit: the output is not stuck, for some reason it stops scrolling !!: I wonder if scroll stop can be triggerd by the output... |
I have tried another unit (also Wemos D1 mini) and its working with 2.4.2 and 2.6.0. Seems to be a timing problem... |
@projectgus Have you already had such report ? |
@d-a-v @s0170071 Not exactly. The root cause seems to be that the chip needs to be reset into bootloader mode multiple times, once per esptool command, and this is error-prone for some boards. Given this is all happening from upload.py, it should be possible to rewrite the code in upload.py so that it only syncs and uploads the stub one time, and then reuses the same environment for all subsequent commands. This will be both faster and less error prone. I'll try to find some time to take a look at this myself, but I'm happy to give feedback if someone else has a go at it. |
If this helps I saw the same problem. No settings change except the version: This happens with Version 2.6.0 but not Version 2.5.2 |
@projectgus , |
@d-a-v I understand, but the behaviour I'm talking about is in the |
@projectgus do you have suggested esptool options or pointers? I'm not seeing anything obvious, unfortunately. Worst case we can special-case the upload.py not to use the identify-flash (presently used as a noop when the Arduino IDE isn't asked to fully erase the device), I guess, but if there's some "don't reset on end" that would help things we can easily add it to platform.txt... |
Oh! If that's what this is for then I think the best would be the suggestion I made previously to add a I'll try and implement this ASAP.
There is but it doesn't work properly with the flasher stub, because the re-Connecting doesn't have a way (yet) of detecting that it's already talking to the flasher stub, and loading the stub over the stub can get weird... |
Unfortunately, I don't think it's not quite that simple. We now support 3 modes: The 2 erase options are leftover from the esptool-ck.exe days. I suppose the reason is the "Erase WiFi settings" does not erase an existing FS in the extra flash vs. the erase_flash command. |
@earlephilhower Got it, sorry for not paying full attention earlier. Suggest you might be able to make this work with current esptool in one pass:
This means you can hopefully remove |
So it must be the esptool-v2.7 changes from esptool-v2.6 that is causing this? |
@ChazTuna it's the way we use it rather than the changes from 2.6 to 2.7 according to the discussion above. |
Hi, |
@JAndrassy I suspect that too. |
Strangely some boards do not work but here a old nodemcu v0.9 works fine :
|
it has automatic reset circuit |
Basic Infos
Platform
Settings in IDE
Problem Description
flashing fails with serial cable for core 2.6.0 toolchain, while it is working for 2.4.2.
This is core 2.4.2 flashing output
After successful flash do:
The text was updated successfully, but these errors were encountered: