Thank you very much for your answer. But I think I don't understand you with the standard Blink program, I'm using the one in apps folder, without modifying it, just compiling and taking the app.c that appeared in build folder. The problem I think is it doesn't translate well into C, because at the beginning of the code there are lines that I think they should be comments, but instead of "//" they have "#" at the start. The problem is I don't know why. For example I have this one in the app.c from Blink:
# 151 "/opt/msp430/lib/gcc-lib/msp430/3.2.3/include/stddef.h" 3 But when I worked with others uC those lines where always like: //# 151 "/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/stddef.h" 3 And also when defining structs it has in the middle: __attribute__((packed)) While with the ones i wirked before was commented: /*__attribute__((packed))*/ I hope I made myself clear and some of you know what I'm doing wrong. Regards Alfonso Martínez Con fecha 28/4/2010, "THE BEST ILM" <[email protected]> escribió: >Dear ALFONSO > >IT is not basic question, we all are learners and should help each other > >for loading the program you should execute > >make platform_name install >eg make telosb install > >these error are i think with the error in writing program,use standard Blink >program in apps, it should rum without errors. > > >--- On Wed, 4/28/10, ALFONSO MARTINEZ DE LA TORRE <[email protected]> >wrote: > >> From: ALFONSO MARTINEZ DE LA TORRE <[email protected]> >> Subject: [Tinyos-help] Working with TinyOs and MSP430 >> To: [email protected] >> Date: Wednesday, April 28, 2010, 5:15 PM >> Hi! >> >> We are working on a new platform with MSP430FG439, for now >> we are trying >> to compile Blink and debug it, it goes OK, but went I try >> to open the >> app.c generated with the Code Composers it gives us a >> million errors >> like: >> >> "../app.c", line 3: error: expected an identifier >> "/usr/lib/ncc/nesc_nx.h", line 386: error: "__attribute__" >> has >> already been declared in the current scope >> "/opt/msp430/msp430/include/sys/reent.h", line 227: error: >> identifier >> "__extension__" is undefined >> >> How can I fix that so I can debug it as an standard C >> file? >> And how can I download it inte my MSP430 using the USB >> ports? >> >> Sorry if the questions are a bit basic, we are just >> starting with TinyOS >> and we have a world of doubts. >> >> Best Regards! >> Alfonso Martínez >> >> _______________________________________________ >> 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
