You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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.
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, callingwith_path
instead ofnew
is a valid workaround.Also update the documentation to reflect Pi 5-specific configuration options to configure UART.
Also see #165.
The text was updated successfully, but these errors were encountered: