cancel
Showing results for 
Search instead for 
Did you mean: 

measuring of execution time

martindida
Associate II
Posted on October 28, 2012 at 20:05

Hi everybody.

Is it possible to measure execution time of program when I debug the program by using of hardware debugger ST-LINK V/2? I use uVision 4 studio (lite version) by KEIL and discovery board for STM32f0 with built in ST-LINK debugger.

Thanks.                          Martin.
1 REPLY 1
Posted on October 29, 2012 at 15:25

The F0 implementation doesn't have a core cycle counter.

Set up one of the timers, and read the CNT register at stopwatch points, should be able to deal with code up to 65535 cycles.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..