← index #5366PR #5396
Off-topic · high · value 0.584
QUERY · ISSUE

STM32: machine.freq unsupported on F0, L0, L4 and WB

openby 459548764opened 2019-11-29updated 2019-12-02
port-stm32

When I set pyb.freq(30000000) it occurs an error that I can't change the frequency. How should I do?

CANDIDATE · PULL REQUEST

stm32/uart: Add support for LPUART1 on L0, L4, H7 and WB MCUs.

closedby chrismas9opened 2019-12-08updated 2021-02-24
port-stm32

Add LPUART1 as a standard UART. No low power features are supported.
LPUART1 is enabled as the next available UART after the standard U(S)ARTs.
STM32WB: LPUART1 = UART(2)
STM32L0: LPUART1 = UART(6)
STM32L4: LPUART1 = UART(6)
STM32H7: LPUART1 = UART(9)

LPUART1 is enabled by defining MICROPY_HW_LPUART1_TX and MICROPY_HW_LPUART1_RX in mpconfigboard.h

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied