Re: [Tinyos-help] Printf error

2013-10-01 Thread João Amaral
I myself also am experiencing this exact same error.

I am able to use printf() and run PrintfClient utility without problems if I
use it in a dummy application, but when I try to use it in my application
using BLIP I get this exact error. I've tried commenting out instruction
#include blip_printf.h because I am using #include printf.h, but I
still get the same errors.

I am using TinyOS 2.1.2.1 with msp430-gcc (GCC) 4.6.3 20120301 and TelosB
hardware. I use make telosb blip to compile my application.



--
View this message in context: 
http://tinyos-help.10906.n7.nabble.com/Printf-error-tp23339p23568.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Printf error

2013-10-01 Thread wasif masood
how is your wiring? coz I guess in the 2.x, you also need to declare PrintC
component!


On Tue, Oct 1, 2013 at 12:53 PM, João Amaral jpgama...@gmail.com wrote:

 I myself also am experiencing this exact same error.

 I am able to use printf() and run PrintfClient utility without problems if
 I
 use it in a dummy application, but when I try to use it in my application
 using BLIP I get this exact error. I've tried commenting out instruction
 #include blip_printf.h because I am using #include printf.h, but I
 still get the same errors.

 I am using TinyOS 2.1.2.1 with msp430-gcc (GCC) 4.6.3 20120301 and TelosB
 hardware. I use make telosb blip to compile my application.



 --
 View this message in context:
 http://tinyos-help.10906.n7.nabble.com/Printf-error-tp23339p23568.html
 Sent from the TinyOS - Help mailing list archive at Nabble.com.
 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Wasif Masood
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Printf error

2013-10-01 Thread João Amaral
I declare both components PrintfC and SerialStartC, define
NEW_PRINTF_SEMANTICS and include printf.h.



--
View this message in context: 
http://tinyos-help.10906.n7.nabble.com/Printf-error-tp23339p23571.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Printf error

