[Tinyos-help] Platform implementation setting TOS_NODE_ID
Alexandre Buist
abuist at newtraxtech.com
Thu May 15 08:29:36 PDT 2008
Thanks Urs,
I look around but I can't find anything in the platform files or the
platform.target that would link to tos-set-symbols with TOS_NODE_ID. The
only relevant files I found about tos-set-symbols is the uC msp.rules. Which
should be just fine without modification.
One thing I noticed, In the mote 2 mote tutorial:
$ make telosb install,1
...
compiled BlinkToRadioAppC to build/telosb/main.exe
9040 bytes in ROM
246 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-1 TOS_NODE_ID=1 ActiveMessageAddressC$addr=1
...
While in my environement
$ make telosb install,1
...
compiled BlinkToRadioAppC to build/telosb/main.exe
10674 bytes in ROM
283 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
installing telosb binary using the parallel port jtag adapter
...
The thing to notice is that the tos-set-symbols ... does not show up. Could
there be something wong with my environment.
Any thoughts,
Thanks
-----Original Message-----
From: Urs Hunkeler [mailto:uhu at gmx.ch]
Sent: Thursday, May 15, 2008 2:11 AM
To: Alexandre Buist
Cc: tinyos-help at millennium.berkeley.edu
Subject: Re: [Tinyos-help] Platform implementation setting TOS_NODE_ID
Hi Alecandre,
The TinyOS environment programs the node id by modifying symbols in the
compiled binary before flashing it to the mote. I think this is compiler
and platform dependent (since where the symbols are placed and how to
access them would depend on the binary format and be platform specific).
For the telosb motes, this symbol-changing is done with the command
tos-set-symbols (it might support other platforms as well). Have a look
at the documentation of tos-set-symbols.
Cheers,
Urs
Alexandre Buist wrote:
> Hi,
>
>
>
> When programming a telosb mote with:
>
> $ make telosb install,2
> It sets the TOS_NODE_ID to 2.
>
> I tought it would work right off the bat with my platform but it dosent:-(
>
> How can I implement such a feature over my own platform?
>
> Thanks in advance.
>
>
>
> Alexandre Buist
More information about the Tinyos-help
mailing list