With a little slipperyness you can grab the intermediate file produced by the object modifier code and then use that to download with bsl. Here's a script I extracted to do the node-id set and download for telosb under T1. It presumes the compiled result is in "main.ihex", makes a "main.ihex.out-1" file for ID #1 and then installs the boot 'sector' and your code. All you need from the tinyos distrib are the two programs "set-mote-id", "tmote-bsl" and the boot code. If you use T2 you should be able to extract a similar script from the final thrashings of a regular build as well.
# set the ID to #1 C:/cygwin/opt/tinyos-1.x/tools/make/msp/set-mote-id --objcopy \ msp430-objcopy --objdump msp430-objdump --target ihex \ build/tmote/main.ihex build/tmote/main.ihex.out-1 1 # install tmote bootloader with application using bsl tmote-bsl -c auto -e -p \ C:/cygwin/opt/tinyos-1.x/tos/lib/Deluge/TOSBoot/build/telosb/main.ihex \ -p build/tmote/main.ihex.out-1 -r --telosb MS Doug Carlson wrote: > Debraj, > tos-bsl doesn't expose this, it deals mainly with shuffling data to/from > the mote rather than modifying the binary itself. > > tos-set-symbols is a perl script that accomplishes this, by way of > msp430-objdump and msp430-objcopy. Unless I'm mistaken, you will at a > minimum need the mspgcc toolchain installed to accomplish this task in a > non-hacky way. You should also note that this script needs to be able to > read the symbol table, which is NOT in the .ihex file (it is in the > original ELF/.exe file). > > Hope this helps. > -doug > > On Mon, Mar 7, 2011 at 3:32 PM, DEBRAJ DE <[email protected] > <mailto:[email protected]>> wrote: > > Hi, I'm trying to using "tos-bsl --telosb -c 4 -r -e -I -p > main.ihex" to install program image on TelosB without having to > install TinyOS. > > But how do I assign the node id? The help options of tos-bsl didn't > show any hint. Plz suggest. Thanks. > > > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > <mailto:[email protected]> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
