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.

Linker Error after reinstall of CCS v3.3

I had to reinstall CCS v3.3 studio on my XP machine.  Now when I try to build one of my old projects I get the following Linker error:

"Exp7x.cmd:  error: system error, can't open file '//search.obj' for input:

invalid argument"

I do not have a file search.obj in my project.  Something must be wrong with my project setup, but I am not sure what to look at.  Any suggestions?

  • I presume your project has linker command file Exp7x.cmd.  My guess is that something in this file is causing the problem.  Please take a look at it.  If don't find anything suspicious, feel free to attach it to your next post.  When you attach it, you probably have to change the file extension to something harmless like .txt.

    Thanks and regards,

    -George

  • I have looked over the command file,it looks ok to me.  I have attached it renamed to Exp7x.txt from Exp7x.cmd.

    Exp7x.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    /***************************************************************************
    *
    *
    * ** ** ** ****** ******** ******** ******** ** **
    * ** ** ** ** ** ******** ******** ******** ** **
    * ** ***** ** ** ** ** ** ** **
    * ** ** ****** ** **** ** ********
    * ** ** ** ** ** ** ** ** **
    * ******* ** ** ** ** ******** ******** ** **
    * ******* ** ** ** ** ******** ******** ** **
    *
    * L Y R T E C H S I G N A L P R O C E S S I N G
    *
    ***************************************************************************
    *
    * Project : PADK
    * File : PADK.cmd
    * Description : PADK Generic Cmf file
    *
    * Copyright (c) Lyrtech inc. 2005-06
    *
    ***************************************************************************/
    -stack 0x10a0 //search for _stack
    -heap 0x10
    /* N.B.: The following paths must be set by the user */
    /* CSL library path */
    -i"C:\CCStudio_v3.3\C6000\csl\csl_C672x\dsp\lib"
    /* CSL intc library path */
    -i"C:\CCStudio_v3.3\C6000\csl\csl_C672x_intc\dsp\lib"
    /* Include TI libraries */
    -lrts67plus.lib
    /*-lcsl_C6727.lib
    -lcsl_C672x_intc.lib
    */
    /****************************************************************************/
    /* Specify the Memory Configuration */
    /****************************************************************************/
    /*SDRAM 4M x16 = 0x400000 x16 -> 8MB length = 0x800000 */
    MEMORY
    {
    ROM_VECS : origin = 0x00000000 length = 0x00001000
    ROM : origin = 0x00001000 length = 0x000BF000
    VEC : origin = 0x10000000 length = 0x00001C00
    RAM : origin = 0x10001C00 length = 0x0003E400
    SDRAM : origin = 0x80000000 length = 0x00800000
    FPGA : origin = 0x90000000 length = 0x00004000
    }
    /****************************************************************************/
    /* Specify the Output Sections */
    /****************************************************************************/
    SECTIONS
    {
    .TIBoot: load = RAM
    .text: load = RAM
    .stack load = RAM fill = 0xdeadbe16 /*0xdeadbe?? ??=Ver Number */
    .cinit load = RAM
    .cio load = RAM
    .const load = RAM
    .data load = RAM
    .switch load = RAM
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Are "//" comments legal in a .cmd file?

    Try changing the "//search for _stack" comment to "/* search for _stack */".
  • Using // for comments in the linker command file became legal in compiler tools version 6.1.0, about 7 years ago.

    Thanks and regards,

    -George