Measure execution time with clock cycle counter on STM32 Posted by Albundy1 on 2016-01-20 23:13 Dear all, How can I read the clock cycle counter for measuring execution times with OpenSTM32 and ST-Link .The MCU is an STM32L152RE KR Al
Posted by mazensaad on 2016-02-16 19:34 Hi, I did not understand the question fully, But if you want to measure for example a function how long it take to finish you can steup a timer with a high reslution and start the timer before the function call and capture the time and capture the time after the function finish. mazen
Posted by davemr on 2018-09-13 00:48 Hi, I think the question was: How to display the clock cycle counter (CYCCNT) register in the gdb debugger? I am facing the same issue 😊 David
Posted by davemr on 2018-09-14 00:32 Add the contents of the attached System View Description to the svd for the processor you are using. Enable the CYCCNTENA in the CTRL register. Assuming the cycle count register is implemented in the MCU you are using, you are good to go 😊 stm32_dwt.svd (5.74 Kb)