Hello,
There appears to be a difference in notation between the DSS API and the User Guide for the MSP430F249.
In the DSS API, the following example is given:
// set the sectors to erase and erase flash
mySession.options.setBoolean(SECTORA, true);
mySession.options.setBoolean(SECTORB, false);
mySession.options.setBoolean(SECTORC, true);
mySession.options.setBoolean(SECTORD, true);
mySession.options.setBoolean(SECTORE, false);
mySession.flash.erase();
The User Guide for the MSP430F249 states the following:
- Flash memory has n segments of main memory and four segments of information memory (A to D) of 64 bytes each. Each segment in main memory is 512 bytes in size.
- Segments 0 to n may be erased in one step, or each segment may be individually erased.
- Segments A to D can be erased individually, or as a group with segments 0−n. Segments A to D are also called information memory.
Using DSS, I would like to erase main segment 1 only. I have tried following the example script above (since that's all there is to work with) and tried setting the Booleans SECTOR1 and SEGMENT1 however neither of these exist. Is there a way to erase only this segment (and if so, how do I reference it)? Are there functions for performing the writes as well or must we really resort to opcodes here?
Many thanks,
--
Joshua