Skip to content

Conversation

@SergioGasquez
Copy link
Member

@SergioGasquez SergioGasquez commented Jun 13, 2025

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 that board-info is not working as expected since #882, a 26MHz C2 is detected as 40MHz

board-info and flashing (with a changed baudrate) should be working agai!

@SergioGasquez SergioGasquez marked this pull request as draft June 13, 2025 13:04
!no_verify,
!no_skip,
args.chip,
args.baud.or(config.project_config.baudrate),
Copy link
Member Author

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.

Comment on lines -709 to -711
if flasher.connection.baud() > 115_200 {
warn!("Setting baud rate higher than 115,200 can cause issues");
flasher.change_baud(flasher.connection.baud())?;
Copy link
Member Author

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

@SergioGasquez SergioGasquez marked this pull request as ready for review June 16, 2025 08:55
@SergioGasquez SergioGasquez changed the title Only change baud if neccesary Fix baudrate Jun 17, 2025
@SergioGasquez SergioGasquez requested a review from MabezDev June 17, 2025 07:21
Copy link
Member

@MabezDev MabezDev left a 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?

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@SergioGasquez SergioGasquez force-pushed the fix/change-baud branch 3 times, most recently from 8376c94 to 46ea87d Compare June 17, 2025 08:41
@SergioGasquez SergioGasquez enabled auto-merge June 17, 2025 08:47
@SergioGasquez SergioGasquez added this pull request to the merge queue Jun 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 17, 2025
@SergioGasquez SergioGasquez enabled auto-merge June 17, 2025 09:55
@SergioGasquez SergioGasquez added this pull request to the merge queue Jun 17, 2025
Merged via the queue into main with commit 99a9e6b Jun 17, 2025
41 checks passed
@SergioGasquez SergioGasquez deleted the fix/change-baud branch June 17, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants