-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Flashing issues with esptool (2.5.1 and 2.5.2 relases with esptool) #6296
Comments
@mcer12, I don't think any of the maintainers have such a device. Would you be able to submit a PR with your proposed change? |
Hi, In platform.txt i added "--before no_reset_no_sync" before the write_flash command:
and replaced This workaround allow the "Flash erase: > Only Sketch / Sketch + Wifi settings / All flash contents" |
Glad somebody picket this up, thanks @f5soh . The erase should stay there otherwise you will basically just skip the erase step or do I get this wrong? |
I'm not sure what do you mean, with the workaround above all the options works here: While adding "--before no_reset_no_sync" to the second part of command (used for upload) in platform.txt, the 2 and 3 case works but case 1 do not work any more. To make the simple sketch upload (aka erase=none) to work again, the first command (used for erase options) is "flash_id" instead of "version" which just output esptool version without talking with serial. Only sketch output:
Partial erase (wifi settings) + sketch upload output:
Full erase + sketch upload output:
Here the full erase take only 0.0s but indeed my eeprom contents are lost... |
What was the "Reset Option" working entry before we used esptool, "ck" or "none" ? |
Tested with 2.5.0: Upload works in both cases (ck or none) and esp is running at end. |
@f5soh What I meant is that since you removed the wipe it only rewrites the memory. That lead me to believe that with your changes no matter which option of erase memory you pick, it'll act as if "only sketch" was selected. Or am I wrong here? |
Look output for every option above, full erase (eeprom settings lost) or partial erase still done. |
Oh, sorry I see it now thank you! Any idea why the device doesnt run at the end and needs to be resetted manually? But this is a minor issue I think. |
After some tests, adding "--after soft_reset" to the 2nd command allow ESP to restart after flashing. In platform.txt the upload pattern becomes:
|
Thank you :) It worked for me but without "--before no_reset_no_sync" |
Hi all, Greetings from the esptool side of the fence. If I understand correctly, if a full flash erase is configured then ESP8266 Arduino currently needs to run Would an option like |
Hi, One command including the erase option (full/partial) will be useful i think. Previous upload tool was using those reset methods:
Since 2.5.1 all boards are handled with default reset method (--before default_reset --after hard_reset) whatever the reset option selected in menu or defined in board.txt boards.txt.py will need some changes to match the current reset methods with new upload tool as no_reset, no_reset_no_sync and default_reset. After testing with a nodemcu board and esptool.py, seems working with default reset method so maybe previous nodemcu+dtrset becomes default_reset but how about the previous 'ck' method ? |
I'm new, so I'm not entirely sure if this is related, but since upgrading from v2.5.0 to v2.5.2, I'm still able to upload sketches, but the board does not reset automatically anymore after the upload is complete. After resetting it manually, it runs the new sketch fine. I'm using the Adafruit HUZZAH ESP8266 breakout. Just wanted to share my experience. Sounds similar to the issue @f5soh described above. |
Hi, |
yes, please |
#6429 changed the reset method to something we believe to be more compatible. Closing this issue, but if you have something similar even with the latest GIT or release, please open a new issue so we can track it. |
Esptool erases memory and attempts to reset the device via RTS before upload which won't work if the device doesn't have a reset button or auto-reset circuitry. Devices like Sonoff plugs and others can't be flashed with this. The reset between memory wipe and actual upload should be removed.
The text was updated successfully, but these errors were encountered: