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

Python • Cannot get UART to work

$
0
0
I feel like I have tried everything to get UART communication between my Pi4 and a Cypress µC. I have had the logic analyzer hooked up to the Cypress and its sending the data correctly so I know its not on that end. The python script runs on the Pi and I don't suspect that. What I do suspect is I don't have ttyAMA0 at all, does not show up anywhere. I can use ttyS0 to run the code, but it fails if I change to ttyAMA0. I have had the logic analyzer watching all of the Tx pins, and nothing when using ttyS0 on any of them. I have gone through raspi-config and turned off serial and turned on hardware, the config file is correct and I frequently double check it, I have tried setting pins 14 and 15 to ALT0 and ALT5. When I run ls /dev Serial0 is ttyS0 and there is no ttyAMA0. What am I missing to get the UART working?

Statistics: Posted by D12 — Thu Feb 22, 2024 7:30 am



Viewing all articles
Browse latest Browse all 1251

Trending Articles