cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407VG6 for UAVs?

EAktu.1
Associate II

 I am wondering, how can I measure the program execution cycle speed? How fast while(1) section loops and how fast I can read the values from the sensors?

This is the particular thing I wanna find out about.

Thanks,

Enes

1 REPLY 1

The MCU has a CYCCNT register in the DWT unit, use that.

https://community.st.com/s/question/0D53W000002hkJXSAY/where-are-dwtctrl-dwt-cyccnt-and-so-on-explained

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