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/MSP430F67461A: Change in RAM address with CCS 7 vs CCS 6

Part Number: MSP430F67461A

Tool/software: Code Composer Studio

With code composer 6,  our global variables are assigned addresses in RAM in the order that they are listed in when initialized.  In code composer 7, the individual variables are still in order but the structures are place in a different area of RAM.  Is there a setting that I can make so CCS7 works like CCS6 did?  Thanks.

  • Dave Bartlett said:
    Is there a setting that I can make so CCS7 works like CCS6 did?

    Unfortunately, there is no compiler option which does that.  The C standard imposes no requirements on the order of global variables in memory.  The compiler makes no effort to maintain a particular order.  While it tends to be similar release to release, that is not guaranteed.

    If you need a global variable to be at a specific address, then consider using #pragma LOCATION.  It is documented in the MSP430 compiler manual.

    Thanks and regards,

    -George

  • Thanks.  I was hoping everything would stay aligned but will use the location pragma for my critical variables.