-->
Steps
to install AVRORA
Step
0: Get Java!
Avrora
is implemented in Java, and therefore it requires that you have a
functional Java Virtual Machine installed. Once the JVM is installed
and you are able to run java at the command line, you're ready to
continue to the next step.
Freely
available Java Virtual Machine implementations are available from
both Sun Microsystems and IBM.
See
http://java.sun.com to download the Sun Java implementation for your
platform.
Avrora
is not dependent on the particular Java implementation that you
choose.
step1:Download
the Avrora JAR Archive
Download
the latest JAR archive release from
"http://compilers.cs.ucla.edu/avrora/release.html". Simply
save the JAR file to your disk.
Copy
the avrora jar file(avrora-beta-1.6.0.jar in this case) in a
directory say "home/test/avrora/avrora-beta-1.6.0.jar"
copy
the following code to ".bashrc" to set path
alias
avrora='java -jar /home/test/avrora/avrora-beta-1.6.0.jar'
Close
all the shells opened
Open
a new shelll and type "avrora" if no error then avrora is
successfully install.
Step
2:Compile
1>The
Atmel assembler syntax. Files that end with the .asm extension are
assumed to be in this format. Files in this format can be loaded
directly by Avrora.
2>The
GNU assembler (GAS) syntax. Files that end with the .s extension are
assumed to be in this format.
3>The
output of the avr-objdump utility. Files that end with the .od
extension are assumed to be in this format. Avrora cannot directly
load ELF or SREC images, therefore binary programs in those formats
must be converted to a textual format with avr-objdump
1>
To run Blink application goto Blink directory then type the follwing
make
micaz
2>
convert the executable file main.exe to .od file by typing
avr-objdump
-zhD build/mica2/main.exe > blink.od
Step
3: Test Simulation
In
order to select a multi-node simulation, we will need to specify the
"simulation" option with the value "sensor-network".
This tells Avrora to the simulation type is a sensor network,
rather than the default, single node simulation.
type
avrora
-simulation=sensor-network -seconds=5.0 -nodecount=15 blink.od
Note
that only AVR platforms such as Mica2/Micaz is supported by Avrora
For
more information visit to "http://compilers.cs.ucla.edu/avrora/"
No comments:
Post a Comment