Skip to content

STM32: UART deinit doesn't seem to work #4381

Closed
@S4WRXTTCS

Description

@S4WRXTTCS

Firmware
Adafruit CircuitPython 6.1.0 on 2021-01-21; Adafruit Feather STM32F405 Express with STM32F405RG

Code/REPL
import board
import busio
uart = busio.UART(board.TX, board.RX, baudrate=9600)
uart.deinit()
uart = busio.UART(board.TX, board.RX, baudrate=9600)
Traceback (most recent call last):
File "", line 1, in
ValueError: Hardware in use, try alternative pins

Behavior
What I expect is that the deinit will release the bus, but it doesn't seem to. Is there an alternative way to release it?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions