the tutorial on the tinyos website about printf is very clear about this subject
good luck
> Date: Sat, 25 Apr 2009 18:53:32 -0600
> From: sc...@santafe.edu
> To: rranno...@yahoo.fr
> CC: tinyos-help@millennium.berkeley.edu
> Subject: Re: [Tinyos-help] Tr : Problem with make telosb
>
> You'll need to look into the pseudo-printf library fot the motes.
> The only connection between your host and the mote is via that
> USB line using TOS messages. Welcome to debugging embedded systems.
> MS
>
>
> Rannouna Rania wrote:
> >
> > Hi,
> >
> > Thank you for your help, in fact I have some printf debug message in the
> > file .c in the library that I include in my nesC application this is the
> > problem.
> > Now the compilation is done with success but I want when I execute on
> > the telosb the debug message dbg(DBG_USR1," test \n ")
> > that I include in the nesC application don' t appear on the screen.
> > Have you please any idea about how can I can do this because I need them
> > to test the time for example?
> > Thank you in advance.
> > Best Regards,
> > Rania
> >
> >
> >
> > ----- Message transféré ----
> > *De :* Michael Schippling <sc...@santafe.edu>
> > *À :* Rannouna Rania <rranno...@yahoo.fr>
> > *Cc :* tinyos-help@millennium.berkeley.edu
> > *Envoyé le :* Samedi, 25 Avril 2009, 15h36mn 48s
> > *Objet :* Re: [Tinyos-help] Problem with make telosb
> >
> > It looks like you are trying to compile something that has a
> > printf debug message in it? There is a printf lib for TOS,
> > but otherwise it's not supported in the system.
> >
> > MS
> >
> > Rannouna Rania wrote:
> > > Hi all,
> > >
> > > I am trying to compile my application on a real mote (telosb) (the
> > compiltion on a pc work correctly).
> > > The problem that when I compile using make telosb I have this output:
> > >
> > > /$ make telosb/
> > > /mkdir -p build/telosb/
> > > / compiling Eta to a telosb binary/
> > > /ncc -o build/telosb/main.exe -O -I. -Wall -Wshadow
> > -DDEF_TOS_AM_GROUP=0x7d -Wnes/
> > > /c-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
> > -I%T/lib/Deluge -Wl/
> > > /,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000
> > -DIDENT_PROGRAM_NA/
> > > /ME=\"Eta\" -DIDENT_USER_ID=\"rania\"
> > -DIDENT_HOSTNAME=\"your-01199f19b2\" -DIDEN/
> > > /T_USER_HASH=0x23006c1eL -DIDENT_UNIX_TIME=0x49f2dee9L
> > -DIDENT_UID_HASH=0xd362b22/
> > > /3L -mdisable-hwmul -I/opt/tinyos-1.x/tos/lib/CC2420Radio Eta.nc -lm
> > -L. -lmiracl/
> > > /
> > > /
> > >
> > //usr/local/mspgcc/lib/gcc-lib/msp430/3.2.3/../../../../msp430/lib/msp2/libc.a(pr/
> > > /intf.o)(.text+0xa): In function `printf':/
> > >
> > //home/Cory/tinyos/tinyos-1.x/tools/src/mspgcc/build/mspgcc-cvs/msp430-libc/src/s/
> > > /tdlib/printf.c:39: undefined reference to `putchar'/
> > >
> > //usr/local/mspgcc/lib/gcc-lib/msp430/3.2.3/../../../.../msp430/lib/msp2/libc.a(pu/
> > > /ts.o)(.text+0x12): In function `puts':/
> > >
> > //home/Cory/tinyos/tinyos-1.x/tools/src/mspgcc/build/mspgcc-cvs/msp430-libc/src/s/
> > > /tdlib/puts.c:35: undefined reference to `putchar'/
> > >
> > //usr/local/mspgcc/lib/gcc-lib/msp430/3.2.3/../.../../../msp430/lib/msp2/libc.a(pu/
> > >
> > /ts.o)(.text+0x28):/home/Cory/tinyos/tinyos-1.x/tools/src/mspgcc/build/mspgcc-cvs/
> > > //msp430-libc/src/stdlib/puts.c:38: undefined reference to `putchar'/
> > > /make: *** [exe0] Error 1/
> > >
> > >
> > > Can you please help me ?? Best Regards,
> > > Rania
> > >
> > >
> > > ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > Tinyos-help mailing list
> > > Tinyos-help@millennium.berkeley.edu
> > <mailto:Tinyos-help@millennium.berkeley.edu>
> > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
> --
> Platform: WinXP/Cygwin
> TinyOS version: 1.x, Boomerang
> Programmer: MIB510
> Device(s): Mica2, MicaZ, Tmote
> Sensor board: homebrew
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_________________________________________________________________
Hebben jij en je vrienden leuke foto's van jullie feestje? Maak een groepsalbum
en geniet nog extra na.
http://www.microsoft.com/belux/nl/windows/windowslive/products/photos.aspx
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help