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

Troubleshooting • Strange with raspi-gpio get

$
0
0
I have a Raspberry Pi 4 and I need to use all 5 UART ports.
I've modified the config.txt file like this

Code:

dtoverlay=uart2gpio=0-1=a4# /dev/ttyAMA3dtoverlay=uart3gpio=4-5=a4# /dev/ttyAMA4dtoverlay=uart4gpio=8-9=a4# /dev/ttyAMA5dtoverlay=uart5gpio=12-13=a4
if I check in /dev/, I find all the UARTs,

Code:

pi@Rpi-NVR:~ $ ll /dev/ttyAMA*crw-rw---- 1 root dialout 204, 64  9 feb 19.34 /dev/ttyAMA0crw-rw---- 1 root dialout 204, 65  9 feb 19.34 /dev/ttyAMA1crw-rw---- 1 root dialout 204, 66  9 feb 19.34 /dev/ttyAMA2crw-rw---- 1 root dialout 204, 67  9 feb 19.34 /dev/ttyAMA3crw-rw---- 1 root dialout 204, 68  9 feb 19.34 /dev/ttyAMA4
but if I run the command raspi-gpio get 0-15, appear only uart0,uart2, uart3,uart4

Code:

raspi-gpio get 0-15GPIO 0: level=1 fsel=3 alt=4 func=TXD2 pull=NONEGPIO 1: level=1 fsel=3 alt=4 func=RXD2 pull=UPGPIO 2: level=1 fsel=4 alt=0 func=SDA1 pull=UPGPIO 3: level=1 fsel=4 alt=0 func=SCL1 pull=UPGPIO 4: level=1 fsel=3 alt=4 func=TXD3 pull=NONEGPIO 5: level=1 fsel=3 alt=4 func=RXD3 pull=UPGPIO 6: level=1 fsel=0 func=INPUT pull=UPGPIO 7: level=1 fsel=0 func=INPUT pull=UPGPIO 8: level=1 fsel=3 alt=4 func=TXD4 pull=NONEGPIO 9: level=1 fsel=3 alt=4 func=RXD4 pull=UPGPIO 10: level=0 fsel=0 func=INPUT pull=DOWNGPIO 11: level=0 fsel=0 func=INPUT pull=DOWNGPIO 12: level=1 fsel=0 func=INPUT pull=NONEGPIO 13: level=1 fsel=0 func=INPUT pull=UPGPIO 14: level=1 fsel=4 alt=0 func=TXD0 pull=NONEGPIO 15: level=1 fsel=4 alt=0 func=RXD0 pull=UP
Do you know why

Statistics: Posted by gianc — Fri Feb 09, 2024 7:12 pm — Replies 0 — Views 39



Viewing all articles
Browse latest Browse all 4486

Trending Articles