Hi Magnus,

When I compare your output with my output, I get this type of output 
when I don't specify the moteID. For instance, in order to compile and 
install the Blink application, I get the following output (shortened):

$ make tmote install,5
[..]
     compiled BlinkAppC to build/telosb/main.exe
             2620 bytes in ROM
               36 bytes in RAM
msp430-objcopy --output-target=ihex build/telosb/main.exe 
build/telosb/main.ihex
     writing TOS image
tos-set-symbols --objcopy msp430-objcopy --objdump msp430-objdump 
--target ihex build/telosb/main.ihex build/telosb/main.ihex.out-5 
TOS_NODE_ID=5 ActiveMessageAddressC__addr=5
[..]

But when I don't specify a nodeID, I get the "cp" command instead of the 
"tos-set-symbols" command as well:

$ make tmote install
[..]
     compiled BlinkAppC to build/telosb/main.exe
             2620 bytes in ROM
               36 bytes in RAM
msp430-objcopy --output-target=ihex build/telosb/main.exe 
build/telosb/main.ihex
     writing TOS image
cp build/telosb/main.ihex build/telosb/main.ihex.out
[..]

The commands to install a node with the correct node ID are either "make 
tmote install,<nodeID>" or "make tmote reinstall,<nodeID>" without any 
spaces (and of course <nodeID> has to be replaced by a number. If this 
is indeed what you are doing, then you seem to have a problem with the 
Makefile configuration.

Can you install the Blink application with a different nodeID (not that 
it will use the nodeID, but do you see the "tos-set-symbols" command in 
the output?)? If Blink works, can you send us the Makefile you're using 
for your program? If Blink does not work, did you modify any of the 
files comprising the Makefile system of TinyOS?

Cheers,
Urs


On 11/14/10 11:44 PM, Magnus Morton wrote:
> Hi,
>
> As requested:
>
> mkdir -p build/telosb
>     compiling CobwebNodeAppC to a telosb binary
> ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul 
> -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosb 
> -fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 
> -I/opt/tinyos-2.1.1/tos/lib/net -I/opt/tinyos-2.1.1/tos/lib/net/le 
> -I/opt/tinyos-2.1.1/tos/lib/net/ctp -DIDENT_APPNAME=\"CobwebNodeAppC\" 
> -DIDENT_USERNAME=\"magnus\" -DIDENT_HOSTNAME=\"waterhouse\" 
> -DIDENT_USERHASH=0x8acaece5L -DIDENT_TIMESTAMP=0x4ce0652aL 
> -DIDENT_UIDHASH=0x66a2ae57L  CobwebNodeAppC.nc -lm
> /opt/tinyos-2.1.1/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: 
> #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
> /opt/tinyos-2.1.1/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:68:4: 
> warning: #warning Accessing TimerA for ADC12
>     compiled CobwebNodeAppC to build/telosb/main.exe
>            29174 bytes in ROM
>             1872 bytes in RAM
> msp430-objcopy --output-target=ihex build/telosb/main.exe 
> build/telosb/main.ihex
>     writing TOS image
> cp build/telosb/main.ihex build/telosb/main.ihex.out
>     found mote on /dev/ttyUSB0 (using bsl,auto)
>     installing telosb binary using bsl
> tos-bsl --telosb -c /dev/ttyUSB0 -r -e -I -p build/telosb/main.ihex.out
> MSP430 Bootstrap Loader Version: 1.39-telos-8
> Mass Erase...
> Transmit default password ...
> Invoking BSL...
> Transmit default password ...
> Current bootstrap loader version: 1.61 (Device ID: f16c)
> Changing baudrate to 38400 ...
> Program ...
> 29206 bytes programmed.
> Reset device ...
> rm -f build/telosb/main.exe.out build/telosb/main.ihex.out
>
>
> I am using TMote Sky motes.
>
> Many thanks,
>
> Magnus
>
> On 6 November 2010 06:50, Urs Hunkeler <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     Hi Magnus,
>
>     Internally, the program is always compiled first with nodeID set
>     to 1. In a second step the compiled ELF binary is analyzed, the
>     position of the variable definition is extracted and the binary is
>     then modified. After that the binary is converted to the Intel HEX
>     format, which is then used to program the mote. It looks like the
>     modification of the binary does not work (maybe a tool is
>     missing?). Could you install the program on a mote and send us the
>     exact output of the command (so we can see warning or error
>     messages)? Also what type of motes do you use?
>
>     Cheers,
>     Urs
>
>
>
>     On 11/6/10 12:02 AM, Magnus Morton wrote:
>
>         Hi,
>
>         I've been having problems when using my notebook linux
>         machine, in that
>         I'm not able to specify the device ID when installing a
>         program: the
>         device ID always defaults to 1. This used to work fine, and
>         still works
>         on my desktop PC. I have tried reinstalling tinyos and have
>         checked my
>         environment, but I cannot see anything wrong. Does anyone have
>         any ideas
>         what might be wrong?
>
>         Best regards,
>         Magnus
>
>
>

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

Reply via email to