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.

CC430F5137: How do I program just SegmentA

Part Number: CC430F5137
Other Parts Discussed in Thread: UNIFLASH, MSP-FET

I have generated both .txt and .out files from CCS for my CC430 device.  I would like to program the device with a master file, and then go back and write only SegmentA with device-specific data (4 byte serial number).  Can I do that with Uniflash, Flash Programmer 2 or some other tool?  If I create the device specific file so that it has the same data as the master file, I can program with it in Uniflash.  However, if I change the serial number in the device file, I can't program with it because the value mismatches what was already programmed on the device.

  • Hi,

    Yes, you can use Uniflash to do it.

    1. You need to create a file that only contain the code which you want to download into device.

    2. Change the erase set of Uniflash.

    3. Download code.

    Eason

  • Eason,

    I tried your suggestion, but unfortunately it didn't work. Once I write data into any of the four Info segments in my FW, I am unable to erase or overwrite the data using the MSP-FET.  I have tried UniFlash and the older MSP430Flasher, with the same failing results.

    The output comments in UniFlash say that the write succeeds, with a number of bytes that matches what I put in the TI-txt file, but when I run Verify Image it always fails.  If I use the Memory Browser, I see the same data generated in the FW.

    If the FW did not write any data into the information segment, then I am able to use UniFlash to erase and write data.  Perhaps that is my problem.  I thought I could use UniFlash to overwrite data in the information memory Segments, but that isn't allowed.  The UniFlash manual says:
    "Click on the "+" icon to add and load multiple flash images. Only the checked images will be flashed. The user need to be sure that the images does not overwrite each other in the target memory."
    Perhaps that is the reason I can't overwrite data that was previously written in the FW.

    Chuck

  • Hi Chuck,

    1. Do you choose the erase options as I posted?

    2. I try this on G2553, to write in its information memory. As I check, the information memory changed, but the code in main memory didn't change. Then I overwrite the information memory, it also works.

    3. Can you give me a screenshot of your setting and the feedback from uniflash.

    Eason

  • Eason,

       I went back and retried you solution and it worked.  I must have used the wrong settings before.  Thank you. Xie4xie.