Time Elapsed between Breakpoints STM32F051
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-09-10 10:10 AM
Posted on September 10, 2015 at 19:10
Hello,
We are using STM32F051R8T6 microcontroller and IAR Embedded Workbench IDE. We want to know the time elapsed between breakpoints. How can I see during debugging the code? Thanks, Vimmi Adeshra
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-09-10 10:45 AM
Posted on September 10, 2015 at 19:45
Well Keil has a little indicator in the status baseline of the debug view. Honestly I think it's a pretty useless metric, perhaps there's a better way of doing what you want to achieve?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-09-10 11:40 AM
Posted on September 10, 2015 at 20:40 Hi Clive1, We have a breakpoint in the code, which should occur every 250ms. We want to see the actual timing to see if it occurs every 250ms.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-09-10 12:04 PM
Posted on September 10, 2015 at 21:04
You're going to need very good reaction time.
Can't you just have it toggle a GPIO/LED, and measure it with a scope, it would be non-invasive, and not require you to have a sharp reaction time, or require the debugger to disable timers, etc. Does the M0 have the DWT_CYCCNT counter? Do you have a timer you can use as a time-stamp, and can you output the delta-time via a serial console or something. Keil has a time indicator, perhaps IAR does too, or you can ask on an IAR support forum?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
