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.

Use CCS v6.0 to write constants to Information Memory

Other Parts Discussed in Thread: MSP430G2453

This is a 2 part question with a comment:

1) We are writing constants into the Information Memory of an MSP430G2453 when flashing the product for resale.

Can we write values into Information Memory (not using the code in the main segment of memory) when debugging the  MSP430G2453 with CCS, if so how?  

Example:

Memory address 0x1000 value will be 0x6a4,

Memory address 0x1002 value will be 0x73a,

...,(we will include other locations as well).

2)  If the above is possible, can we use the TI-TXT hex format file to flash the values into the uC for production?

Comment: If a script needs to be written for CCS, could you please line us out on how to go about this function.

  • MAC Engineering said:
    Can we write values into Information Memory (not using the code in the main segment of memory) when debugging the  MSP430G2453 with CCS, if so how?  

    Using CCS, writing to information memory is done during flash programming just like other parts of Flash memory. The values to be written need to be in the code. CCS does not allow writing to that memory directly from the debugger views.

    MAC Engineering said:
    can we use the TI-TXT hex format file to flash the values into the uC for production?

    Yes that should be possible. I would suggest asking in the MSP forum for more details and specifics about this. There may also be other tools (like those from Elprotronic) that they recommend that may be able to accomplish what you are looking for.

  • How about the Scripting Console?

    I see there is a function memFill() that takes the arguments of the begging address and how many words to write.

    It seems that we could write a script similar to what is found here?:
    processors.wiki.ti.com/.../Scripting_Console

    What are your thoughts on this? Am I not understanding the purpose of the Scripting Console or should be be able to get the job done here?
  • MAC Engineering said:
    I see there is a function memFill() that takes the arguments of the begging address and how many words to write.

    Sorry I misspoke earlier when I said that CCS does not allow writing to Flash memory directly from the debugger views. When debugging with the FET on MSP430 devices, loading and filling flash memory is supported. So you can use the Fill Memory menu from the Memory Browser view in CCS, or use memFill() with Scripting and they should work.