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 building a new project: when do we need .cmd file?



Hello:

I am the starter of using CCS and C6713.  I read the helloworld example project and found that there was no

.cmd file in it.  Probably because the printf("helloworld") does not require any memory allocation at DSK.

 

But if I want to realize the output of the sum of two simple variables, such as sum=a+b.  I want to do printf("sum=%d,",sum).  Do I need to write cmd file to allocate memory space of a, b, and sum?

 

I figure that any algorithm using variables must requires the cmd file in project.  Cmd file is a must. Is my guess true?

 

Pardon for my dummy questions because I am just a novice.

 

Thanks

  • Hi,

    When you create new project for any C6000 processor on CCS, you will get appropriate device linker command (.cmd) file.

    Linker command file is mandatory to build every sections of .elf or COFF section of output binary.

    Also we can mention that which memory we can use to download the program.

  • Hi Yu,

    Yu says said:
    I figure that any algorithm using variables must requires the cmd file in project.  Cmd file is a must. Is my guess true?

    yes CMD file is the must. As a part of building process, during the linking stage, the linker uses the *.cmd file to link together various object files to produce the *.out and *.map files.

    The linker command file, *.cmd is a file which contains the information about which memory sections ( .text, .bss, .cinit e.t.c., ) has to be placed in which type of memory ( FLASH, internal RAM, SDRAM ) .

    So, the *.cmd file is a must. I hope this answers your question.

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    --------------------------------------------------------------------------------------------------------