Do you have the latest TinyOS tree from the sourceforge CVS? It appears
that your make system is trying to program the motes with usip instead
of avrdude. Please make sure that you have the latest makefiles
(tinyos-2.x/support/make).

 

Janos

 

From: ashish makani [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 23, 2008 7:36 AM
To: Janos Sallai; [email protected]
Subject: Still unable to program Blink onto a crossbow irismote(XM2110)
using the MIB520 USB interface board on tinyos-2.0.2(using cygwin on
Windows XP)

 

Janos, others
 
it still does not work :(
 
I am really desperate as i have already requested an extension for my
project and it is due in 1 day, and i still cannot get even Blink to run
on the iris motes.
 
Here is a description of what i have tried since your last email.
 
1.as suggested by you, i downloaded the tos-set-symbols file, you sent,
to my /usr/bin
 
I am running cygwin on windows, and i downloaded it into my
C:\cygwin\bin folder.
 
I did not replace the existing tos-set-symbols file, instead i renamed
the original tos-set-symbols file(in C:\cygwin\bin)  to
tos-set-symbols_old.
 
[EMAIL PROTECTED] /usr/bin
$ pwd
/usr/bin
[EMAIL PROTECTED] /usr/bin
$ ls -alp tos-set*
-rwx------+ 1 User None 5105 Apr 22 20:30 tos-set-symbols
-rwxr-xr-x  1 User None 5104 Jul 29  2007 tos-set-symbols_old
 
I also saved a copy, in the C:\cygwin\usr\bin folder which was empty
initially, but that did not make any difference
 
 
2. Now i tried running first make iris, which worked, as before & then
the install command, which did not work, as before :(
 
commands are in bold below
 
[EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
$ make iris

mkdir -p build/iris
    compiling BlinkAppC to a iris binary
ncc -o build/iris/main.exe -Os -Wall -Wshadow -Wnesc-all -target=iris
-fnesc-cfi
le=build/iris/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"BlinkAppC\"
-DIDENT_USE
R_ID=\"User\" -DIDENT_HOSTNAME=\"LENOVO-F238501F\"
-DIDENT_USER_HASH=0xa90f30ddL

 -DIDENT_UNIX_TIME=0x480e8495L -DIDENT_UID_HASH=0xf5544823L
-fnesc-dump=wiring -

fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, comp
onents)' -fnesc-dumpfile=build/iris/wiring-check.xml BlinkAppC.nc -lm
    compiled BlinkAppC to build/iris/main.exe
            2434 bytes in ROM
              51 bytes in RAM
avr-objcopy --output-target=srec build/iris/main.exe
build/iris/main.srec
avr-objcopy --output-target=ihex build/iris/main.exe
build/iris/main.ihex
    writing TOS image
 
[EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink

$ make iris install,42 mib510,COM5

mkdir -p build/iris
    compiling BlinkAppC to a iris binary
ncc -o build/iris/main.exe -Os -Wall -Wshadow -Wnesc-all -target=iris
-fnesc-cfi
le=build/iris/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"BlinkAppC\"
-DIDENT_USE
R_ID=\"User\" -DIDENT_HOSTNAME=\"LENOVO-F238501F\"
-DIDENT_USER_HASH=0xa90f30ddL

 -DIDENT_UNIX_TIME=0x480e8505L -DIDENT_UID_HASH=0x8ee0f2e1L
-fnesc-dump=wiring -

fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, comp
onents)' -fnesc-dumpfile=build/iris/wiring-check.xml BlinkAppC.nc -lm
    compiled BlinkAppC to build/iris/main.exe
            2434 bytes in ROM
              51 bytes in RAM
avr-objcopy --output-target=srec build/iris/main.exe
build/iris/main.srec
avr-objcopy --output-target=ihex build/iris/main.exe
build/iris/main.ihex
    writing TOS image

tos-set-symbols build/iris/main.srec build/iris/main.srec.out-42
TOS_NODE_ID=42
ActiveMessageAddressC$addr=42
Could not find data section in build/iris/main.exe, aborting.

Could not find symbol ActiveMessageAddressC$addr in build/iris/main.exe,
ignorin
g symbol.
Could not find symbol TOS_NODE_ID in build/iris/main.exe, ignoring
symbol.
    installing iris binary using mib510
uisp -dprog=mib510 -dserial=COM5 --wr_fuse_h=0xd9 -pm1281 -U
efuse:w:0xff:m  --e
rase --upload if=build/iris/main.srec.out-42
Please use /dev/ttyS4 rather than COM5 (the latter often doesn't work)
No part specified, supported devices are:
AT90S4414
AT90S2313
AT90S1200
AT90S2323
AT90S2343
AT90S2333
AT90S4433
AT90S4434
AT90S8515
AT90S8535
AT90S8534
ATmega8515
ATmega8535
ATtiny11
ATtiny12
ATtiny15
ATtiny22
ATtiny26
ATtiny28
ATmega8
ATmega323
ATmega32
ATmega161
ATmega163
ATmega16
ATmega162
ATmega169
ATmega103
ATmega128
make: *** [program] Error 2
 
3. I tried some more permutations, 
      a) used .(period) instead of comma, but that did not work
      b) used /dev/ttyS4 instead of COM5, did not work
      c) used mib520 instead of mib510....did not work

 
I still get the same error,in [ ] below, with the line, make: ***
[program] Error 2, at the end of the erro
 
[
$ make iris install.0 mib510./dev/ttyS4

mkdir -p build/iris
    compiling BlinkAppC to a iris binary
ncc -o build/iris/main.exe -Os -Wall -Wshadow -Wnesc-all -target=iris
-fnesc-cfi
le=build/iris/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"BlinkAppC\"
-DIDENT_USE
R_ID=\"User\" -DIDENT_HOSTNAME=\"LENOVO-F238501F\"
-DIDENT_USER_HASH=0xa90f30ddL

 -DIDENT_UNIX_TIME=0x480ecfb5L -DIDENT_UID_HASH=0x6a6934f1L
-fnesc-dump=wiring -

fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, comp
onents)' -fnesc-dumpfile=build/iris/wiring-check.xml BlinkAppC.nc -lm
    compiled BlinkAppC to build/iris/main.exe
            2434 bytes in ROM
              51 bytes in RAM
avr-objcopy --output-target=srec build/iris/main.exe
build/iris/main.srec
avr-objcopy --output-target=ihex build/iris/main.exe
build/iris/main.ihex
    writing TOS image
tos-set-symbols build/iris/main.srec build/iris/main.srec.out-0
TOS_NODE_ID=0 Ac
tiveMessageAddressC$addr=0

Could not find data section in build/iris/main.exe, aborting.

Could not find symbol ActiveMessageAddressC$addr in build/iris/main.exe,
ignoring symbol.
Could not find symbol TOS_NODE_ID in build/iris/main.exe, ignoring
symbol.
    installing iris binary using mib510
uisp -dprog=mib510 -dserial=/dev/ttyS4 --wr_fuse_h=0xd9 -pm1281 -U
efuse:w:0xff:
m  --erase --upload if=build/iris/main.srec.out-0
No part specified, supported devices are:
AT90S4414
AT90S2313
AT90S1200
AT90S2323
AT90S2343
AT90S2333
AT90S4433
AT90S4434
AT90S8515
AT90S8535
AT90S8534
ATmega8515
ATmega8535
ATtiny11
ATtiny12
ATtiny15
ATtiny22
ATtiny26
ATtiny28
ATmega8
ATmega323
ATmega32
ATmega161
ATmega163
ATmega16
ATmega162
ATmega169
ATmega103
ATmega128
make: *** [program] Error 2
]

