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.

Question about the image address setting in the CCS

Hi, Big guns:

I have a question about how to set the image address in the CCS.

We know that after compiling and linking, the CCS will generate a map file, in this file there is the address information to the image. In other tools I know that we can use the scatter file to assign the sectors to the designed system memories, but in CCS, I have no idea how to do the same thing, I have checked the linker setting many times, but cannot find it.

Go ahead this question, when we start to debug the code image, how can we know where the image will be loaded in the system memory?

Anyone can help me?

Thanks a lot.

  • The linker in the ARM Ltd compiler toolchain uses a scatter file to specify details of how sections (and segments?) are allocated to memory.  The TI compiler toolchain does the same thing with a linker command file.  When you start a new project with CCS you name the platform you are working on.  This, in turn, causes CCS to choose an initial linker command file for you.  The file extension is usually .cmd.  It is a text file you can edit like any other in CCS.

    To understand that linker command file, please see this wiki article.  It's a work in progress, but I think it is far enough along to be helpful to you.

    Thanks and regards,

    -George