avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] AVR Studio and Hardware: results don't match. Anyclue


From: Gavin Jackson
Subject: RE: [avr-gcc-list] AVR Studio and Hardware: results don't match. Anyclue?
Date: Wed, 30 May 2007 09:02:07 +1200

How are you determining 'time', are you converting your clock cycles into time based on your clock frequency or are you allowing AVR Studio to calculate it for you? If the latter is true have you told AVR Studio the correct clock frequency you are using?
 
Since you don't have proper hardware connected to port pins in the simulator you may have software timeouts occurring in your application while waiting for external hardware to respond. It's hard to give you a specific reason when there could be so many things that influence your measurements.

Gavin Jackson
-------------------------------------------
Research & Development Engineer
Tru-Test Limited
PO Box 51078
Pakuranga
Manukau 2140
Auckland, New Zealand
DDI +64 9 978 8757
-------------------------------------------

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Leonardo B. Oliveira
Sent: Wednesday, 30 May 2007 3:42 a.m.
To: address@hidden
Subject: [avr-gcc-list] AVR Studio and Hardware: results don't match. Anyclue?


Hello everyone,

I've measured running time for a program in AVR Studio and also in MICAz sensor node.
MICAz is featured w/ the ATmega128 microcontroler.  However, the results I've got don't match. In reality, the results in the simulator were much faster. I know that when loading software on nodes other software is also loaded ( e.g. TinyOS). But, at least, they are not supposed to interfere that much in the performance. Besides, the results I've got in the simulator are twice as fast.

So my questions are
1) Is AVR Studio an accurate simulator?
2) I also have the STK300 AVR JTAG ICE. If I run the same program using  both the board and the AVR Studio (by means of the JTAG), will the clock cycles exhibit in the simulator be taken from the real board? Or will they be the same of running the simulator alone?

Anyway, I'm newbie concerning AVR platforms and I'd like to know how performance numbers are usually measured in those devices. Any help would be much appreciated.

Thanks in advance.

--
Cheers,

  Leonardo

Alice:..wondering u could help me find my way
Cat:It depends on where u want to get to
Alice: It really doesn't matter, as long as...
Cat: So it really doesn't matter which way u go
reply via email to

[Prev in Thread] Current Thread [Next in Thread]