[Tinyos-help] problem compiling Blink to telosb platform

Urs Hunkeler uhu at gmx.ch
Fri Jun 1 01:27:48 PDT 2007


Hi Ákos,

I use very similar versions.

ncc: 1.2.1
nescc: 1.2.7a
msp430-gcc: 3.2.3

I have installed all tools from source. For the gcc I think I had to
install a special patch. Maybe this patch is not installed by the
e-build? At the time I did the installation, there was a tutorial on
tinyos.net explaining how to do a full source installation but I can't
find it anymore. Maybe you could try to install the rpm version instead
of the e-build?

Did you try "make tmote"?

Cheers,
Urs


Ákos Maróy schrieb:
> I tried to set up TinyOS as describe here:
> http://www.moteiv.com/community/Tmote_Linux_install
> for my Gentoo Linux box. I installed msp430 from ebuilds, and all the
> rest from sources.
> 
> I seem to have the required tools ready:
> 
> $ ncc --version
> ncc: 1.2alpha5
> nescc: 1.2.8a
> $ msp430-gcc --version
> msp430-gcc (GCC) 3.2.3
> Copyright (C) 2002 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> 
> also, telosb platform support seems to be there:
> 
> $ ncc -print-platforms
> pc mica mica2 micaz rene2 telos mica128 mica2dot msp430 telosb atmega8
> 
> 
> but still, this is what I get:
> 
> 
> $ make telosb
> mkdir -p build/telosb
>     compiling Blink to a telosb binary
> ncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d
> -Wnesc-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_NAME=\"Blink\" -DIDENT_USER_ID=\"maroy\"
> -DIDENT_HOSTNAME=\"tomodachi\" -DIDENT_USER_HASH=0xb6f4aef8L
> -DIDENT_UNIX_TIME=0x465eddbeL -DIDENT_UID_HASH=0x17c52c1dL
> -mdisable-hwmul
> -I/home/maroy/src/tyrell/src/corpora/tmote/var/tinyos-1.1.15Dec2005cvs/tos/lib/CC2420Radio
> Blink.nc -lm
> /tmp/ccYDpC1q.s: Assembler messages:
> /tmp/ccYDpC1q.s:255: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:255: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:259: Error: unknown opcode `msp430clockm$set_dco_calib:'
> /tmp/ccYDpC1q.s:261: Error: unknown pseudo-op: `.l__framesize_msp430clockm'
> /tmp/ccYDpC1q.s:262: Error: unknown pseudo-op:
> `.l__frameoffset_msp430clockm'
> /tmp/ccYDpC1q.s:276: Error: expected comma after name `MSP430ClockM' in
> .size directive
> /tmp/ccYDpC1q.s:280: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:280: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:284: Error: unknown opcode `timerm$settimer:'
> /tmp/ccYDpC1q.s:286: Error: unknown pseudo-op: `.l__framesize_timerm'
> /tmp/ccYDpC1q.s:287: Error: unknown pseudo-op: `.l__frameoffset_timerm'
> /tmp/ccYDpC1q.s:349: Error: expected comma after name `TimerM' in .size
> directive
> /tmp/ccYDpC1q.s:353: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:353: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:357: Error: unknown opcode `timerm$localtime$read:'
> /tmp/ccYDpC1q.s:359: Error: unknown pseudo-op: `.l__framesize_timerm'
> /tmp/ccYDpC1q.s:360: Error: unknown pseudo-op: `.l__frameoffset_timerm'
> /tmp/ccYDpC1q.s:392: Error: expected comma after name `TimerM' in .size
> directive
> /tmp/ccYDpC1q.s:396: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:396: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:400: Error: unknown opcode `timerm$inserttimer:'
> /tmp/ccYDpC1q.s:402: Error: unknown pseudo-op: `.l__framesize_timerm'
> /tmp/ccYDpC1q.s:403: Error: unknown pseudo-op: `.l__frameoffset_timerm'
> /tmp/ccYDpC1q.s:444: Error: expected comma after name `TimerM' in .size
> directive
> /tmp/ccYDpC1q.s:448: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:448: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:452: Error: unknown opcode `timerm$setnextshortevent:'
> /tmp/ccYDpC1q.s:454: Error: unknown pseudo-op: `.l__framesize_timerm'
> /tmp/ccYDpC1q.s:455: Error: unknown pseudo-op: `.l__frameoffset_timerm'
> /tmp/ccYDpC1q.s:564: Error: expected comma after name `TimerM' in .size
> directive
> /tmp/ccYDpC1q.s:568: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:568: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:572: Error: unknown opcode `timerm$post_checkshorttimers:'
> /tmp/ccYDpC1q.s:574: Error: unknown pseudo-op: `.l__framesize_timerm'
> /tmp/ccYDpC1q.s:575: Error: unknown pseudo-op: `.l__frameoffset_timerm'
> /tmp/ccYDpC1q.s:596: Error: expected comma after name `TimerM' in .size
> directive
> /tmp/ccYDpC1q.s:600: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:600: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:604: Error: unknown opcode `timerm$executetimers:'
> /tmp/ccYDpC1q.s:606: Error: unknown pseudo-op: `.l__framesize_timerm'
> /tmp/ccYDpC1q.s:607: Error: unknown pseudo-op: `.l__frameoffset_timerm'
> /tmp/ccYDpC1q.s:707: Error: expected comma after name `TimerM' in .size
> directive
> /tmp/ccYDpC1q.s:1122: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:1122: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:1126: Error: unknown opcode
> `msp430dcocalibm$timermicro$overf'
> /tmp/ccYDpC1q.s:1128: Error: unknown pseudo-op:
> `.l__framesize_msp430dcocalibm'
> /tmp/ccYDpC1q.s:1129: Error: unknown pseudo-op:
> `.l__frameoffset_msp430dcocalibm'
> /tmp/ccYDpC1q.s:1167: Error: expected comma after name `MSP430DCOCalibM'
> in .size directive
> /tmp/ccYDpC1q.s:1171: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:1171: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:1175: Error: unknown opcode `ledsc$leds$init:'
> /tmp/ccYDpC1q.s:1177: Error: unknown pseudo-op: `.l__framesize_ledsc'
> /tmp/ccYDpC1q.s:1178: Error: unknown pseudo-op: `.l__frameoffset_ledsc'
> /tmp/ccYDpC1q.s:1194: Error: expected comma after name `LedsC' in .size
> directive
> /tmp/ccYDpC1q.s:1198: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:1198: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:1202: Error: unknown opcode `ledsc$leds$redtoggle:'
> /tmp/ccYDpC1q.s:1204: Error: unknown pseudo-op: `.l__framesize_ledsc'
> /tmp/ccYDpC1q.s:1205: Error: unknown pseudo-op: `.l__frameoffset_ledsc'
> /tmp/ccYDpC1q.s:1230: Error: expected comma after name `LedsC' in .size
> directive
> /tmp/ccYDpC1q.s:1234: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:1234: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:1238: Error: unknown opcode `msp430clockm$busycalibratedco:'
> /tmp/ccYDpC1q.s:1240: Error: unknown pseudo-op: `.l__framesize_msp430clockm'
> /tmp/ccYDpC1q.s:1241: Error: unknown pseudo-op:
> `.l__frameoffset_msp430clockm'
> /tmp/ccYDpC1q.s:1299: Error: expected comma after name `MSP430ClockM' in
> .size directive
> /tmp/ccYDpC1q.s:1302: Error: bad expression
> /tmp/ccYDpC1q.s:1302: Error: junk at end of line, first unrecognized
> character is `m'
> /tmp/ccYDpC1q.s:1303: Error: bad expression
> /tmp/ccYDpC1q.s:1303: Error: junk at end of line, first unrecognized
> character is `m'
> /tmp/ccYDpC1q.s:1304: Error: bad expression
> /tmp/ccYDpC1q.s:1304: Error: junk at end of line, first unrecognized
> character is `m'
> /tmp/ccYDpC1q.s:1305: Error: bad expression
> /tmp/ccYDpC1q.s:1305: Error: junk at end of line, first unrecognized
> character is `m'
> /tmp/ccYDpC1q.s:1306: Error: bad expression
> /tmp/ccYDpC1q.s:1306: Error: junk at end of line, first unrecognized
> character is `m'
> /tmp/ccYDpC1q.s:1307: Error: bad expression
> /tmp/ccYDpC1q.s:1307: Error: junk at end of line, first unrecognized
> character is `m'
> /tmp/ccYDpC1q.s:1308: Error: bad expression
> /tmp/ccYDpC1q.s:1308: Error: junk at end of line, first unrecognized
> character is `m'
> /tmp/ccYDpC1q.s:1310: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:1310: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:1314: Error: unknown opcode `timerm$checkshorttimers:'
> /tmp/ccYDpC1q.s:1316: Error: unknown pseudo-op: `.l__framesize_timerm'
> /tmp/ccYDpC1q.s:1317: Error: unknown pseudo-op: `.l__frameoffset_timerm'
> /tmp/ccYDpC1q.s:1334: Error: expected comma after name `TimerM' in .size
> directive
> /tmp/ccYDpC1q.s:1338: Error: unrecognized symbol type ""
> /tmp/ccYDpC1q.s:1338: Error: junk at end of line, first unrecognized
> character is `$'
> /tmp/ccYDpC1q.s:1342: Error: unknown opcode `timerm$checklongtimers:'
> /tmp/ccYDpC1q.s:1344: Error: unknown pseudo-op: `.l__framesize_timerm'
> /tmp/ccYDpC1q.s:1345: Error: unknown pseudo-op: `.l__frameoffset_timerm'
> /tmp/ccYDpC1q.s:1355: Error: expected comma after name `TimerM' in .size
> directive
> /tmp/ccYDpC1q.s:1358: Error: bad expression
> /tmp/ccYDpC1q.s:1358: Error: junk at end of line, first unrecognized
> character is `l'
> make: *** [exe0] Error 1


More information about the Tinyos-help mailing list