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 failure with ccs vs5.5.0



i am using ccs vs 5.5.0 and whenever i try to build my code i am getting this warnings, the code appears to have no error, how can i solve this issue. thanks

 
**** Build of configuration F2802x_RAM for project DPLibTemplate-F2802x ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all 
'Building target: Project_Name.out'
'Invoking: C2000 Linker'
"C:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000" -v28 -ml -mt -g --define="_DEBUG" --define="LARGE_MODEL" --diag_warning=225 -z -m"ProjectName.map" --stack_size=0x380 --warn_sections -i"C:/ti/ccsv5/tools/compiler/c2000_6.2.0/lib" -i"C:/ti/ccsv5/tools/compiler/c2000_6.2.0/include" --reread_libs --xml_link_info="Project_Name_linkInfo.xml" --rom_model -o "Project_Name.out" "./ProjectName-Main.obj" "./ProjectName-DevInit_F2802x.obj" "./ProjectName-DPL-ISR.obj" "./PWM_1ch_Cnf.obj" "./DSP2802x_usDelay.obj" "./DSP2802x_GlobalVariableDefs.obj" "./DSP2802x_CodeStartBranch.obj" "./ADC_SOC_Cnf.obj" "C:/Users/Rita Koki/device_support/f2802x/v129/DSP2802x_headers/cmd/DSP2802x_Headers_nonBIOS.cmd" "../F28027_RAM_ProjectName.CMD" "C:/Users/Rita Koki/libs/math/IQmath/v15c/lib/IQmath.lib" -l"rts2800_ml.lib" 
<Linking>

undefined first referenced 
symbol in file 
--------- ---------------- 
_ePWM ./PWM_1ch_Cnf.obj

error: unresolved symbols remain

error: errors encountered during linking; "Project_Name.out" not built
>> Compilation failure
gmake: *** [Project_Name.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

  • The error message says the symbol _ePWM (written ePWM in C) is used in the source file PWM_1ch_Cnf.c.  But there is no definition for it.  If it is a function, then no function exists with that name.  If it is a variable, then no space is reserved for that variable.  One possible explanation is that you are not including some library in the final link.

    Thanks and regards,

    -George

  • Thanks George, Yeah I had an idea that could be the issue, but I do not know how to include that symbol in the source file, do you know how I can resolve the issue
  • First, determine whether ePWM is a function or a variable.  Then figure out where the definition for that function or variable should come from.  Then add that source file, or library, or whatever, to your project.  It is possible you need to add that function or variable yourself in existing an source file.

    Another unlikely possibility to consider ... The correct function or variable is already present, but spelled differently.  Symbol names have to be spelled exactly the same for the tools to match them up.

    Thanks and regards,

    -George