← index #5366Issue #4737
Related · high · value 2.340
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

ports/stm32: Can't change CPU frequency on NUCLEO_F401RE board

closedby dhylandsopened 2019-05-01updated 2019-05-02
port-stm32

Trying to change the frequency using the latest master causes a FATAL ERROR.

I tested using pyb and machine modules and tried various frequencies like 42 MHz and 64 MHz).

All attempts result in this:

MicroPython v1.10-290-g8402c26cf-dirty on 2019-05-01; NUCLEO-F401RE with STM32F401xE
Type "help()" for more information.
>>> machine.freq(42000000)

FATAL ERROR:
can't change freq

Originally brought up in the forum: https://forum.micropython.org/viewtopic.php?f=12&t=6365&p=36215

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