Hi,
I'm working with a TMS320C5517 EVM Board (ASSY 514660 REV F) and CCSv5.5.0.00077 on a Windows 7 64-bit system. I've downloaded the Board Support Library for EVM5517 from Spectrum Digital and I'm having trouble using some of the source files from the bootdemo project when I build my own project and link to them. I haven't tested all of the other tests in the BSL but bootdemo seems to be the only one with which I have been having trouble. The error I am getting is a 'declaration is incompatible' error (shown below). I do not get this error when I build the bootdemo project as it came in the library, only when I link to the files in my own project. (Merely linking them without even calling any functions from those files causes the error.) This makes me suspect that either the source files have a dependency I am not including in my new project or that I linked them incorrectly. The fact that I have been able to successfully link to source files from other projects in the BSL makes me think that the latter is not the problem.
Here is the output from the build console:
"C:\\ti_ccsv5.5\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../lcd.c'
'Invoking: C5500 Compiler'
"C:/ti_ccsv5.5/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5517 --memory_model=large -g --include_path="C:/ti_ccsv5.5/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/ti_ccsv5.5/evm5517_v1/include" --include_path="C:/ti_ccsv5.5/xdais_7_21_01_07/packages/ti/xdais" --include_path="C:/ti_ccsv5.5/evm5517_v1/tests/bootdemo/inc" --define=c5517 --display_error_number --diag_warning=225 --ptrdiff_size=16 --preproc_with_compile --preproc_dependency="lcd.pp" "../lcd.c"
>> WARNING: version specified in option -v5517 is unknown (ignored)
"../lcd.c", line 27: error #148: declaration is incompatible with "void wait(Uint32)" (declared at line 31 of "C:/ti_ccsv5.5/evm5517_v1/tests/bootdemo/inc/lcd.h")
"../lcd.c", line 116: warning #179-D: variable "val" was declared but never referenced
1 error detected in the compilation of "../lcd.c".
This is how the function wait() is defined in lcd.c:
void wait(Uint32 count)
{
int i;
for(i=0;i<count;i++)
asm(" nop");
}
And in the header file, lcd.h, it is declared as such:
void wait(Uint32 count);
Also, I think it is important to note that I did not edit these files after downloading them, I merely linked to them and attempted to use functions from them. I have also done a fresh install of CCSv5.5 and the BSL on a different computer to make sure I didn't accidentally alter a file and I get the same result when linking. Has anyone else had a similar issue or can anyone suggest any solutions or possible reasons for this error?
Much thanks!