UART READ WRITE
-
I am running the following code portion on a Fipy and LoPy with firmware version 1.18.1.r7.
uart1 = UART(1, baudrate=9600) uart1.init(9600,bits=8,parity=None, stop=1) rcv=False while True: while not rcv: time.sleep(5) if uart1.any() > 0: recv=uart1.readall() print('Received from PIC %s' %recv) rcv=TrueThe serial communication is between a PIC 18F4620 processor and Pycom via a level logic convertor ( TXS0108EPWR from Texas Instruments). The code is working as expected on the LoPy but the same code on FiPy has buffer issue. I keep getting the same old data from the buffer for FiPy. Tried uart.deinit() as well but no success. Why is the UART buffer acting differently between LoPy and Fipy?
-
@dda Do both device have the same firmware version?
-
Hi @robert-hh ,
Both Lopy and Fipy have firmware release='1.18.2.r1'
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login