It happens automatically under the hood, so you don't need to worry about
it.
The make command erases, and overwrites for you.

If you do 'make telosb install ~~', you can see in your console
-----------------------
mkdir -p build/telosb
    compiling Blink to a telosb binary
ncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d
-Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
-DCC2420_DEF_CHANNEL=23 -I%T/lib/Deluge
-Wl,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000
-DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"jpaek\" -DIDENT_HOSTNAME=\"
muggle.usc.edu\" -DIDENT_USER_HASH=0xc219ad63L -DIDENT_UNIX_TIME=0x4c51b4a5L
-DIDENT_UID_HASH=0xda55c972L -mdisable-hwmul
-I/home/jpaek/tinyos-1.x/tos/lib/CC2420Radio Blink.nc -lm
    compiled Blink to build/telosb/main.exe
            2528 bytes in ROM
              40 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 bootloader using bsl
tos-bsl --telosb -c /dev/ttyUSB1 -r -e -I -p
/home/jpaek/tinyos-1.x/tos/lib/Deluge/TOSBoot/build/telosb/main.ihex
....
-----------------------

The 'tos-bsl -e' part is the erasing part......

- jpaek

-- 
Jeongyeup Paek
Ph.D. Candidate
Embedded Networks Laboratory
Department of Computer Science
University of Southern California
http://enl.usc.edu/~jpaek


On Wed, Jul 28, 2010 at 11:09 AM, Rich Hayes <[email protected]> wrote:

> I was wondering if before installing a new application onto a mote
> (specifically the TelosB), do you need to remove the one that is currently
> residing on it?  My common sense says yes, but I didn't know if compiling
> and uploading a new program would just overwrite the old one.
>
> If a removal does have to happen, how is that done?  I'm skimming through
> the multiple TinyOS tutorials, but not seeing anything on removing a
> program...just installing one.
>
> Thanks.
>
>
> _______________________________________________
> 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

Reply via email to