Hi All,
Pls Help me,
How to start a program Read/Write permanently on MSP430F427 Flash memory using C code. ie: i need to kept some values on flash memory even power sw off.
can i have some more details about the project. coz i have worked with flash memory programming. if u can tell me about ur requirements i can try my best to help u out.
Added after 2 minutes:
Usually the processor /controller details about how it responds to accessing block of data at one go is important. thats got frm the device on inquiry.
if u want me to explain more on this please mail me back . thank u
/*
I assume that pnt is pointer to address in flash you wish to write to. some_info may be some struct you are writting to flash. Also you can stop timers while writting to flash.
*/
_DINT(); //disable interrupt
// Open Flash
FCTL1 = FWKEY + ERASE; // Set Erase bit
while (FCTL3 & BUSY);
FCTL3 = FWKEY; // Unlock флэш
while (FCTL3 & BUSY);
*pnt = 0; // Dummy write to erase Flash segment
FCTL1 = FWKEY + WRT;
while (FCTL3 & BUSY);
*pnt = some_info;
//Close Flash
FCTL1 = FWKEY;
FCTL3 = FWKEY + LOCK; // Lock флэш
while (FCTL3 & BUSY);
_EINT();// enable interrupt