Latest Raspbian Buster OS and Raspberry Pi 3 V1.2 2015
This I can't get my head around this. Why can't I set up serial communication on Raspbian Buster for Raspberry Pi3 very easily after following many tutorials online?
These are the setups I took to enable serial communication through GPIO PINS 15 and 16
-Downloaded the latest Rasbpian Buster and installed it successfully.
-Set 15 and 16 GPIO PINs to ALT0.
gpio mode 15 ALT0
gpio mode 16 ALT0
/boot/cmdline.txt didn't have
-Raspi-Config - enabled serial, enabled serial hardware and disabled login shell through serial.
-Also added the following line in
dtoverlay=pi3-disable-bt and enable_uart=1
After all that, I saved everything and rebooted my pi 3. Everything came up as it should including my program that is suppose to communicate through 15 and 16 gpio pins. And there is absolutely no communication at all. The serial communication LEDs on our hardware don't even BLINK ONCE.
So, I ran the following terminal command.
ls -l /dev This is what it is showing for serial0.
So, why can't I get serial communication working on Raspbian Buster on Pi 3? The interesting thing about this issue is that with the same setup on the same PI 3 running Raspbian Jessie my program starts communicating immediately as soon as my program is up and running with no problem.
UPDATE: After spending 3 whole days on this pulling my hair, I figured out what the issue is. With my pi3, I use 3.5 inch pitft adafruit touchscreen display. I noticed that any time adafruit is hooked up and turned on while displaying raspbian's desktop, serial communication stops working. My program can only send requests, but there is NEVER a reply back from the hardware. Once I unplug the display from my PI3 and remove the setup code from CONFIG.TXT, serial communication start working again as normal. Have a look at the setup code for my adafruit touchscreen display.
hdmi_cvt=720 480 60 1 0 0 0
# --- added by adafruit-pitft-helper Wed Aug 18 14:52:26 2021 ---
# --- end adafruit-pitft-helper Wed Aug 18 14:52:26 2021 ---
Can anyone tell me what the issue is with this setup in config.txt and how i can fix it so that display and serial communication works. Thanks.