[Tinyos-help] Tiny os 2.0 set-mote-id

Philip Levis pal at cs.stanford.edu
Sun Dec 3 16:40:58 PST 2006


On Dec 1, 2006, at 4:04 PM, KURT PETERS wrote:

> I get the same for TOS_NODE_ID.  See below.  who's cory?  Developer?
> K

He wrote the script, IIRC.

But looking at the script, I think it's doing the right thing, but  
the output doesn't let you know it is. This is the end of the script:

   # if in compatability mode, convert the output exe to the output srec
   if( $G_opts{compat} ) {
     my $cmd = "$G_opts{objcopy} --output-target=$G_opts{target}  
$exeout $srecout";
     system( $cmd ) == 0 or die "Command \"$cmd\" failed";
   }

Specify -srec sets $G_opts{compat} to 1. So what the tool does is  
generate an exe from the srec, change the symbol in the exe, then  
convert the new exe to the new srec. Try changing the script:

   # if in compatability mode, convert the output exe to the output srec
   if( $G_opts{compat} ) {
     my $cmd = "$G_opts{objcopy} --output-target=$G_opts{target}  
$exeout $srecout";
     print "converting exe to srec: $cmd\n";
     system( $cmd ) == 0 or die "Command \"$cmd\" failed";
   }

What happens?

Phil




More information about the Tinyos-help mailing list