I am currently performing a loop back test using pins 14(TX) and 15(RX) of the raspberry Pi. I am trying to write text in minicom and
have it loopback into the terminal shell to be displayed. I am having a problem with minicom flickering crazily when I run my python program and eventually giving me an error closing my program: "serial.serialutil.SerialException: device reports readiness to read but returned no data."
I have already enabled UART writing the following lines in /boot/config.txt: "enable_uart = 1" and "dtoverlay=pi3-disable-bt".
I have disabled getty login service for port ttyAMA0 using the command: "systemctl mask serial-getty@ttyAMA0.service".
The code is shown below.
import RPi.GPIO as GPIO
port = serial.Serial("/dev/ttyAMA0", baudrate =9600, timeout = 3.0)
Please help I'm stuck!