Hi there,
I am running into some issues using a few libraries for some TI parts in my project. I am using the afe031 for a PLC project, and I am using the hal_afe.lib library provided by TI.
Basically one of the source files in hal_afe.lib (hal_afe_hrpwm.c) has an undefined symbol SFO. The linking error is below:
error: cannot find file "C:/Texas
Instruments/PRIME_DDK_PackageV8010/SW/TI_PRIME_DDK_Example/dsp_c28x/prime/pr
oj/prime/prime_iec432_f2806x/../../../../lib/Release/hal_afe.lib"
undefined first referenced
symbol in file
--------- ----------------
_SFO ../hal_afe.lib<hal_afe_hrpwm.obj>
error #10234-D: unresolved symbols remain
<Linking>
error #10010: errors encountered during linking; "C:/Texas
Instruments/PRIME_DDK_PackageV8010/SW/TI_PRIME_DDK_Example/dsp_c28x/prime/pr
>> Compilation failure
oj/prime/prime_iec432_f2806x/../../../../prime/proj/prime/Release_F2806x/pri
me_iec432_f2806x.out" not built
In the Build Settings I have specified the path and correct location in which the file hal_afe.lib can be found, and SFO is even defined in the included header (which is specified in my include paths as well) SFO_v6.h. Below is an excerpt from that header file:
int SFO(void); // SFO V6 Calibration Function
//============================================================================
// Useful Defines when Using SFO Functions
//============================================================================
#define SFO_INCOMPLETE 0
#define SFO_COMPLETE 1
#define SFO_ERROR 2
So, I am not sure why I am getting an undefined symbol linker error when the symbol is clearly defined in my project.
Any help is greatly appreciated! Thanks all :)
Warren