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.

CCS/CC430F5137: write Data only to INFO PAGES

Part Number: CC430F5137

Tool/software: Code Composer Studio

Hi all,

I want to have 2 different Projects.

One should be the main Projects which is on every microcontroller the same.

The other Project should just write some information into the information memory. (flashing this project is done after flashing the first project)

So, my problem is, that i do not want the erase the main() sector from the first project with the second project.

Is there any opportunities do that easily?

I have read a lot of DSS and with the GEL Files, but i want to do that easier.

It does not matter if its directly in the CCS or on the command line.

Could someon explain me a way to do that?

Or give me an example of DSS Code which is only writing some Data in the information memory?

best regards,

chris :-)

  • Chris,

    Christof Schuetzenhoefer said:
    The other Project should just write some information into the information memory. (flashing this project is done after flashing the first project)

    Does flashing the project that writes to information memory HAVE to done after flashing the main project? If the order can be reversed, it would be easier to control the flash setting by choosing the "Erase main memory only" option when loading the main project (assuming it is only writing to main memory).

    If the order has to be as you mentioned, then you could try the setting "Replace written memory locations, retain unwritten memory locations" when loading the main project. Please see this wiki section for more information.

  • The Goal is to fill the memory via CMD with data, for example with a DSS script.
    Now i have a script which can do it, but the problem is that i want to write to a protected flash segment (INFO_A) but it has no effect.
    Does someone know how to do it?

    Actually, this is a part of my code to unlock the segment and write data in:
    while((debugSession.memory.readRegister("Flash_FCTL3") & 0x08) == 0x00);
    debugSession.memory.writeRegister("Flash_FCTL3", (0xA500 + 0x0040))
    debugSession.memory.writeRegister("Flash_FCTL1", (0xA500 + 0x0040))
    debugSession.memory.writeWord(0,6528, 2500)
    while((debugSession.memory.readRegister("Flash_FCTL3") & 0x08) == 0x00);
    debugSession.memory.writeRegister("Flash_FCTL3", (0xA500 + 0x0040 + 0x0010))

    What am i doing wrong?
    Is it possible to write over DSS to a locked segment?

    best regards,
    chris
  • Your general method of using DSS sounds ok, however I'm not sure what all is required for writing to a protected flash segment in this device. The MSP430 experts should be able to assist better with that. I would suggest asking in the MSP430 device forum as they may even have some other suggestions to offer on writing data to info memory.