-
Notifications
You must be signed in to change notification settings - Fork 7.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
make flash doesn't preserve serial port settings #60
Comments
Doesn't the port keep the settings from the last program that used/configured it? Which would be esptool.py |
I guess what I am then querying is the semantics that using esptool.py changes the existent settings of the serial port without restoring them to their original values at termination. If we wish to define that the semantics of the serial port are "undefined" at the end of a run of esptool.py then that would be fine ... we just need clarity on what to expect ... and my un-considered expectations are that the serial port would have the same settings after running a utility as before. |
Seems like more times than not it would be preferred that the settings stay the same as when the port was last used. Is there any precedent that a program stores and reverts the port settings? It's not something I would expect. |
It seems reasonable we should restore the original serial port settings on exit. This would probably be better opened as an issue against github.com/themadinventor/esptool, but I can track it from here. |
Moved to an esptool feature request. |
When I execute
make flash
to flash an ESP32, I find that the serial port settings to my ESP32 aren't preserved after the flash completes. Here is a listing of the settings before a flash:and the same settings after executing a
make flash
:I would have expected the settings to have been preserved.
The text was updated successfully, but these errors were encountered: