← index #5366Issue #13646
Related · high · value 2.518
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 · ISSUE

stm32/machine.freq: Only one argument accpted.

closedby robert-hhopened 2024-02-12updated 2024-02-12
port-stm32

As part of the harmonization of the machine.freq() method, the ability was lost for the STM32 port to define APB1 and APB2 frequencies as well. They are now always SYCLK/2 and SYSCLK/4. The function mp_machine_set_freq() in modmachine.c still attempts to evaluate additional arguments, but they are rejected in extmod/modmachin.c.

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