Where am i going wrong ?
 
Any suggestions/ideas/workarounds /hacks welcome

Thanks a ton all of you,
Eagerly awaiting all your responses
 
cheers
ashish
========================================================================
========================================================================
======================================================================
On Tue, Apr 22, 2008 at 11:47 AM, Janos Sallai
<[EMAIL PROTECTED]> wrote:

Ashis,
 
Good point. When you compile Blink with avr-gcc 4, indeed, there is no
data section. For most other apps there is, so tos-set-symbols wouldn't
fail.
 
Please replace /usr/bin/tos-set-symbols with the attached one. It'll fix
your problem.
 
Janos
 
From: ashish makani [mailto:[EMAIL PROTECTED] 

Sent: Monday, April 21, 2008 11:56 PM
To: Janos Sallai
Cc: [email protected]

Subject: Re: [Tinyos-help] Still unable to program Blink onto a crossbow
irismote(XM2110) using the MIB520 USB interface board on
tinyos-2.0.2(using cygwin on Windows XP )
 
Hi Janos, others

First up, thanks a million for your extremely helpful & informative
response.

I tried it, & it almost worked, but did not :)

1. I followed the IRIS instructions given on this ISIS link
http://www.isis.vanderbilt.edu/projects/NEST/tinyos-2.x-iris/doc/html/in
stall-tinyos-iris.html

I made 1 goof-up( ?) though...i did step-4,updating the tinyos source
tree, in the instructions above, first,
and then did step 2 &3, updating the atmel toolchain( avr-binutils,
avr-libc, avr-gcc) & installing avrdude.

