SLAU654E November   2015  – February 2019

 

  1.   MSP Flasher
    1.     Trademarks
    2. 1 Introduction
    3. 2 Compatibility
    4. 3 Triggers and Arguments
    5. 4 Exit Specifications
    6. 5 Firmware Update
    7. 6 Segment Erase
    8. 7 Example Cases
      1. 7.1 Loading and Executing Target Code From a TXT File
      2. 7.2 Reading Device Memory
      3. 7.3 Accessing a Device With a Device Activation Code
      4. 7.4 Securing the Target Device
      5. 7.5 Unlocking a Password-Protected Target Device
    9. 8 Using MSP Flasher on Unix
    10. 9 Error Codes
  2.   Revision History

Segment Erase

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.