FYI - I just uploaded an msp430f1611 FlashBridge implementation to TinyOS 1.x CVS under /contrib/rincon/apps/FlashBridge. This will let your applications read, write, erase segments, and calculate CRC's on data stored in the msp430's internal flash. Similar to InternalFlashC in a way, but with more control over the flash and access to the full 256 bytes instead of 128 bytes.
A demo that lets you interact with various flash types from your computer is located in /contrib/rincon/apps/FlashBridge/apps/FlashBridgeViewer. You'll need parts of the /contrib/rincon directory to get this demo app to compile, so just download the whole /contrib/rincon directory. Make sure you edit the Makefile to select the flash type you want to interact with. I'll probably upload another implementation soon that provides the same interface to the avr's internal flash. -david -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Polastre Sent: Tuesday, August 22, 2006 3:50 PM To: Chong Hui Kim Cc: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] Howto use InternalFlash on Tmote Programs like Deluge allow you to upload new programs without completely erasing the internal flash. if you use the BSL, your only option is to erase all flash, including internal flash. You may want to read the MSP430x1xx User's Guide for more data. -Joe On 8/22/06, Chong Hui Kim <[EMAIL PROTECTED]> wrote: > > Thank you for your comments. > > I understand what was wrong. > > Then how can I download program without erasing of internal flash? > > > ----- Original Message ----- > From: "Joe Polastre" <[EMAIL PROTECTED]> > To: "Chong Hui Kim" <[EMAIL PROTECTED]> > Cc: <tinyos-help@millennium.berkeley.edu> > Sent: Wednesday, August 23, 2006 1:14 AM > Subject: Re: [Tinyos-help] Howto use InternalFlash on Tmote > > > > Did you Mass Erase between programs (ie, type 'make tmote install')? > > That erases all of the internal flash. > > > > -Joe > > > > On 8/22/06, Chong Hui Kim <[EMAIL PROTECTED]> wrote: > >> > >> > >> > >> I want to write some data in Flash of MSP430 and read them. > >> For this, I used InternalFlashC component and InternalFlash interface. > >> > >> However, data did not been stored in Flash. > >> > >> In single program, it works well. (I conducted write and read. Then stored > >> data was read exactly same.) > >> In separated write and read program, however, data did not been stored. > >> > >> I conducte write data into Flash in one program. After doing this, I conduct > >> read data of Flash from same address in another program. Then wrong value is > >> read. > >> > >> In my thought, Flash may be erased. I used information memory of Flash in > >> MSP430. > >> (Address is from 01000h to 010FFh with 256 Byte.) > >> > >> > >> Just write code is call InternalFlash.write((uint8_t *)0x00, data<array>, > >> sizeof(data)); > >> read code is call InternalFlash.read((uint8_t *)0x00, data<array>, > >> sizeof(data)); > >> > >> Plz, help me. > >> _______________________________________________ > >> Tinyos-help mailing list > >> Tinyos-help@Millennium.Berkeley.EDU > >> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > >> > >> _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help