Hi,
I currently work with OMAP-L138, and I try to compile my project_test which it use 3 functions :
- Void Cache_wbInvAll();
- Void Cache_wbInv(Ptr blockPtr, SizeT byteCnt, Bits16 type, Bool wait);
- Void Cache_inv(Ptr blockPtr, SizeT byteCnt, Bits16 type, Bool wait);
Here is my code :
/* * main.c */ #include <ti/sysbios/family/c64p/Cache.h> int main(void) { int toto = 1024; int *tab = &toto; Cache_invL1pAll(); Cache_wbInv((void *)tab, sizeof (unsigned int), Cache_Type_ALL,TRUE); Cache_inv((void *)tab, sizeof (unsigned int), Cache_Type_ALL,TRUE); return 0; }
For my Compiler include path, I set :
"C:\ti\ccsv5\tools\compiler\c6000_7.4.8\include"
"C:\ti\bios_6_40_01_15\packages"
"C:\ti\bios_6_40_01_15\packages\ti\bios\include"
"C:\ti\xdctools_3_25_03_72\packages"
For my Librairie I using :
"C:\ti\bios_6_40_01_15\packages\ti\sysbios\lib\sysbios\instrumented\sysbios.ae64P"
"libc.a"
Dor my libraire directory :
"${CG_TOOL_ROOT}/lib"
"${CG_TOOL_ROOT}/include"
I using the latest compiler c6000_7.4.8 and I wish have an ELF format at the end of compilation.
But I have this error who provide Cache_wbInv() and Cache_Inv() :
Description Resource Path Location Type
unresolved symbol ti_sysbios_family_c64p_Cache_EMIFA_BASE__C, first referenced in C:\ti\bios_6_40_01_15\packages\ti\sysbios\lib\sysbios\instrumented\sysbios.ae64P<BIOS.obj> test_project C/C++ Problem
unresolved symbol ti_sysbios_family_c64p_Cache_EMIFA_CFG__C, first referenced in C:\ti\bios_6_40_01_15\packages\ti\sysbios\lib\sysbios\instrumented\sysbios.ae64P<BIOS.obj> test_project C/C++ Problem
unresolved symbol ti_sysbios_family_c64p_Cache_EMIFA_LENGTH__C, first referenced in C:\ti\bios_6_40_01_15\packages\ti\sysbios\lib\sysbios\instrumented\sysbios.ae64P<BIOS.obj> test_project C/C++ Problem
unresolved symbol ti_sysbios_family_c64p_Cache_EMIFB_BASE__C, first referenced in C:\ti\bios_6_40_01_15\packages\ti\sysbios\lib\sysbios\instrumented\sysbios.ae64P<BIOS.obj> test_project C/C++ Problem
unresolved symbol ti_sysbios_family_c64p_Cache_EMIFB_CFG__C, first referenced in C:\ti\bios_6_40_01_15\packages\ti\sysbios\lib\sysbios\instrumented\sysbios.ae64P<BIOS.obj> test_project C/C++ Problem
unresolved symbol ti_sysbios_family_c64p_Cache_EMIFB_LENGTH__C, first referenced in C:\ti\bios_6_40_01_15\packages\ti\sysbios\lib\sysbios\instrumented\sysbios.ae64P<BIOS.obj> test_project C/C++ Problem
unresolved symbol ti_sysbios_family_c64p_Cache_EMIFC_BASE__C, first referenced in C:\ti\bios_6_40_01_15\packages\ti\sysbios\lib\sysbios\instrumented\sysbios.ae64P<BIOS.obj> test_project C/C++ Problem
Where is my mistake ?
Regards,
Guillaume