cancel
Showing results for 
Search instead for 
Did you mean: 

Code Simulation and Debug with IAR EWB

michaellange9
Associate II
Posted on June 06, 2008 at 10:42

Code Simulation and Debug with IAR EWB

5 REPLIES 5
michaellange9
Associate II
Posted on May 17, 2011 at 12:36

Hello,

I'm trying hard to simulate code in the IAR-Embedded Workbench (for ARM 4.42A, connected with J-Link to the STM3210B-Eval-Kit). How can I step through the code every single clock-cycle? i.e. to watch the timer counting up. Is there a option to switch to executing one clock cycle? My timer value jumps from 55 to 3519 by clicking ''step into F11''...

Which tools are you using for simulation and debugging? I'm not so happy about the IAR-Debugger.. :-[

Michael

jj
Associate II
Posted on May 17, 2011 at 12:36

Have also been less than impressed with simulation.

There is an upgraded KS (kickstart) version 5.x

which claims Cortex improvements.

Keil has a similar free IDE but limits you to 1/2

the 32KB of the IAR. You may want to try/contrast

it.

michaellange9
Associate II
Posted on May 17, 2011 at 12:36

The ''old'' examples which come with UM0427 Rev 2 don't work with EWB 5.x.

I hope Rev 3 will work with EWB 5.x, so I have to go through the new examples.

janis
Associate II
Posted on May 17, 2011 at 12:36

You can specify in debug control register(DBGMCU_CR)if timer should stop or keep counting when core is stopped.

Take a look - page 487 in RM0008/Reference manual

michaellange9
Associate II
Posted on May 17, 2011 at 12:36

Great, janis, thats it!!!

It was not so easy to set that bit but I got it work... In firmware Rev 3 it should be easier.

Thank you very much!!!