[Tinyos-help] Deluge mica2 reboot problem

Simon Willis simon.willis at jcu.edu.au
Sat Nov 4 18:55:54 PST 2006


I thought I would post an update. I have been able to get Deluge working 
fine by downloading revision 1.1 of TOSBootM.nc and compiling TOSBoot 
using this file. The latest revision of TOSBootM.nc is v1.4, when I 
compile using this file I can inject a program and issue a reboot, but 
it will not reboot properly. I found that it fails in the programImage 
function at the following line, which apparently checks that the image 
starts on the correct boundary.

 if (intAddr != TOSBOOT_END) {

      call ExtFlash.stopRead();

      return R_INVALID_IMAGE_ERROR;

    }


I found the following comment in CVS when revision 1.3 was added:

fail if the program image starts at the wrong address
(program too small or compiled for a different bootloader/revision)


Does this mean that I am compiling my program wrongly or something? I 
have updated all of the /lib/Deluge (and TOSBoot) directory from CVS. I 
compile my program using the following steps:
-Compile TOSBoot
-Compile and install DelugeBasic
-Compile by Blink test program
-Inject my program and try to reboot.

I am using Tinyos1.1.15 provided with the tinyos Eclipse plugin. The 
fact that my program originally worked using the pre-compiled mica2 
binary that was packed with tinyos1.1.15, may suggest that this was not 
updated in the release.

Thanks,

Simon


Simon Willis wrote:
> Hi there,
>
> I'm trying to get Deluge to work on my own platform that is similar to 
> the mica2. So far I have managed to get it running by telling my 
> makefile to install the TOSBoot image stored in the 
> /Deluge/TOSBoot/build/mica2 directory. I have been able to install 2 
> new images, issue a reboot and it changes images like it should.
>
> I just updated the mica2 binary from CVS (apparently there was an 
> update to ProgFlashM.nc by Jacob Sorber 6 months ago) and installed it 
> on my node and Deluge will no longer reboot properly. I have 
> recompiled DelugeBasic and my test program (Blink) and have injected 
> them both again. When I issue a reboot command it goes through the 
> usual count down sequence, but always reverts to the golden image. It 
> is not giving the three flashes of the red LED which indicates a low 
> battery, so it is not that problem. I also tried recompiling TOSBoot 
> and it will not work with the new binary.
>
> Can anyone help me out here? I'm thinking that may be something has 
> changed with the make system, perhaps to do with the flash, but that's 
> a guess.
>
> Thanks,
>
> Simon
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


More information about the Tinyos-help mailing list