SLAU654E November 2015 – February 2019
MSP Flasher supports erasure and reprogramming of a single memory segment while the rest of the device memory is left untouched. To use this feature, use the -e switch with the ERASE_SEGMENT option.
The user must provide a TI-txt or Intel-hex file that contains the target code in one continuous block. The start address of this memory block defines the segment that should be erased.
NOTE
The size of the memory block that to program must not exceed the size of the segment in which it should be programmed. Memory segments are either 256, 512, or 1024 bytes and have fixed addresses inside the main memory depending on the MSP430 device. Refer to the device user's guide and data sheet for the segment size and location for a specific target device.
NOTE
The entire segment will be erased prior to programming, even if the memory block to be programmed is smaller than the memory segment size.
It is also possible to leave the target memory unchanged before programming by using the -e NO_ERASE option. Thus, multiple memory blocks can be programmed into the device while leaving the memory sections in between them unchanged.
NOTE
Check the boundaries of the memory blocks to be programmed carefully when using the NO_ERASE option. Particularly on target devices with flash memory, writing without erasing can cause data corruption.