My Pico developed sudden problem of not sending data to serial monitor. I can write to the pico via the Serial Port but i can't receive the data sent by the Pico.
I have tried both Micropython,CircuitPython,C/C++ on all GPIO UART pins, Tried to use different cables, but all are giving similar results. Currently am using FTDI FT232RL USB cable, yellow cable connected to physical pin 6, Orange cable connected to physical pin 7 and both GND connected together. Below is my micropython piece of code
uart = UART(1, baudrate=115200, tx=Pin(4), rx=Pin(5))
txData = 'CDM\n'.encode('utf-8')
while True:
uart.write(txData)
data = uart.read()
if data:
print(data.decode('utf-8'))
time.sleep(1)