Skip to content
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 a chip with different xtal freq resutls in a panic #570

Closed
SergioGasquez opened this issue Feb 2, 2024 · 0 comments · Fixed by #572
Closed

Flashing a chip with different xtal freq resutls in a panic #570

SergioGasquez opened this issue Feb 2, 2024 · 0 comments · Fixed by #572
Milestone

Comments

@SergioGasquez
Copy link
Member

SergioGasquez commented Feb 2, 2024

In 2.1, you could flash applications for wrong targets, this resulted in a bootloop. Now, trying to do so results in:

[2024-02-02T10:07:06Z INFO ] Serial port: '/dev/ttyUSB0'
[2024-02-02T10:07:06Z INFO ] Connecting...
[2024-02-02T10:07:06Z DEBUG] Using UnixTight reset strategy with delay of 50ms
Error:   × Main thread panicked.
  ├─▶ at espflash/src/connection/mod.rs:171:80
  ╰─▶ called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 0, error_len: Some(1) }
  help: set the `RUST_BACKTRACE=1` environment variable to display a backtrace.

This happens when we try to decode in which bootmode the target is, we do so by reading the serial port, and if the xtal freq is different we see noise and we cant decode it, resulting in this error.

@github-project-automation github-project-automation bot moved this to Todo in esp-rs Feb 2, 2024
@SergioGasquez SergioGasquez added this to the v3 milestone Feb 2, 2024
@SergioGasquez SergioGasquez changed the title Flashing a different chip resutls in a panic Flashing a chip with different xtal freq resutls in a panic Feb 2, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
1 participant