2023-11-29 12:09 PM
hello , where can i see cpu cycle count from one breakpoint to next breakpoint in stmcubeide ? i am using stm32f103 board.
Solved! Go to Solution.
2023-11-29 04:49 PM
There's nothing built-in that will do this.
You can set up a timer that has the same tick rate as the cpu and use that. You'll have to do the math yourself. And you'll have to set the timer so that it's stopped while the chip is paused in debug.
2023-11-29 04:49 PM
There's nothing built-in that will do this.
You can set up a timer that has the same tick rate as the cpu and use that. You'll have to do the math yourself. And you'll have to set the timer so that it's stopped while the chip is paused in debug.
2023-11-29 04:54 PM
The STM32F1 supports the DWT CYCCNT register, use that to count machine cycles.
2023-11-29 07:29 PM
if you want to know the running time between two breakpoint, one suggestion is using a Timer cnt and the other suggestion is to add gpio level change between these breakpoint and use logic analyzer or oscilloscope to measure the time.