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

Weird UART behaviour on esp-hal 1.0.0-beta.0. #3247

Closed
Frostie314159 opened this issue Mar 12, 2025 · 2 comments
Closed

Weird UART behaviour on esp-hal 1.0.0-beta.0. #3247

Frostie314159 opened this issue Mar 12, 2025 · 2 comments
Labels
bug Something isn't working status:needs-attention This should be prioritized

Comments

@Frostie314159
Copy link
Contributor

Bug description

After upgrading to esp-hal to the beta 1.0 release, the parrot example in FoA, which receives data from parrot.live and outputs it via UART, only the top few lines get output correctly.

To Reproduce

The example in foa can be run with ./run_example.sh parrot esp32 <SSID_OF_OPEN_NETWORK>. You may have to reset the chip a few times, before this works correctly, due to a bug in the Wi-Fi driver. I'll try to create a separate example, later today.

Expected behavior

The complete payload gets TX'ed correctly over UART.

Environment

  • Target device: ESP32, ESP32-S2
  • Crate name and version: esp-hal 1.0.0-beta.0
@Frostie314159 Frostie314159 added bug Something isn't working status:needs-attention This should be prioritized labels Mar 12, 2025
@bugadani
Copy link
Contributor

write_async doesn't guarantee it will send everything. It returns to you the number of bytes transmitted, and you are expected to handle that.

@Frostie314159
Copy link
Contributor Author

Oh, ok I didn't know that. It worked as expected on 0.23.1. I should have probably read the docs better. sry.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:needs-attention This should be prioritized
Projects
Archived in project
Development

No branches or pull requests

2 participants