Hi there. > > > > 1) How can those sizes be so large? According to my specs for tmote > > sky, there is only 48k flash, but each of the above slots are 64k. > > The minimum unit for erasing for stp24p is 64k. >
I understand that. I only read last night that tmote sky has a total of 1MB flash storage. Up until then, my docs suggested there was a grand total of 48k. Or more correctly, I didn't read them closely enough ;-) > > case, ConfigStorage.valid() returns false for my config volume, and > > following the example (tutorial lesson 7), my app also resets my flash > > config to default values. This is really bad, my config needs to be > > persistent and not ever be reset by Deluge updates. > > If you don't inject but just reboot the mote does the config fails? Rebooting works as expected (without inject). The TestPrintf java app shows that the counter increments each time I reboot (via my printf in the tinyos app). This is both with the normal reboot with a button press, and with the tos-deluge reprogram and reboot (which is easier since I don't have to sit under my table where my USB ports are). Also, when I inject the same program, or recompile the same program and inject it, the counter doesn't get reset. It's mainly when I add extra lines to the program (eg extra printfs near the end of my main nesc module's startup logic), and inject that (and reprogram, I haven't tested yet without reprogram after injecting the changed program), that my config volume becomes invalid. I added an extra printf, which confirms that lesson 7's (copied to my app) 'volume is invalid so commit and use defaults' logic is running. Also, I have added code to other parts of the program (within a private module) and not triggered this. Would it help if I forwarded a test case which produces this problem? David. _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help