Hi,
I am working on Telosb motes. According to the tinyos tutorials i included
the printf.h header file in my module and also included the line
CFLAGS += -I$(TOSDIR)/lib/printf
in the make file . But i got the following error while i have compiled the
code
$ make telosb install,0 bsl,/dev/ttyUSB0
mkdir -p build/telosb
compiling RadioCountToLedsAppC to a telosb binary
ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb
-fnesc-cfile=build/telosb/app.c -board= -I/opt/tinyos-2.x/tos/lib/printf
-DIDENT_APPNAME=\"RadioCountToLed\" -DIDENT_USERNAME=\"lab\"
-DIDENT_HOSTNAME=\"lab-desktop\" -DIDENT_USERHASH=0xa8f9cf45L
-DIDENT_TIMESTAMP=0x48652c43L -DIDENT_UIDHASH=0xa2e75870L
RadioCountToLedsAppC.nc -lm
/usr/bin/../lib/gcc-lib/msp430/3.2.3/../../../../msp430/lib/msp2/libc.a(printf.o):
In function `printf':
/home/xubuntos/sources/msp430-build-tinyos-2.1/build/mspgcc-cvs/msp430-libc/src/stdlib/printf.c:39:
undefined reference to `putchar'
/usr/bin/../lib/gcc-lib/msp430/3.2.3/../../../../msp430/lib/msp2/libc.a(puts.o):
In function `puts':
/home/xubuntos/sources/msp430-build-tinyos-2.1/build/mspgcc-cvs/msp430-libc/src/stdlib/puts.c:31:
undefined reference to `putchar'
/home/xubuntos/sources/msp430-build-tinyos-2.1/build/mspgcc-cvs/msp430-libc/src/stdlib/puts.c:33:
undefined reference to `putchar'
make: *** [exe0] Error 1
Can anyone please help in this . Help appreciated.
regards,
John Paul
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help