-
Notifications
You must be signed in to change notification settings - Fork 147
Fix baudrate #885
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
Fix baudrate #885
Conversation
949d5f1 to
dfae21a
Compare
dfae21a to
775cf78
Compare
| !no_verify, | ||
| !no_skip, | ||
| args.chip, | ||
| args.baud.or(config.project_config.baudrate), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds a weird arg to the flasher, but the other alternative was to have 2 getters in connection.
| if flasher.connection.baud() > 115_200 { | ||
| warn!("Setting baud rate higher than 115,200 can cause issues"); | ||
| flasher.change_baud(flasher.connection.baud())?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing the issue
MabezDev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, should we add a change baud rate test?
MabezDev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
8376c94 to
46ea87d
Compare
1a50404 to
3558ce8
Compare
https://github.com/esp-rs/espflash/pull/882/files#diff-e53a42b9f8c1ec16423891fcffa2c2a2fda60d4a70f42ddb0771db4ad11b05c0R709-R711 introduced an issue where it would timeout if we try changing the baud to the same baud that is using.
Draft as I just noticed thatboard-infois not working as expected since #882, a 26MHz C2 is detected as 40MHzboard-infoand flashing (with a changed baudrate) should be working agai!