Forums

Stopwatch for IAR

Started by strat_rocker August 10, 2007
Hi,

Does anyone know if IAR Embedded Workbench has a "stopwatch" feature to
time events/functions, etc..??

Thanks,

Rick

Beginning Microcontrollers with the MSP430

In the simulator it does. You can use this to work out HW independent functions timing.
For the HW, if you are using an MSP with the EEM (enhanced emulation) like the F16X, then I find
it handy to have a timer free running clocked from , say, the 8 MHz clock or a similar high speed.
(it must be synchronous to the CPU !)
If the debugger is set up to stop the timers on a breakpoint, then you can step in/over, break etc
and see *exactly* how many cycles you spent doing something.
Of course, if you wrap around the timer then you need to handle that with extra debug code unless
you have some extended timer func implemented in your ISR anyway.
I don't know about IAR, but in CrossWorks this runs beautifully. (I presume IAR is capable of this
as well).

Best Regards,
Kris

-----Original Message-----
From: m... [mailto:m...] On Behalf Of strat_rocker
Sent: Saturday, 11 August 2007 1:49 AM
To: m...
Subject: [msp430] Stopwatch for IAR
Hi,

Does anyone know if IAR Embedded Workbench has a "stopwatch" feature to
time events/functions, etc..??

Thanks,

Rick

Yahoo! Groups Links
I'm in simulator right now..it's probably staring right me, but I
don't see it (stopwatch).

Rick
--- In m..., "Microbit" wrote:
>
> In the simulator it does. You can use this to work out HW
independent functions timing.
> For the HW, if you are using an MSP with the EEM (enhanced
emulation) like the F16X, then I find
> it handy to have a timer free running clocked from , say, the 8 MHz
clock or a similar high speed.
> (it must be synchronous to the CPU !)
> If the debugger is set up to stop the timers on a breakpoint, then
you can step in/over, break etc
> and see *exactly* how many cycles you spent doing something.
> Of course, if you wrap around the timer then you need to handle
that with extra debug code unless
> you have some extended timer func implemented in your ISR anyway.
> I don't know about IAR, but in CrossWorks this runs beautifully. (I
presume IAR is capable of this
> as well).
>
> Best Regards,
> Kris
>
> -----Original Message-----
> From: m... [mailto:m...] On
Behalf Of strat_rocker
> Sent: Saturday, 11 August 2007 1:49 AM
> To: m...
> Subject: [msp430] Stopwatch for IAR
> Hi,
>
> Does anyone know if IAR Embedded Workbench has a "stopwatch"
feature to
> time events/functions, etc..??
>
> Thanks,
>
> Rick
>
>
> Yahoo! Groups Links
>
Hi Rick,

It's been a few years since I used IAR EW430, but IIRC you need to open a separate window,
somewhere : View -> Stopwatch or somesuch. (it might be called something else)
It's a separate window you have to enable from a sub menu to the main menu, I think...
If this doesn't help you, I'm sure some kickstarters here will guide you.
Else perhaps try the docs ?

Best Regards,
Kris

-----Original Message-----
From: m... [mailto:m...] On Behalf Of strat_rocker
Sent: Saturday, 11 August 2007 2:59 AM
To: m...
Subject: [msp430] Re: Stopwatch for IAR

I'm in simulator right now..it's probably staring right me, but I
don't see it (stopwatch).

Rick
Thanks Kris for the reply. I'll keep looking.
Just making the transition from MPLAB to IAR EW430.
I really like the feature in MPLAB.

Rick
--- In m..., "Microbit" wrote:
>
> Hi Rick,
>
> It's been a few years since I used IAR EW430, but IIRC you need to
open a separate window,
> somewhere : View -> Stopwatch or somesuch. (it might be called
something else)
> It's a separate window you have to enable from a sub menu to the
main menu, I think...
> If this doesn't help you, I'm sure some kickstarters here will
guide you.
> Else perhaps try the docs ?
>
> Best Regards,
> Kris
>
> -----Original Message-----
> From: m... [mailto:m...] On
Behalf Of strat_rocker
> Sent: Saturday, 11 August 2007 2:59 AM
> To: m...
> Subject: [msp430] Re: Stopwatch for IAR
>
> I'm in simulator right now..it's probably staring right me, but I
> don't see it (stopwatch).
>
> Rick
>
--- In m..., "strat_rocker" wrote:
>
> Thanks Kris for the reply. I'll keep looking.
> Just making the transition from MPLAB to IAR EW430.
> I really like the feature in MPLAB.
>
> Rick

Hi Rick,

I quickly fired up one of the other PCs where I still have a KS version
of EWARM installed. On EWARM it is under View -> Register.
In the Simulator Register window there is an entity called CYCLECOUNTER.
(You might have to enable display of CYCLECOUNTER under register
window, but it should be enabled by default).
EWARM-KS should be the same principle as EW430 I presume.
Try that. Good luck

If you're still at a stage where you're trying MSP430 tools, and you
liked MPLAB (which I found atrocious SW, especially to debug C), you
would love Crossworks for MSP430, it's packed with features. Compared
to MPLAB & others, you'll be beside yourself.
Don't know if that's in the budget though, but I can highly recommend
it ! Neatest IDE by miles, and the "stopwatch" is displayed in the
bottom status bar. A simple double click on it resets it to 0 at any
time. Definitely worth an eval try if you ask me.
-- Kris
----- Original Message -----
From: "strat_rocker"
To:
Sent: Friday, August 10, 2007 7:11 PM
Subject: [msp430] Re: Stopwatch for IAR
> Thanks Kris for the reply. I'll keep looking.
> Just making the transition from MPLAB to IAR EW430.
> I really like the feature in MPLAB.

I had a look and couldn't find it; I mostly use CrossWorks, anyway. I've
just been using the MPLAB one.

Leon
--
Leon Heller
Amateur radio call-sign G1HSM
Yaesu FT-817ND transceiver
Suzuki SV1000S motorcycle
l...@btinternet.com
http://webspace.webring.com/people/jl/leon_heller/
Kris,

I see it ; I'll give it a try.
It seems like that might be what I am looking for.
Unfortunately, we don't have a choice in the matter of selecting an
IDE.
But, will consider Crossworks for MSP430 for future projects.
It's actually cheaper than IAR. Crossworks is $995USD and IAR is
$2695USD.

Thanks again for your reply.

Rick

--- In m..., "Kris" wrote:
>
> --- In m..., "strat_rocker" wrote:
> >
> > Thanks Kris for the reply. I'll keep looking.
> > Just making the transition from MPLAB to IAR EW430.
> > I really like the feature in MPLAB.
> >
> > Rick
>
> Hi Rick,
>
> I quickly fired up one of the other PCs where I still have a KS
version
> of EWARM installed. On EWARM it is under View -> Register.
> In the Simulator Register window there is an entity called
CYCLECOUNTER.
> (You might have to enable display of CYCLECOUNTER under register
> window, but it should be enabled by default).
> EWARM-KS should be the same principle as EW430 I presume.
> Try that. Good luck
>
> If you're still at a stage where you're trying MSP430 tools, and
you
> liked MPLAB (which I found atrocious SW, especially to debug C),
you
> would love Crossworks for MSP430, it's packed with features.
Compared
> to MPLAB & others, you'll be beside yourself.
> Don't know if that's in the budget though, but I can highly
recommend
> it ! Neatest IDE by miles, and the "stopwatch" is displayed in the
> bottom status bar. A simple double click on it resets it to 0 at
any
> time. Definitely worth an eval try if you ask me.
> -- Kris
>