breakpoint to breakpoint cycle count ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Labels:
-
STM32F1 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-29 4: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-29 4: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-29 4:54 PM
The STM32F1 supports the DWT CYCCNT register, use that to count machine cycles.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-29 7: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.