I think step-4, we are not really *installing* anything, so i should be
fine, but just wanted to make sure.

2. I then tried compiling for iris & it works

here is what i see as output, when i type the command "make iris" from
the /opt/tinyos-2.x/apps/Blink directory .

<<>> 

[EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
$ make iris
mkdir -p build/iris
    compiling BlinkAppC to a iris binary
ncc -o build/iris/main.exe -Os -Wall -Wshadow -Wnesc-all -target=iris
-fnesc-cfi
le=build/iris/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"BlinkAppC\"
-DIDENT_USE
R_ID=\"User\" -DIDENT_HOSTNAME=\"LENOVO-F238501F\"
-DIDENT_USER_HASH=0xa90f30ddL
 -DIDENT_UNIX_TIME=0x480d68b4L -DIDENT_UID_HASH=0xd3494904L
-fnesc-dump=wiring -
fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, comp
onents)' -fnesc-dumpfile=build/iris/wiring-check.xml BlinkAppC.nc -lm
    compiled BlinkAppC to build/iris/main.exe
            2434 bytes in ROM
              51 bytes in RAM
avr-objcopy --output-target=srec build/iris/main.exe
build/iris/main.srec
avr-objcopy --output-target=ihex build/iris/main.exe
build/iris/main.ihex
    writing TOS image

[EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
$ ls -alp
total 697
drwxr-xr-x+  4 User None      0 Apr 18 15:18 ./
drwxr-xr-x+ 18 User None      0 Apr 18 15:21 ../
-rw-r--r--   1 User None   2120 Dec 12  2006 BlinkAppC.nc
-rw-r--r--   1 User None   2384 Dec 12  2006 BlinkC.nc
drwxr-xr-x+  2 User None      0 Apr 18 15:18 CVS/
-rw-r--r--   1 User None     42 Jul 12  2006 Makefile
-rw-r--r--   1 User None    678 Dec 12  2006 README.txt
-rw-r--r--   1 User None      0 Apr 17 21:57 _TOSSIM.dll
-rw-r--r--   1 User None 698415 Apr 17 21:59 app.xml
drwxr-xr-x+  4 User None      0 Apr 22 00:25 build/
<<>>

3.
However, when i try to install the compiled blink code, onto the mote, i
get a "Could not find data section in build/iris/main.exe, aborting.
make: *** [setid] Error 255 "

{
[EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
$ make iris install.0 mib510,COM5
mkdir -p build/iris
    compiling BlinkAppC to a iris binary
ncc -o build/iris/main.exe -Os -Wall -Wshadow -Wnesc-all -target=iris
-fnesc-cfi
le=build/iris/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"BlinkAppC\"
-DIDENT_USE
R_ID=\"User\" -DIDENT_HOSTNAME=\"LENOVO-F238501F\"
-DIDENT_USER_HASH=0xa90f30ddL
 -DIDENT_UNIX_TIME=0x480d68eeL -DIDENT_UID_HASH=0x4077e9c8L
-fnesc-dump=wiring -
fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, comp
onents)' -fnesc-dumpfile=build/iris/wiring-check.xml BlinkAppC.nc -lm
    compiled BlinkAppC to build/iris/main.exe
            2434 bytes in ROM
              51 bytes in RAM
avr-objcopy --output-target=srec build/iris/main.exe
build/iris/main.srec
avr-objcopy --output-target=ihex build/iris/main.exe
build/iris/main.ihex
    writing TOS image
tos-set-symbols build/iris/main.srec build/iris/main.srec.out-0
TOS_NODE_ID=0 Ac
tiveMessageAddressC$addr=0
Could not find data section in build/iris/main.exe, aborting.
make: *** [setid] Error 255

[EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
}

I tried several permutations of the install, reinstall commands.

make iris install,0 mib510,COM5 (. instead of the .)
and nodeid 42 ( nodeid other than 0)

[EMAIL PROTECTED] /opt/tinyos-2.x/apps/Blink
$ make iris reinstall,42 mib510,COM5
tos-set-symbols build/iris/main.srec build/iris/main.srec.out-42
TOS_NODE_ID=42
ActiveMessageAddressC$addr=42
Could not find data section in build/iris/main.exe, aborting.
make: *** [setid] Error 255

Where am i going wrong ?

I am really desperate, as i am a grad student working on a course
project, which is due in 2 days

Any suggestions/ideas/workarounds /hacks welcome 

Thanks a ton all of you,

Eagerly looking forward to your responses

cheers
ashish 

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to