Clock speed increase?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
ZeekDev
Posts: 9
Joined: Mon Feb 24, 2020 7:51 pm

Clock speed increase?

Post by ZeekDev » Tue Feb 25, 2020 5:43 am

My clock speed is stuck at ~5-10 MHZ, but the limit for my board (pyboard 1.1) is 168MHZ. My script takes about 30 minutes to run (400 lines)

I've tried importing machine and using machine.freq() but it doesnt seem to be a defined function,
any way I can force the CPU to run at a speed faster than this?

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Clock speed increase?

Post by pythoncoder » Tue Feb 25, 2020 5:49 am

This is bizarre. It should run at 168MHz by default. Can you post the text printed when you reboot the board (ctrl-d) and the outcome of issuing pyb.freq()? For reference here is what I see:

Code: Select all

MicroPython v1.12-69-g9e750b613 on 2020-01-08; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>> 
>>> import pyb
>>> pyb.freq()
(168000000, 168000000, 42000000, 84000000)
>>> 
If you're running a standard build of firmware yet it runs at that speed on power up you could have a defective board.
Peter Hinch
Index to my micropython libraries.

Post Reply