2013-07-03 Thread Eric Decker
On Wed, Jul 3, 2013 at 2:50 AM, mjmohiud...@cdac.in wrote:


 /opt/tinyos-main/tos/lib/printf/printf.h:72: warning: useless keyword or
 type name in empty declaration
 /opt/tinyos-main/tos/lib/printf/printf.h:72: warning: empty declaration
 /opt/tinyos-main/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
 *** LOW POWER COMMUNICATIONS DISABLED ***
 /opt/tinyos-main/tos/chips/cc2420/link/PacketLinkC.nc:38:2: warning:
 #warning *** USING PACKET LINK LAYER
 In file included from /opt/tinyos-main/tos/lib/printf/PrintfC.nc:62,
  from NDC.nc:32,
  from TestAppC.nc:12:
 In component `PrintfP':
 /opt/tinyos-main/tos/lib/printf/PrintfP.nc:130: warning: useless keyword
 or type name in empty declaration
 /opt/tinyos-main/tos/lib/printf/PrintfP.nc:130: warning: empty declaration
 /opt/tinyos-main/tos/lib/printf/PrintfP.nc:130: syntax error before `{'
 /opt/tinyos-main/tos/lib/printf/PrintfP.nc:136: warning: type defaults to
 `int' in declaration of `state'
 /opt/tinyos-main/tos/lib/printf/PrintfP.nc:136: conflicting types for
 `state'
 /opt/tinyos-main/tos/lib/printf/PrintfP.nc:107: previous declaration of
 `state'
 /opt/tinyos-main/tos/lib/printf/PrintfP.nc:136: warning: data definition
 has no type or storage class
 /opt/tinyos-main/tos/lib/printf/PrintfP.nc:138: syntax error before
 `sendNext'
 PrintfP: `AMSend.sendDone' not implemented
 PrintfP: `Putchar.putchar' not implemented


 Please Tell me the solution


Ah.   You are not exactly making this easy for people to help you.

You don't say what version of TinyOS you are working with.

You don't say what app you are trying to build.

You don't give an example of the line that is being bitched about.

You don't tell us what version of the toolchain you are using.


You don't tell us what platform you are building for.




Think to yourself what information would you need for this problem if
someone was asking you for help.



Typically this kind of nonsense question gets silently ignored but I'm
feeling generous.






 ---

 This e-mail is for the sole use of the intended recipient(s) and may
 contain confidential and privileged information. If you are not the
 intended recipient, please contact the sender by reply e-mail and destroy
 all copies and the original message. Any unauthorized review, use,
 disclosure, dissemination, forwarding, printing or copying of this email
 is strictly prohibited and appropriate legal action will be taken.

 ---

 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] printf error

2013-01-16 Thread Dang Thi Hai Ha
In that case, please read this tutorial:
http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarderto
see the configuration of the packet :-)

Good luck !

HH.

On Wed, Jan 16, 2013 at 8:24 AM, Sarah John Mwariti saraah1...@gmail.comwrote:

 Hi,

 Thank you, i have reset the motesand i tried listening...

 it gives me the following resultswhich i dont think there are
 correct...i am running the room temperature application.

 00 FF FF 00 01 1C 22 93 00 00 01 00 00 01 00 67 00 1C 00 1C 00 1C 00 1C 00
 1C 00 1C 00 1C 00 1C 00 1C 00 1C
 00 FF FF 00 01 1C 22 93 00 00 01 00 00 01 00 68 00 1C 00 1C 00 1C 00 1C 00
 1C 00 1C 00 1C 00 1C 00 1C 00 1C
 00 FF FF 00 01 1C 22 93 00 00 01 00 00 01 00 69 00 1C 00 1C 00 1C 00 1C 00
 1C 00 1C 00 1C 00 1C 00 1C 00 1C
 00 FF FF 00 01 1C 22 93 00 00 01 00 00 01 00 6A 00 1C 00 1C 00 1C 00 1C 00
 1C 00 1C 00 1C 00 1C 00 1C 00 1C

 How do i read these values?

 Thank you in-advance!


 On Tue, Jan 15, 2013 at 4:22 PM, Dang Thi Hai Ha hris2...@gmail.comwrote:

 I may suggest you to reset your mote, re-install the programme on your
 mote and retry with the serial listenning...

 HH.


 On Tue, Jan 15, 2013 at 2:36 PM, Sarah John Mwariti saraah1...@gmail.com
  wrote:

 Tried running it ober and over again...this what i am receiving

 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

 Sometimes i still recieve this problem...not returning anything:

 Thread[Thread-1,5,main]serial@/dev/ttyUSB0:115200: resynchronising


 I NEED HELP: any suggestions of what's wrong OR what i should do?

  Your Reply will be Highly appreciated.


 On Mon, Jan 14, 2013 at 11:01 AM, Sarah John Mwariti 
 saraah1...@gmail.com wrote:

 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 
 saraah1...@gmail.com 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 sy.kal...@gmail.comwrote:

  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 
 listTinyos-help@millennium.berkeley.eduhttps://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help






 

Re: [Tinyos-help] printf error

2013-01-15 Thread Sarah John Mwariti
Tried running it ober and over again...this what i am receiving

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

Sometimes i still recieve this problem...not returning anything:

Thread[Thread-1,5,main]serial@/dev/ttyUSB0:115200: resynchronising


I NEED HELP: any suggestions of what's wrong OR what i should do?

Your Reply will be Highly appreciated.


On Mon, Jan 14, 2013 at 11:01 AM, Sarah John Mwariti
saraah1...@gmail.comwrote:

 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 saraah1...@gmail.com
  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 sy.kal...@gmail.comwrote:

  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 
 listTinyos-help@millennium.berkeley.eduhttps://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help





___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] printf error

2013-01-15 Thread Dang Thi Hai Ha
I may suggest you to reset your mote, re-install the programme on your mote
and retry with the serial listenning...

HH.

On Tue, Jan 15, 2013 at 2:36 PM, Sarah John Mwariti saraah1...@gmail.comwrote:

 Tried running it ober and over again...this what i am receiving

 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

 Sometimes i still recieve this problem...not returning anything:

 Thread[Thread-1,5,main]serial@/dev/ttyUSB0:115200: resynchronising


 I NEED HELP: any suggestions of what's wrong OR what i should do?

 Your Reply will be Highly appreciated.


 On Mon, Jan 14, 2013 at 11:01 AM, Sarah John Mwariti saraah1...@gmail.com
  wrote:

 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 
 saraah1...@gmail.com 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 sy.kal...@gmail.comwrote:

  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 
 listTinyos-help@millennium.berkeley.eduhttps://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help






 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] printf error

2013-01-14 Thread Sarah John Mwariti
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 sy.kal...@gmail.com 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 
 listTinyos-help@millennium.berkeley.eduhttps://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] printf error

2013-01-14 Thread Sarah John Mwariti
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
saraah1...@gmail.comwrote:

 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 sy.kal...@gmail.comwrote:

  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 
 listTinyos-help@millennium.berkeley.eduhttps://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] printf error

2013-01-10 Thread Saeid Yazdani

  
  
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 list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


  

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help