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 Error C5500

Apologies if this seems a redundant query. I searched and I think this is new to the forum.

Within CCS 6.1 and with the eZ5535 DSP kit, I am trying to build code originally written for the C5505. I know about the I2S2 and the AIC3204 codec updates.

This is a compiler error with the following message. All source code .c files give this error. There are eight of them in my project. So, the error repeats 8 times.

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../aic3204.c'
'Invoking: C5500 Compiler'
"C:/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=huge -O1 --symdebug:coff --include_path="C:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" --include_path="C:/c55_lp/c55_dsplib_3.00" --include_path="C:/Users/Shankara/workspace_v6_1/FFT Example/project/Debug" --include_path="C:/Program Files (x86)/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c5500" --include_path="C:/Users/Shankara/workspace_v6_1/FFT Example/project/Debug" --include_path="C:/Program Files (x86)/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --define="_DEBUG" --define="C55X" --define=c5535 --diag_warning=225 --sat_reassoc=off --ptrdiff_size=32 --fp_reassoc=off --algebraic --no_mac_expand --asm_source=mnemonic --preproc_with_compile --preproc_dependency="aic3204.pp"  "../aic3204.c"
ERROR: -v is not used by this program
ERROR!  : unrecognized option [-v5515] (ignored)

ERROR!  : Cannot open source file 74: No such file or directory

>> Compilation failure
gmake: *** [aic3204.obj] Error 1

