2020-07-20 10:18 AM
Hello, I am following " MOOC - MOOC - STM32F7 hands-on workshop" from STM official YouTube channel . In workshop there is example code to measure number of clock cycle spent for piece of code with TIM_MEASURE_START and TIM_MEASURE_END. As there are using different IDE, I can't use same code and not able to find definition of TIM_MEASURE_START , TIM_MEASURE_END. For reference I am adding main.c of code.
We can download full example code with below link. I am referring for example code "Hands_on\Projects\STM32F7-Discovery\01_averageBenchmark".
https://drive.google.com/file/d/17NLix6YCmvzb9F9AiBXv4Avv5ylJOPrE/view
Any help.
https://www.youtube.com/playlist?list=PLnMKNibPkDnHxpOv2HETihQy5HHQGv2nS
2020-07-20 11:15 AM
Can't you just use 32-bit TIM2 or TIM5 free running, or DWT_CYCCNT ?
Or Google
http://www.tjaekel.com/eth/doxygen/main_8h.html
2020-07-20 11:46 AM
Yes but its good to check others implementation and get inspired. Anyway thanks for comment.