Skip to main content
michaellange9
Associate III
June 6, 2008
Question

Code Simulation and Debug with IAR EWB

  • June 6, 2008
  • 5 replies
  • 1298 views
Posted on June 06, 2008 at 10:42

Code Simulation and Debug with IAR EWB

    This topic has been closed for replies.

    5 replies

    michaellange9
    Associate III
    May 17, 2011
    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

    janis
    Associate II
    May 17, 2011
    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 III
    May 17, 2011
    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.

    jj_it
    Associate II
    May 17, 2011
    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 III
    May 17, 2011
    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!!!