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 can tell, the pages are being read correctly, they're just not being written to the program memory. The voltage check is being passed (and, since the fleck is being powered via 5v USB it shouldn't be a problem.)
All suggestions gratefully received. Doug PS A couple of notes: 1) in TOSBootM.nc verifyProgram doesn't seem to actually check the crc. I've inserted a line comparing targetCrc with tmpCrc and it seems to pass, suggesting that the program is being read correctly. 2) The ProgFlashM.nc in the avr subdirectory seems to be doing a busy wait which attempts to rww_enable the memory each time. This seems to be different to the sample code I can find in http://linux.die.net/man/3/boot_page_fill I've tried a version of ProgFlashM.nc that corresponds to the example given in boot.h but without success. _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
