I configured /dev/ttyAMA1 and /dev/ttyAMA3 and programmed two pico boards with the uart_advanced binary file. RPi4 is able to get response from the pico board which is connected using /dev/ttyAMA3 but not from /dev/ttyAMA1. Below is the raspi-gpio config.
GPIO 0: level=1 fsel=3 alt=4 func=TXD2 pull=NONE
GPIO 1: level=0 fsel=3 alt=4 func=RXD2 pull=UP
GPIO 3: level=1 fsel=4 alt=0 func=SCL1 pull=UP
GPIO 4: level=0 fsel=1 func=OUTPUT pull=NONE
GPIO 5: level=1 fsel=3 alt=4 func=RXD3 pull=UP
GPIO 8: level=1 fsel=3 alt=4 func=TXD4 pull=NONE
GPIO 9: level=1 fsel=3 alt=4 func=RXD4 pull=UP
GPIO 12: level=1 fsel=1 func=OUTPUT pull=NONE
GPIO 13: level=0 fsel=1 func=OUTPUT pull=NONE
GPIO 14: level=1 fsel=4 alt=0 func=TXD0 pull=NONE
GPIO 15: level=1 fsel=4 alt=0 func=RXD0 pull=UP
I have ensured to connect both the boards properly. I observe that the pico board (/dev/ttyAMA1) is able to get the uart message from RPI4 but the other is not working. Ensured that the data array is delimited with newline character. Need a help to fix this ASAP.
GPIO 0: level=1 fsel=3 alt=4 func=TXD2 pull=NONE
GPIO 1: level=0 fsel=3 alt=4 func=RXD2 pull=UP
GPIO 3: level=1 fsel=4 alt=0 func=SCL1 pull=UP
GPIO 4: level=0 fsel=1 func=OUTPUT pull=NONE
GPIO 5: level=1 fsel=3 alt=4 func=RXD3 pull=UP
GPIO 8: level=1 fsel=3 alt=4 func=TXD4 pull=NONE
GPIO 9: level=1 fsel=3 alt=4 func=RXD4 pull=UP
GPIO 12: level=1 fsel=1 func=OUTPUT pull=NONE
GPIO 13: level=0 fsel=1 func=OUTPUT pull=NONE
GPIO 14: level=1 fsel=4 alt=0 func=TXD0 pull=NONE
GPIO 15: level=1 fsel=4 alt=0 func=RXD0 pull=UP
I have ensured to connect both the boards properly. I observe that the pico board (/dev/ttyAMA1) is able to get the uart message from RPI4 but the other is not working. Ensured that the data array is delimited with newline character. Need a help to fix this ASAP.
Statistics: Posted by yashasn — Fri Jun 28, 2024 2:43 am