Thanks a lot Michael and Doug. I really appreciate the help. It is working now.
I needed to install windows installer for gcc for msp430 and avr, and perl, copy tos-set-symbols, but didn't require cygwin. The I run the following from DOS command prompt: perl tos-set-symbols --target ihex main.ihex main.ihex.out-<NODE_NUM> TOS_NODE_ID=<NODE_NUM> ActiveMessgeAddressC\$addr=<NODE_NUM> tos-bsl --telosb -c <PORT> -r -e -I -p main.ihex.out-<NODE_NUM> On Tue, Mar 8, 2011 at 2:32 PM, Michael Schippling <[email protected]>wrote: > 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 >> > -- Yours truly, Debraj De http://sensorweb.cs.gsu.edu/~dej/index.html PhD Student, Sensorweb Research Laboratory Department of Computer Science Georgia State University Atlanta, GA USA
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
