Skip to main content
martindida
Associate II
October 28, 2012
Question

measuring of execution time

  • October 28, 2012
  • 1 reply
  • 787 views
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.
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    October 29, 2012
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..