Using the following command, I can compile the app.c generated from Blink for Mica2.
avr-gcc -mmcu=atmega128 -Os -Wall -Wshadow -v -o test -fdollars-in-identifiers build/mica2/app.c On Tue, Aug 12, 2008 at 2:26 AM, Faisal Aslam <[EMAIL PROTECTED]> wrote: > Dear all, > > We wish to call TinyOS from our C code. Our C code already runs on motes > and we do not wish to replace it with TinyOS. However, we do not have > radio drivers or MAC protocols implemented in C. Therefore, we wish to > use TinyOS for drivers. > I think our problem could be solved if we can successfuly compile app.c > (produce by TinyOS make file) and can call its main method from our > exisiting C code. > However, when we tried to compile app.c (for mica2) using avr-studio > then it produces following error. > > Build started 11.8.2008 at 15:55:19 > avr-gcc.exe -mmcu=atmega128 -Wall -gdwarf-2 -O0 -MD -MP -MT app.o -MF > dep/app.o.d -c ../app.c > /opt/tinyos-2.x/tos/platforms/mica2/chips/cc1000/HplCC1000SpiP.nc:62: > internal compiler error: in start_function, at c-decl.c:6177 > Please submit a full bug report, > with preprocessed source if appropriate. > make: *** [app.o] Error 1 > Build failed with 1 errors and 0 warnings... > > I will be really thankful if someone can provide any pointers for > compiling app.c > > best regards, > Faisal > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
