cancel
Showing results for 
Search instead for 
Did you mean: 

how to validate whether the stm32f4 is working in 180MHz

ANNU CHERIAN
Associate II
Posted on October 05, 2017 at 15:16

Hi,

We are facing  a problem, any help will be greatly appreciated.

I am using stm32f446zet.  I have set to 180MHz system clock , but GPIO pin toggles at  8 MHz. We are using OPT8320 TOF sensor whose opclk runs at 24MHz and receives data at each falling edge of its opclk. To properly receive data without any missing, what should be done? Now we are getting 1 data for 5 opclk.

What is the procedure to validate whether the stm32f4 is working in 180MHz ?

Turvey.Clive.002

null
2 REPLIES 2
Uwe Bonnes
Principal II
Posted on October 05, 2017 at 16:07

Several possible ways:

- Connect with a debugger, stop the CPU while running and decode the RCC register setting.

- Program some MCO output to output a divided SYSCLK and check with a scope/frequency counter

- Use some timer to get the relation between SYSCLK and HSI

- Review the code

Posted on October 05, 2017 at 16:32

Output internal clocks via MCO to confirm rates, use a scope.

>>To properly receive data without any missing, what should be done?

Perhaps by not using GPIO bit-banging as a means of communicating? Review use of FSMC, SPI, DCMI, etc.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..