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.
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
What happens if you remove both the --algebraic option and the --asm_source option?
-George
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)
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