Re: [Tinyos-help] Help in diagnosing Deluge reboot problem on fleck3bs

2009-03-16 Thread Doug Palmer
Razvan Musaloiu-E. wrote: The boot.h from AVR might need to be updated to work with 1281. Could you try a newer version? The file from with avr-libc. I've just found the boot.h lurking in $TOSDIR/lib/Deluge/TOSBoot/avr Deleting this so that I find the library avr/boot.h seems to have

Re: [Tinyos-help] Help in diagnosing Deluge reboot problem on fleck3bs

2009-03-12 Thread Doug Palmer
Razvan Musaloiu-E. wrote: Thanks for the help. You are talking about verifyImage, right? The check is in the for loop: 94 for ( i = 0; i numPgs crcTarget == crcTmp; i++ ) { ^^^ Very unobservant of me. Thanks. 2) The

Re: [Tinyos-help] Help in diagnosing Deluge reboot problem on fleck3bs

2009-03-11 Thread Razvan Musaloiu-E.
Hi! On Wed, 11 Mar 2009, Doug Palmer wrote: I'm now trying to find out why the program isn't being transferred into the program flash. I've been tracing through and, as far as I can tell, the verify step works OK, as does the program read and it claims to write the program. However, the

Re: [Tinyos-help] Help in diagnosing Deluge reboot problem on fleck3bs

2009-03-10 Thread Razvan Musaloiu-E.
Hi! On Tue, 10 Mar 2009, Doug Palmer wrote: Razvan Musaloiu-E. wrote: You should take a look on what happens in TOSBootM.nc. The most probably thing that goes wrong is reading from the external flash. Moving around the startupLeds() you should be able to figure out what path of code is

Re: [Tinyos-help] Help in diagnosing Deluge reboot problem on fleck3bs

2009-03-10 Thread Doug Palmer
The problem does seem to be with reset/interrupt in the watchdog timer for the Atmega 1281. I've explicitly cleared the interrupt bit in HardwareC.nc and it seems to produce a proper reboot sequence. (It doesn't seem to be copying the image correctly, but baby steps along the way ...) Here's the

Re: [Tinyos-help] Help in diagnosing Deluge reboot problem on fleck3bs

2009-03-10 Thread Doug Palmer
I'm now trying to find out why the program isn't being transferred into the program flash. I've been tracing through and, as far as I can tell, the verify step works OK, as does the program read and it claims to write the program. However, the program doesn't seem to be being copied. As far as I

[Tinyos-help] Help in diagnosing Deluge reboot problem on fleck3bs

2009-03-05 Thread Doug Palmer
Hi, I've been in the process of porting tinyos 1.1.15 to run on fleck3bs. Part of what I want to port is the Deluge code. I've been able to get programs running without Deluge. I've been able to get Deluge running up to the point of formatting flash, inserting DelugeBasic, inserting a new image

Re: [Tinyos-help] Help in diagnosing Deluge reboot problem on fleck3bs

2009-03-05 Thread Razvan Musaloiu-E.
Hi! On Fri, 6 Mar 2009, Doug Palmer wrote: Hi, I've been in the process of porting tinyos 1.1.15 to run on fleck3bs. Part of what I want to port is the Deluge code. I've been able to get programs running without Deluge. I've been able to get Deluge running up to the point of formatting