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?
Clock speed increase?
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Clock speed increase?
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:
If you're running a standard build of firmware yet it runs at that speed on power up you could have a defective board.
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)
>>>
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.