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

Troubleshooting • Re: UART doesn`t work on Raspberry Pi 4

$
0
0
Pi 4 running Bookworm 64-bit. Enable serial port hardware UART on GPIO using raspi-config. No manual edits to any files. Reboot.
Add loopback wire to GPIO14&15, compile and run the test:

Code:

./linux-serial-test -p /dev/ttyS0 -b 115200 -eLinux serial test app.../dev/ttyS0: count for this session: rx=576512, tx=577544, rx err=0/dev/ttyS0: TIOCGICOUNT: ret=0, rx=577544, tx=577544, frame = 0, overrun = 0, parity = 0, brk = 0, buf_overrun = 0
So, UART seems to be working fine. Are you running Bookworm or something else?
Thank you for your answer! I did what I described in the post on version 11, i.e. the bullseye. But now I downloaded the bookworm and did everything you described and got the same result

Code:

/dev/ttyS0: count for this session: rx=0, tx=111623, rx err=0/dev/ttyS0: TIOCGICOUNT: ret=0, rx=0, tx=111623, frame=0, overrun=0, parity=0, brk=0, buf_overrun=0

Statistics: Posted by LadyFox — Tue Feb 25, 2025 11:42 am



Viewing all articles
Browse latest Browse all 3874

Trending Articles