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.

Different Erase Options of CCS Debugger affects MSP430 Flash download

Other Parts Discussed in Thread: MSP430F2417

My R&D computer installs CCS5.1, but product line computer installs CCS5.5.

I specify my flash to a certain values in command file using "fill" keyword as follows, and generates a .out file.

MEMORY
{
......
INFODA : origin = 0x1014, length = 0x0002,fill=0x1B58 /*INV_FREQ_SET_ADDR*/

......

}

In product line CCS5.5, a dialog pops"Load program Error. a data verification error occurred." Though MCU can also run after download, 0x1014 location value is NOT 0x1B58.

In my CCS5.1, I can download the .out file to my MSP430F2417 successfully through JTAG, and 0x1014 location value is 0x1B58 as it should be.

I found a difference between these two CCS version, that is the default Erase Options. In CCS5.1, it's "Erase main and information memory", but it's "Erase main memory only".

After I modify the Erase Options in CCS5.5 to "Erase main and information memory", the download, verification and 0x1014 value are all correct.

My questions are:

1. How does the Erase Options cause this problem?

2. Is the .out file standalone? Should I copy my command file to the product line computer as well as .out file?

  • liangyan zhu said:

    1. How does the Erase Options cause this problem?

    I am guessing that you are writing (your out file with inserted value) to flash info memory segment D, without erasing it first. And you have verify error. If verify error also give you information about value stored in than location, than you know what was there before.

  • Why is it necessary to erase info memory segment D before writing it?

    The location value is 0xFFFF after writing, but NOT the value I want to write.

**Attention** This is a public forum