Skip to content

UART write does not work on QT Py SAMD21 with CircuitPython 8.x #7612

@alanmitchell

Description

@alanmitchell

CircuitPython version

Tested with CP 8.0.2 and CP 20230218-12d3640.

Code works properly with CP 7.3.3.

Code/REPL

import time
import board
import busio

e5_uart = busio.UART(
    board.TX, board.RX,
    baudrate=9600,
    timeout=0.01
)

while True:
    out_bytes = bytes('From QT Py\n\r', 'utf-8')
    e5_uart.write(out_bytes)
    in_bytes = e5_uart.read(10)
    if in_bytes:
        print(in_bytes)

    time.sleep(1)

Behavior

I have the QT Py Tx and Rx pins connected to a USB-TTL serial converter connected to my Linux PC. For CP 8.x versions, no characters are received on the PC. When I send characters from the PC to the USB-TTL converter, the QT Py does properly receive them, as indicated by characters being printed on the QT Py Serial console.

The above code works properly with CP 7.3.3.

Description

No response

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy