> I want to separate the information memory into section A and B and write a
> separate set of data to each section.  What's the best way to do this?

Um, just do it?  It's already broken into two sections (four on the
F2xx parts), so you can erase and program each half separately.

One half is at 0x1000..0x107F, while the other is at 0x1080..0x10ff.

> If I use the union/structure approach and define two 128 byte long
> structures, when I force an erase will it erase just the one section or
> will it erase both?    

How you write the C code (or, indeed, if you write in C at all) will
have precisely zero effect on how the chip will be erased.  That's
a matter for your programming firmware or the device programmer you use.

You can do a mass erase of everything, or a selective erase of a single
segment.  See the "Flash Memory Controller" chapter of the MSP430 manual
for instructions on the various erase and programming options.
Any programming technique you use eventually reduces to using the
on-chip flash memory controller.

Reply via email to