cancel
Showing results for 
Search instead for 
Did you mean: 

How to count cycles with the ARM simulator

kostyak
Associate II
Posted on July 17, 2008 at 17:02

How to count cycles with the ARM simulator

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

16-32micros
Associate III
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

john
Associate II
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.