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.

Compiler/SIMPLELINK-CC3220-SDK: ti-cgt-arm_17.6.0.STS Linker Issue | cmd-file

Part Number: SIMPLELINK-CC3220-SDK
Other Parts Discussed in Thread: CC3220SF

Tool/software: TI C/C++ Compiler

Hello Dear Community,

I am currently facing the issue that when I run the TI-Linker with the a response file, I get the error :

invalid linker option --cmd-file=CMakeFiles/BinaryOut.out.rsp (ignored)

invalid linker option --cmd-file=../../../Platforms/cc32xx/CC3220SF_LAUNCHXL_FREERTOS.cmd (ignored)


This is the command I am using.

C:\TI\ccsv7\tools\compiler\ti-cgt-arm_17.6.0.STS\bin\armcl.exe --run_linker --output_file=Implementation\BinarayOut.out --map_file=Implementation\BinarayOut.out.map  -z --heap_size=0x00008000 --stack_size=0x00006000 --priority --reread_libs --diag_wrap=off --display_error_number --warn_sections --rom_model --cmd-file=../../../Platforms/cc32xx/CC3220SF_LAUNCHXL_FREERTOS.cmd --cmd-file=CMakeFiles/BinarayOut.out.rsp

What I am doing wrong?

 

  • The option is spelled --cmd_file .  Use an underscore '_', instead of a dash '-'.

    Thanks and regards,

    -George

  • Thanks for your help.
    Another small offtopic question.

    Is it possible to have the input files listed in a file which is added by the command "-cmd_file="?

    Because I got now the error: fatal error #10009: no input files
  • Btw: I need to use -cmd_file instead of --cmd_file. Is this normal?
  • I apologize.  I just now took a close look at your command line.  I should have told you this earlier.

    The option --run_linker splits the command line in two.  Everything before goes to the compiler.  Everything after goes to the linker.  The linker does not have an option named --cmd_file.  When specifying a command file to the linker, no option precedes it.  The linker automatically detects the difference between a command file and an object file.

    user4586765 said:
    Btw: I need to use -cmd_file instead of --cmd_file. Is this normal?

     

    The option -cmd_file is not documented.  I'm surprised it works.  As I already explained, you can remove it.

    Thanks and regards,

    -George