Page 1 of 1

Clock speed increase?

Posted: Tue Feb 25, 2020 5:43 am
by ZeekDev
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?

Re: Clock speed increase?

Posted: Tue Feb 25, 2020 5:49 am
by pythoncoder
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.