Tried running it ober and over again...this what i am recieving serial@/dev/ttyUSB0:115200: bad packet serial@/dev/ttyUSB0:115200: ignoring unknown packet type 0x0 serial@/dev/ttyUSB0:115200: bad packet serial@/dev/ttyUSB0:115200: bad packet serial@/dev/ttyUSB0:115200: ignoring unknown packet type 0x0
any suggestions of what's wrong? On Mon, Jan 14, 2013 at 10:59 AM, Sarah John Mwariti <[email protected]>wrote: > Thanks all for the reply... > > I have taken all your comments into consideration. > > This what i get when i am trying to print.....It prints nothing > Thread[Thread-1,5,main]serial@/dev/ttyUSB0:115200: resynchronising > > Any suggestion of what i didnt do? > > > > > On Thu, Jan 10, 2013 at 2:01 PM, Saeid Yazdani <[email protected]>wrote: > >> Do you have the following line in your configuration file? >> >> components SerialPrintfC; >> >> notice that you don't need to wire it to anything. >> >> >> >> >> On 10-1-2013 9:28, Sarah John Mwariti wrote: >> >> Happy new year guys... >> >> I want to use printf statements in an application and I added the >> following flags in the makefile. >> CFLAGS += -I$(TOSDIR)/lib/printf >> CFLAGS += -DPRINTF_BUFFER_SIZE=250 >> >> >> and i have added include :#include "printf.h" header file >> >> but when i make telosb install, i get the following errors >> >> " >> /opt/tinyos-2.1.2/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: >> #warning "*** LOW POWER COMMUNICATIONS DISABLED ***" >> /opt/tinyos-2.1.2/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:68:4: >> warning: #warning Accessing TimerA for ADC12 >> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc: In function >> ‘SensirionSht11LogicP__0__readSensor__runTask’: >> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc:322:11: >> warning: variable ‘crc’ set but not used [-Wunused-but-set-variable] >> /opt/tinyos-2.1.2/tos/chips/msp430/adc12/AdcStreamP.nc: In function >> ‘AdcStreamP__nextBuffer’: >> /opt/tinyos-2.1.2/tos/chips/msp430/adc12/AdcStreamP.nc:191:20: warning: >> variable ‘tmp_count’ set but not used [-Wunused-but-set-variable] >> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc: In function >> ‘SensirionSht11LogicP__0__performCommand’: >> /opt/tinyos-2.1.2/tos/chips/sht11/SensirionSht11LogicP.nc:193:19: >> warning: variable ‘crc’ set but not used [-Wunused-but-set-variable] >> /opt/msp430-46/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o): >> In function `printf': >> /home/cire/mm/w/tp/tinyos-2.x/tools/platforms/msp430/toolchain-46/msp430-libc-20120224/src/./stdlib/printf.c:42: >> undefined reference to `putchar' >> /opt/msp430-46/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(printf.o): >> In function `vprintf': >> /home/cire/mm/w/tp/tinyos-2.x/tools/platforms/msp430/toolchain-46/msp430-libc-20120224/src/./stdlib/printf.c:50: >> undefined reference to `putchar' >> collect2: ld returned 1 exit status >> make: *** [exe0] Error 1 >> >> >> >> >> Please help! >> >> >> _______________________________________________ >> Tinyos-help mailing >> [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
