-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Panicked at examples/uart_loopback_test.rs #75
Comments
@blietaer for clarity as you haven't mentioned: Is it on released version (which one?) or from top of Have you changed anything in the example code anywhere else? Maybe @martinmortsell would have a quick hint for you? |
I think what happened is that there was a refactor of the clock API done after the uart examples where written, which caused the examples to break and this was never checked. The problem is that there's a requirement that mck needs to be at least 3 times bigger than pck, and this is not fulfilled as the prescaler value is set to 1. Changing the HccPrescaler should fix this issue. |
Wow many thanks to both of you for this super quick feedback.
Ah yes, this is
No no, this is a vanilla clone from repo.
Yes, this is my understanding just reviewing |
@blietaer PR this change, please. |
Will do, but actually I was a bit quick: this only solves the |
Dear SAM Team,
I am afraid the UART examples are not working out of the box on the SAM V71 Xultra (blue) Board anymore (? I can't confirm it ever did, first time I try it).
Maybe I am doing something wrong, or oversight of a minimum (undocumented) wiring here ?
Sounds like a Clock issue as we can easily track this error msg down to
uart.rs:358
(might want to try and play with bothMCK
andPCK
values).I have the (exact) same situation for both the
examples/uart_loopback_test.rs
and theexamples/uart_interrupts
, while bothexamples/usart_loopback.rs
(using a small wiring PB00-PB01 on J505) andexamples/usb_serial_echo.rs
(using second 9target) USB port) are working just fine.Any hint/correction/suggestion is welcome here ! :)
Cheers,
Ben
The text was updated successfully, but these errors were encountered: