cancel
Showing results for 
Search instead for 
Did you mean: 

Time Elapsed between Breakpoints STM32F051

vimmi
Associate II
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
3 REPLIES 3
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..
vimmi
Associate II
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.

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..