Thanks!!!

  • The build options --algebraic and --asm_source=mnemonic may not be combined.  Remove either option and the build completes normally.  

    The compiler should detect this user error and issue a meaningful diagnostic.  I filed SDSCM00051720 in the SDOWP system.  The C5500 compiler is not under active development, so this issue may never be addressed.  Even so, you are welcome to follow this issue with the SDOWP link below in my signature.

    Thanks and regards,

    -George

  • Hi George,

    Thanks. That helps and it is obvious now that you mentioned it.

    This is now opening up other compiler problems. I used both --algebraic and --mnenmonic on the command line, one at a time.

    Are there things I need to consider when compiling .c files and .asm files in the same project? As of now, I am having problems with this.

    Thanks!
  • Are you getting more compilation errors? If so, post them
  • Hundreds of them all like this:


    "..\codec_routines.asm", ERROR! at line 363: [E9999] Invalid mnemonic
    specified
  • Use --algebraic and not --mnemonic. Does that help?
  • No.

    The algebraic option didnt get a good result either.

    Here is the compiler command line:
    -v5515 --memory_model=huge -O1 --symdebug:coff --include_path="C:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" --include_path="C:/c55_lp/c55_dsplib_3.00" --include_path="C:/Users/Shankara/workspace_v6_1/FFT Example/project/Debug" --include_path="C:/Program Files (x86)/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c5500" --include_path="C:/Users/Shankara/workspace_v6_1/FFT Example/project/Debug" --include_path="C:/Program Files (x86)/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --define="_DEBUG" --define="C55X" --define=c5535 --diag_warning=225 --sat_reassoc=off --ptrdiff_size=32 --fp_reassoc=off --no_mac_expand --asm_source=algebraic

    Here is the compiler error log which I aborted.

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../aic3204.c'
    'Invoking: C5500 Compiler'
    "C:/ti/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=huge -O1 --symdebug:coff --include_path="C:/ti/ccsv6/tools/compiler/c5500_4.4.1/include" --include_path="C:/c55_lp/c55_dsplib_3.00" --include_path="C:/Users/Shankara/workspace_v6_1/FFT Example/project/Debug" --include_path="C:/Program Files (x86)/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c5500" --include_path="C:/Users/Shankara/workspace_v6_1/FFT Example/project/Debug" --include_path="C:/Program Files (x86)/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --define="_DEBUG" --define="C55X" --define=c5535 --diag_warning=225 --sat_reassoc=off --ptrdiff_size=32 --fp_reassoc=off --no_mac_expand --asm_source=algebraic --preproc_with_compile --preproc_dependency="aic3204.pp" "../aic3204.c"
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 12:
    [E0004]
    Substitution symbol operand expected
    .asg DPH, MDP
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 67:
    [E0000]
    parse error
    PSH T2
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 68:
    [E0000]
    parse error
    PSHBOTH XAR5
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 69:
    [E0000]
    parse error
    AADD #-3, SP
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 70:
    [E0000]
    parse error
    AMAR *AR0, XAR5
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 72:
    [E0000]
    parse error
    AND #0x007f, T0, AC0 ; |78|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 73:
    [E0000]
    parse error
    MOV AC0, *SP(#0) ; |78|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 75:
    [E0000]
    parse error
    MOV #0, *SP(#1) ; |79|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 77:
    [E0000]
    parse error
    MOV #24, T0 ; |81|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 78:
    [E0000]
    parse error
    AMAR *SP(#0), XAR0
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 81:
    [E0000]
    parse error
    || MOV #1, T1
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 84:
    [E0000]
    parse error
    MOV T0, T2 ; |81|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 86:
    [E0000]
    parse error
    MOV #24, T0 ; |82|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 87:
    [E0000]
    parse error
    AMAR *SP(#0), XAR0
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 90:
    [E0000]
    parse error
    || MOV #1, T1
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 93:
    [E0000]
    parse error
    OR T0, T2 ; |82|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 95:
    [E0000]
    parse error
    MOV *SP(#0), AR1 ; |84|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 96:
    [E0000]
    parse error
    MOV AR1, *AR5 ; |84|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 100:
    [E0000]
    parse error
    || MOV #10, AC0 ; |85|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 104:
    [E0000]
    parse error
    MOV T2, T0 ; |86|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 106:
    [E0000]
    parse error
    AADD #3, SP
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 107:
    [E0000]
    parse error
    POPBOTH XAR5
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 108:
    [E0000]
    parse error
    POP T2
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 109:
    [E0000]
    parse error
    RET
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 142:
    [E0000]
    parse error
    AADD #-3, SP
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 144:
    [E0000]
    parse error
    AND #0x007f, T0, AC0 ; |99|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 145:
    [E0000]
    parse error
    MOV AC0, *SP(#0) ; |99|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 147:
    [E0000]
    parse error
    MOV T1, *SP(#1) ; |100|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 149:
    [E0000]
    parse error
    AMAR *SP(#0), XAR0
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 151:
    [E0000]
    parse error
    MOV #24, T0 ; |102|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 152:
    [E0003]
    Only labels and comments may begin in the first column. Make sure
    that the label name is not a reserved keyword.
    || MOV #2, T1
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 152:
    [E0000]
    parse error
    || MOV #2, T1
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 157:
    [E0000]
    parse error
    AADD #3, SP
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 158:
    [E0000]
    parse error
    RET
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 182:
    [E0000]
    parse error
    AADD #-1, SP
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 187:
    [E0000]
    parse error
    MOV #100, AC0 ; |119|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 191:
    [E0000]
    parse error
    AADD #1, SP
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 192:
    [E0000]
    parse error
    RET
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 216:
    [E0000]
    parse error
    AADD #-1, SP
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 218:
    [E0000]
    parse error
    MOV #1, T0
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 221:
    [E0000]
    parse error
    || MOV #1, T1
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 225:
    [E0000]
    parse error
    MOV #0, *port(#10752) ; |132|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 227:
    [E0000]
    parse error
    AADD #1, SP
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 228:
    [E0000]
    parse error
    RET
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 261:
    [E0000]
    parse error
    AADD #-1, SP
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 263:
    [E0000]
    parse error
    MOV #0, *(#_counter1) ; |145|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 265:
    [E0000]
    parse error
    BTST #3, *port(#10768), TC1 ; |148|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 266:
    [E0000]
    parse error
    BCC $C$L2,TC1 ; |148|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 270:
    [E0000]
    parse error
    ADD #1, *(#_counter1) ; |150|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 272:
    [E0000]
    parse error
    BTST #3, *port(#10768), TC1 ; |148|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 273:
    [E0000]
    parse error
    BCC $C$L1,!TC1 ; |148|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 277:
    [E0000]
    parse error
    MOV *port(#10793), AR2 ; |153|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 278:
    [E0000]
    parse error
    MOV AR2, *AR0 ; |153|
    ^
    72 Assembly Errors, No Assembly Warnings
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 280:
    [E0000]
    parse error
    MOV *port(#10792), AR2 ; |154|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 281:
    [E0000]
    parse error
    MOV AR2, *SP(#0) ; |154|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 283:
    [E0000]
    parse error
    MOV *port(#10797), AR2 ; |155|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 284:
    [E0000]
    parse error
    MOV AR2, *AR1 ; |155|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 286:
    [E0000]
    parse error
    MOV *port(#10796), AR1 ; |156|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 287:
    [E0000]
    parse error
    MOV AR1, *SP(#0) ; |156|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 289:
    [E0000]
    parse error
    AADD #1, SP
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 290:
    [E0000]
    parse error
    RET
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 321:
    [E0000]
    parse error
    MOV #0, *(#_counter2) ; |168|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 323:
    [E0000]
    parse error
    BTST #5, *port(#10768), TC1 ; |170|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 324:
    [E0000]
    parse error
    BCC $C$L4,TC1 ; |170|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 328:
    [E0000]
    parse error
    ADD #1, *(#_counter2) ; |172|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 330:
    [E0000]
    parse error
    BTST #5, *port(#10768), TC1 ; |170|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 331:
    [E0000]
    parse error
    BCC $C$L3,!TC1 ; |170|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 335:
    [E0000]
    parse error
    MOV T0, *port(#10761) ; |174|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 337:
    [E0000]
    parse error
    MOV #0, *port(#10760) ; |175|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 339:
    [E0000]
    parse error
    MOV T1, *port(#10765) ; |176|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 341:
    [E0000]
    parse error
    MOV #0, *port(#10764) ; |177|
    ^
    "C:\Users\Shankara\AppData\Local\Temp\0921210", ERROR! at line 343:
    [E0000]
    parse error
    RET
    ^

    Errors in Source - Assembler Aborted

    **** Build of configuration Debug for project VC5505 FFT Filter Demo ****

    !CommandLauncher.error.commandCanceled!
    Error: Program "C:/ti/ccsv6/utils/bin/gmake" is not found in PATH

    PATH=[C:\ti\ccsv6\ccs_base\common\bin;C:\ti\ccsv6\ccs_base\common\uscif;C:\ti\ccsv6\ccs_base\DebugServer\license;C:\ti\ccsv6\ccs_base\common\bin;C:\ti\ccsv6\ccs_base\common\uscif;C:\ti\ccsv6\ccs_base\DebugServer\license;C:/ti/ccsv6/eclipse/jre/bin/client;C:/ti/ccsv6/eclipse/jre/bin;C:/ti/ccsv6/eclipse/jre/lib/i386;C:/Program Files (x86)/Texas Instruments/xdctools_3_22_01_21;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\TXE Components\TCS\;C:\Program Files\Intel\TXE Components\TCS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\HEAD Shared\;C:\ti\ccsv6\eclipse;]

    **** Build Finished ****
  • What happens if you remove both the --algebraic option and the --asm_source option?

    -George

  • Are there any asm statements in your C code? If so, do they have the required leading whitespace?
  • Dear TI gurus

    I am making slow forward progress on this. Thanks to you folks.

    Here is my latest setting on the C5500 compiler: The --asm_source option is set to mnemonic so that the C code compiles. There is no asm code in the .C files.

    However there is an asm source code file <codec_routines.asm> Compiler aborts due to syntax errors such as these below.

    Many thanks!

    "..\codec_routines.asm", ERROR!   at line 82: [E9999] Syntax Error
                T0 = *port(#0x1C00)

    "..\codec_routines.asm", ERROR!   at line 82: [E9999] Invalid mnemonic specified
                T0 = *port(#0x1C00)

    "..\codec_routines.asm", ERROR!   at line 83: [E9999] Syntax Error
                T0 |= #0x003F

    "..\codec_routines.asm", ERROR!   at line 83: [E9999] Invalid mnemonic specified
                T0 |= #0x003F

    "..\codec_routines.asm", ERROR!   at line 84: [E9999] Illegal directive or
                                                          mnemonic
                *port(#0x1C00) = T0

    "..\codec_routines.asm", ERROR!   at line 85: [E9999] Syntax Error
                repeat(#9)

    "..\codec_routines.asm", ERROR!   at line 85: [E9999] Invalid mnemonic specified
                repeat(#9)

  • Progress was made after setting the option for Codegen to produce algebraic assembly and setting the --asm_source to algebraic.
  • Why would I be seeing unresolved symbols?
    I have included the .h files that declare them.


    ----------------------------------------------------------------
    undefined first referenced
    symbol in file
    --------- ----------------
    _USBSTK5505_I2C_init ./aic3204.obj
    _USBSTK5505_I2C_read ./aic3204.obj
    _USBSTK5505_I2C_write ./aic3204.obj
    _USBSTK5505_wait ./aic3204.obj

    error: unresolved symbols remain
    error: errors encountered during linking; "VC5505_FFT_Filter_Demo.out" not
    built
  • Those symbol names appear to be the names of functions. They are probably from a library.  Be sure that library is among the inputs to the linker.

    Thanks and regards,

    -George

  • Hi George

    The library is included in the project. The raw listing file indicates that the #include statement in the .c source file is properly calling the .h file where these functions are declared.

    What else am I missing?

    Thanks,

  • Where did you get the header file that declares those functions?  That same place should also provide the full implementation of those functions.  It is typical for that implementation to be supplied in the form of a library.  However, this old forum thread makes me think it may be a single source file.  Whether it is a library or a single object file, you have to be sure that it contains the full implementation of those functions, and it is supplied as one of the inputs to the linker.  If this is a CCS project, then you have to add the file to the project.

    Thanks and regards,

    -George

  • Okay. That took care of it. Thanks.