[Nucleo-H743ZI2] System clock around 800 MHz is this possible?

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
zum
Posts: 6
Joined: Fri Nov 19, 2021 1:39 pm

[Nucleo-H743ZI2] System clock around 800 MHz is this possible?

Post by zum » Thu Jan 06, 2022 4:58 pm

Hey everybody
I had just the quick question if the result from machine.freq() or pyb.freq() is true.

Code: Select all

[sys,kcl,p1,p2]=machine.freq() 

Code: Select all

[sys,kcl,p1,p2]=pyb.freq() 
In both function calls the result was 0x2FAF0801.
On the Thonny IDE
On the rshell the result printed out was 400 MHz, which sound for me more logic.
the rshell answer is the right solution right?

Thanks for your answers

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: [Nucleo-H743ZI2] System clock around 800 MHz is this possible?

Post by dhylands » Thu Jan 06, 2022 6:25 pm

To be honest, I don't understand how you could get different results from rshell versus thonny. rshell doesn't reconfigure anything related to frequency on the board, so you should get the exact same results with rshell as you should with a simple serial terminal like picocom/minicom etc.

zum
Posts: 6
Joined: Fri Nov 19, 2021 1:39 pm

Re: [Nucleo-H743ZI2] System clock around 800 MHz is this possible?

Post by zum » Thu Jan 06, 2022 8:15 pm

I don't know why my Thonny IDE is bugging or what I did wrong with it.
But also for simple calculations it shows me the double of the result +1.

But are the 400 MHz the default system clock frequency for the NUCLEO-H743ZI2 board?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: [Nucleo-H743ZI2] System clock around 800 MHz is this possible?

Post by dhylands » Thu Jan 06, 2022 8:46 pm

It looks like the NUCLEO_H743ZI2 includes most of the definitions from the NUCLEO_H743ZI board and it has this line in it:
https://github.com/micropython/micropyt ... oard.h#L16

So yeah - it looks like 400 MHz is the default CPU frequency.

zum
Posts: 6
Joined: Fri Nov 19, 2021 1:39 pm

Re: [Nucleo-H743ZI2] System clock around 800 MHz is this possible?

Post by zum » Sat Jan 08, 2022 9:05 am

thanks a lot

Post Reply