Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5107

Troubleshooting • Re: RPI 5 UART loopback failed

$
0
0
On my Pi5 I did this to check the status of GPIO 14 and 15:
pi@pibk:~/my_project $ pinctrl get 14
14: a4 pn | hi // GPIO14 = TXD0
pi@pibk:~/my_project $ pinctrl get 15
15: a4 pu | hi // GPIO15 = RXD0

That looks good. What does yours show?
Then we can use (say) python to read/write the Pi5 uart on the GPIO pins 14/15.

Code:

with serial.Serial('/dev/ttyAMA0', 115200, timeout = 10) as ser:
Notice the Pi5 uses /dev/ttyAMA0

Statistics: Posted by neilgl — Thu Aug 15, 2024 3:07 pm



Viewing all articles
Browse latest Browse all 5107

Trending Articles