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:So, UART seems to be working fine. Are you running Bookworm or something else?
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 = 0Statistics: Posted by neilgl — Mon Feb 24, 2025 8:12 pm