Skip to main content
kostyak
Associate II
July 17, 2008
Question

How to count cycles with the ARM simulator

  • July 17, 2008
  • 3 replies
  • 912 views
Posted on July 17, 2008 at 17:02

How to count cycles with the ARM simulator

    This topic has been closed for replies.

    3 replies

    16-32micros
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:23

    Hello Manfred,

    I've tried the same and sometimes a get some trouble with Keil simulator and I think that it is not reliable with some instructions like STR and LDR. This discussion has pointed this, some time ago :

    http://www.st.com/mcu/forums-cat-6133-23.html&start=30

    .

    You can simply use the systick counter on real evaluation board of STM32 It is more accurate and can provide you the exact CPU cycles for your becnhmark routines. Regards STOne-32

    kostyak
    kostyakAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 12:23

    Hi !

    How can I count execution cycles with the Keil MDK ?

    How can I do this with the simulator. Is the simulator

    count reliable ?

    I'm using the STM32 Keil Board.

    regards

    Manfred

    john
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:23

    How would you use the systick to count CPU cycles ?

    Would this work over a STOP mode (ie. no cycles are counted) ?

    Thanks,

    John.