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: CMD file's value define rules

Other Parts Discussed in Thread: MSP430FR2433

Tool/software: Code Composer Studio

Hi

I have a question here if write a code like below directly(Not in MEMORY or SECTIONS):

__RAM_Start = 0x2000; /* RAM Start */

1:Does that mean I defined a pointer that named "__RAM_Start " that point to address "0x2000" ?(Which document  and which part I can refer to? The more detail the better)

2:Does the "__" have any special meaning here? And how about "_" ?

The using condition you can refer to the my application cmd file

https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/81/lnk_5F00_msp430fr2433_5F00_UART_5F00_2KB_5F00_Single_5F00_Boot.cmd

  • From the linker command file, I determined that you use the MSP430 family of processors.  Please see the sub-chapter titled Linker Symbols in the MSP430 assembly tools manual.

    Gary Gao said:
    Does the "__" have any special meaning here? And how about "_" ?

    The underscores have no special meaning as far as the linker is concerned.  It is probably part of some naming convention imposed elsewhere.

    Thanks and regards,

    -George

  • Hi George

    Thank your for your answer.
    I have read the document of MSP430 assembly tools manual but I have not found the answer for my NO.1 question. Can you show me the details about it ? And more clear answer about my question NO. 1?

    Best regards
    Gary
  • Gary Gao said:
    Does that mean I defined a pointer that named "__RAM_Start " that point to address "0x2000"

    No.  It means you defined a symbol with the value 0x2000.  A pointer is an example of a variable.  Please read through the Linker Symbols sub-chapter again to understand the difference between symbols and variables.

    Thanks and regards,

    -George