This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430G2231: Erasing MAIN memory from custom BSL code - segment vs. mass

Part Number: MSP430G2231

I've been going through the sample custom BSL code for the G2231, as found in MSP430BSL_1_00_12_00.zip.  The code is to be located entirely in INFO memory.  I see that to erase MAIN memory, the author executes an individual segment erase for each of the four 512-byte segments in MAIN in the G2231.  So he has MERAS cleared and ERASE set.  But it seems a more straightforward method, and one more suitable for the limited space available, would be to perform a single INFO erase - with MERAS set and ERASE cleared.  According to slau144j, neither method would erase any INFO space.

Would the mass MAIN erase take more time than the aggregate of four-segment erases?  Are there any other considerations that would lead one to prefer the individual segment erasure method?

And a bit off the subject, but does TI offer sample BSL flashing software for Windows that matches the protocols of this custom BSL?

  • The minimum cumulative mass erase time is documented at 20 ms whereas the segment erase function inside of the custom G2xxx_BSL code was measured at 16 ms. However this does seem to contradict the specifications in the Flash Memory Table of the Datasheet when four segments are considered so you can try performing a mass erase if you'd prefer and evaluate the solution yourself.

    I am not aware of specific BSL flashing software to accompany this custom BSL, are you not able to source from BSLDEMO or the MSPBoot host project?

    Regards,
    Ryan

**Attention** This is a public forum