2015-09-10 10:10 AM
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 Adeshra2015-09-10 10:45 AM
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?
2015-09-10 11:40 AM
2015-09-10 12:04 PM
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?