[Tinyos-help] Basic compilation of an nesc application
Uri Avraham
URIA at il.ibm.com
Sun Sep 14 07:36:35 PDT 2008
Hi,
I am a new user of TinyOS.
I just installed TinyOS 2.0.2 with Atmel AVR Tools and with nesc-1.2.8
compiler. I'm trying to compile the 'Blink' demo-application that is
located in "/tinyos-2.x/apps/Blink/" by typing:
"ncc -o main.exe -target=mica2 BlinkAppC.nc".
I get the following error message:
"as: unrecognized option `-mmcu=atmega128'"
Can anyone help me with that? What am I doing wrong?
Here is the code of BlinkAppC.nc:
configuration BlinkAppC
{
}
implementation
{
components MainC, BlinkC, LedsC;
components new TimerMilliC() as Timer0;
components new TimerMilliC() as Timer1;
components new TimerMilliC() as Timer2;
BlinkC -> MainC.Boot;
BlinkC.Timer0 -> Timer0;
BlinkC.Timer1 -> Timer1;
BlinkC.Timer2 -> Timer2;
BlinkC.Leds -> LedsC;
}
Thanks,
Uri Avraham
Model Driven Engineering Technologies
IBM Haifa Research Lab
Phone: 972-52-5563829
Lotus Notes: Uri Avraham/Haifa/IBM at IBMIL
Email:URIA at il.ibm.com
More information about the Tinyos-help
mailing list