london
Member level 4
following program i wrote
{
while(FCTL3 & BUSY);
FCTL2 = FWKEY + FSSEL1 + FN0; // SMCLK/2 = ~500kHz
FCTL3 = FWKEY; // Clear LOCK
FCTL1 = FWKEY + ERASE; // Enable segment erase
*(unsigned int *)0x1000 = 0; // Dummy write, erase info B
while(FCTL3 & BUSY);
FCTL1 = FWKEY + WRT; // Enable write
Lock_f=Lock;
while(FCTL3 & BUSY);
FCTL1 = FWKEY; // Done. Clear WRT
FCTL3 = FWKEY + LOCK;
}
conform me when prog execute the bolded line will be clear the memoey block or only the 0x1000 memory segment in the flash memory?
{
while(FCTL3 & BUSY);
FCTL2 = FWKEY + FSSEL1 + FN0; // SMCLK/2 = ~500kHz
FCTL3 = FWKEY; // Clear LOCK
FCTL1 = FWKEY + ERASE; // Enable segment erase
*(unsigned int *)0x1000 = 0; // Dummy write, erase info B
while(FCTL3 & BUSY);
FCTL1 = FWKEY + WRT; // Enable write
Lock_f=Lock;
while(FCTL3 & BUSY);
FCTL1 = FWKEY; // Done. Clear WRT
FCTL3 = FWKEY + LOCK;
}
conform me when prog execute the bolded line will be clear the memoey block or only the 0x1000 memory segment in the flash memory?