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

Port UART updates to rp235x-hal #841

Merged
merged 4 commits into from
Sep 1, 2024
Merged

Conversation

jannic
Copy link
Member

@jannic jannic commented Aug 24, 2024

The updates from #798, #837 and #838 were only applied to rp2040-hal. This patch ports them to rp235x-hal.

The updates from rp-rs#798, rp-rs#837 and rp-rs#838 were only applied to rp2040-hal.
This patch ports them to rp235x-hal.
@thejpster
Copy link
Member

What testing has been done? Should I run a demo and try it?

@jannic
Copy link
Member Author

jannic commented Aug 25, 2024

Only tested that it still builds. It seems like we don't have on-target tests for UART yet.
I'd consider the port to rp235x relatively low-risk as the changes don't touch any low-level details. But of course, doing some actual testing would be very welcome!

@thejpster
Copy link
Member

I think we should write a loop back test that sends bytes with good and bad parity, just to check this is working as expected.

@thejpster
Copy link
Member

I wrote a UART loopback program, and fixed some issues I observed: 1f6251a

You can cherry-pick that here if you like it.

thejpster and others added 3 commits August 26, 2024 19:36
Whilst testing it I fixed some UART driver bugs I found. I also re-synchronised RP235x and RP2040 UART drivers.
@jannic
Copy link
Member Author

jannic commented Aug 26, 2024

I wrote a UART loopback program, and fixed some issues I observed: 1f6251a

You can cherry-pick that here if you like it.

Thanks!
Did you use external pull-ups? The uart_loopback example didn't work for me. Took me a while to find out what's going on because without defmt I didn't see the unwrap failing. The fix was enabling the internal pull-ups on the RX pins.
(Only tested on rp2040 yet)

@thejpster
Copy link
Member

No I didn't. Just a DuPont wire on a Pimoroni Pico 2 Plus.

@jannic
Copy link
Member Author

jannic commented Aug 27, 2024

Interesting. I reproducibly got a break error on rp2040 before I activated the pull-ups.

@thejpster
Copy link
Member

🤷

@thejpster thejpster requested a review from 9names September 1, 2024 10:43
@thejpster thejpster merged commit 960afaf into rp-rs:main Sep 1, 2024
49 checks passed
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