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

Check if /dev/serial0 points to the correct device on all Pis #166

Closed
golemparts opened this issue Nov 5, 2024 · 1 comment
Closed

Check if /dev/serial0 points to the correct device on all Pis #166

golemparts opened this issue Nov 5, 2024 · 1 comment
Assignees

Comments

@golemparts
Copy link
Owner

golemparts commented Nov 5, 2024

By default, Uart::new uses /dev/serial0 to find the correct UART device to use. On the Raspberry Pi 5, this points to /dev/ttyAMA10 instead of /dev/ttyAMA0, which is the debug UART/console. We need to check if using this still makes sense on all Pi devices, or if we need to use a different default based on the Pi we're running on. Currently, calling with_path instead of new is a valid workaround.

Also update the documentation to reflect Pi 5-specific configuration options to configure UART.

Also see #165.

@golemparts golemparts self-assigned this Nov 5, 2024
@golemparts golemparts changed the title Check if /dev/serial0 points to the correct UART on all Pis Check if /dev/serial0 points to the correct device on all Pis Nov 5, 2024
@Dygear
Copy link

Dygear commented Nov 5, 2024

Worth a mention that on the Raspberry Pi 5, I needed to put dtoverlay=uart0-pi5 into my /boot/firmware/config.txt file (at the bottom, can be placed in the [all] section, but [pi5] is also acceptable, but doesn't exist by default). That is what enabled me to use the GPIO 14/15 pins when reaching into /dev/ttyAMA0. The configuration here is a little tricky as it's not very well documented on the Raspberry Pi foundation side. Everything is there, but they don't outright call it out when you go to the UART section of the manual for the Raspberry Pi 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants