2008-06-06 01:42 AM
Code Simulation and Debug with IAR EWB
2011-05-17 03:36 AM
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.. :-[ Michael2011-05-17 03:36 AM
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.2011-05-17 03:36 AM
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.2011-05-17 03:36 AM
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 manual2011-05-17 03:36 AM
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!!!