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.

output file can not be generated in ccs

Other Parts Discussed in Thread: CONTROLSUITE

hi

i am using Code Composer Studio

 Version: 5.3.0.00083

Problem does not occur when we try to build from control suite but it does not generate .out file when tries to do from new project.

I am posting the error:


**** Build of configuration Debug for project test1 ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building target: test1.out'
'Invoking: C2000 Linker'
"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --diag_warning=225 --display_error_number -z --stack_size=0x300 -m"test1.map" --warn_sections -i"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/lib" -i"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" -i"C:/Users/arun/workspace_v5_3/test1" -i"/DSP2833x_common/lib" -i"/v15c/lib" -i"/V100/lib" --reread_libs --display_error_number --rom_model -o "test1.out"  "./main.obj" "./DSP2833x_usDelay.obj" "./DSP2833x_SysCtrl.obj" "./DSP2833x_PieVect.obj" "./DSP2833x_PieCtrl.obj" "./DSP2833x_DefaultIsr.obj" "./DSP2833x_CpuTimers.obj" "./DSP2833x_CodeStartBranch.obj" "./DSP2833x_ADC_cal.obj" -l"rts2800_fpu32.lib" -l"IQmath_fpu32.lib" -l"rts2800_fpu32_fast_supplement.lib" "../28335_RAM_lnk.cmd" "../DSP2833x_Headers_nonBIOS.cmd"
<Linking>
error #10008-D: cannot find file "IQmath_fpu32.lib"
error #10008-D: cannot find file "rts2800_fpu32_fast_supplement.lib"


>> Compilation failure
 undefined      first referenced        
  symbol            in file             
 ---------      ----------------        
 _CpuTimer0Regs ./main.obj              
 _CpuTimer1Regs ./DSP2833x_CpuTimers.obj
 _CpuTimer2Regs ./DSP2833x_CpuTimers.obj
 _CsmPwl        ./DSP2833x_SysCtrl.obj  
 _CsmRegs       ./DSP2833x_SysCtrl.obj  
 _EPwm1Regs     ./main.obj              
 _FlashRegs     ./DSP2833x_SysCtrl.obj  
 _GpioCtrlRegs  ./main.obj              
 _GpioDataRegs  ./main.obj              
 _PieCtrlRegs   ./main.obj              
 _PieVectTable  ./main.obj              
 _SysCtrlRegs   ./main.obj              
 _XintfRegs     ./DSP2833x_SysCtrl.obj  

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "test1.out" not built
gmake: *** [test1.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

  • This is the screen shot of the project explorer.The code  is about  pwm generation of 1khz and it is done with f28335 and peripheral explorer kit.

  • Hi arun,

    your build failed, hence you have no .out file.

    arun n r said:

    <Linking>
    error #10008-D: cannot find file "IQmath_fpu32.lib"
    error #10008-D: cannot find file "rts2800_fpu32_fast_supplement.lib"

    The linker doesn't find the above librarys and can't resolve all symbols. You have to adapt the linker library search path.

    Best regards,
    Christian

  • Thank you christian for your reply.I did as you said but error still persists and i have included a screenshot of paths included in the linker.


    **** Build of configuration Debug for project test1 ****

    "C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
    'Building target: test1.out'
    'Invoking: C2000 Linker'
    "C:/ti/ccsv5/tools/compiler/c2000_6.1.0/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -g --diag_warning=225 --display_error_number -z --stack_size=0x300 -m"test1.map" --warn_sections -i"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/lib" -i"C:/ti/controlSUITE/libs/math/IQmath" -i"C:/ti/controlSUITE/libs/math/IQmath/v160/lib" -i"C:/ti/controlSUITE/libs/math/FPUfastRTS/V100/lib" -i"C:/ti/ccsv5/tools/compiler/c2000_6.1.0/include" -i"C:/Users/arun/workspace_v5_3/test1" -i"/DSP2833x_common/lib" -i"/v15c/lib" -i"/V100/lib" --reread_libs --display_error_number --rom_model -o "test1.out"  "./main.obj" "./DSP2833x_usDelay.obj" "./DSP2833x_SysCtrl.obj" "./DSP2833x_PieVect.obj" "./DSP2833x_PieCtrl.obj" "./DSP2833x_DefaultIsr.obj" "./DSP2833x_CpuTimers.obj" "./DSP2833x_CodeStartBranch.obj" "./DSP2833x_ADC_cal.obj" -l"rts2800_fpu32.lib" -l"IQmath_fpu32.lib" -l"rts2800_fpu32_fast_supplement.lib" "../28335_RAM_lnk.cmd" "../DSP2833x_Headers_nonBIOS.cmd"
    <Linking>

     undefined      first referenced        
      symbol            in file             
     ---------      ----------------        
     _CpuTimer0Regs ./main.obj              
     _CpuTimer1Regs ./DSP2833x_CpuTimers.obj
     _CpuTimer2Regs ./DSP2833x_CpuTimers.obj

    >> Compilation failure
     _CsmPwl        ./DSP2833x_SysCtrl.obj  
     _CsmRegs       ./DSP2833x_SysCtrl.obj  
     _EPwm1Regs     ./main.obj              
     _FlashRegs     ./DSP2833x_SysCtrl.obj  
     _GpioCtrlRegs  ./main.obj              
     _GpioDataRegs  ./main.obj              
     _PieCtrlRegs   ./main.obj              
     _PieVectTable  ./main.obj              
     _SysCtrlRegs   ./main.obj              
     _XintfRegs     ./DSP2833x_SysCtrl.obj  

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "test1.out" not built
    gmake: *** [test1.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

  • arun n r said:

     undefined      first referenced        
      symbol            in file             
     ---------      ----------------        
     _CpuTimer0Regs ./main.obj              
     _CpuTimer1Regs ./DSP2833x_CpuTimers.obj
     _CpuTimer2Regs ./DSP2833x_CpuTimers.obj
     _CsmPwl        ./DSP2833x_SysCtrl.obj  
     _CsmRegs       ./DSP2833x_SysCtrl.obj  
     _EPwm1Regs     ./main.obj              
     _FlashRegs     ./DSP2833x_SysCtrl.obj  
     _GpioCtrlRegs  ./main.obj              
     _GpioDataRegs  ./main.obj              
     _PieCtrlRegs   ./main.obj              
     _PieVectTable  ./main.obj              
     _SysCtrlRegs   ./main.obj              
     _XintfRegs     ./DSP2833x_SysCtrl.obj  

    error #10234-D: unresolved symbols remain

    As there are still unresolved symbols, it seems you're indeed using the header files of some libraries, but you still don't include those libraries into your build.
    Just including the library header files only tells the compiler that there are function/symbols somewhere, but it does not provide these functions/symbols to the linker. First you have to identify the libraries for those unresolved symbols, than you either need to add the appropriate precompiled library files to the linker settings, or you have to add the source code of the libraries to your project.

  • arun n r said:

    i am using Code Composer Studio

     Version: 5.3.0.00083

    Problem does not occur when we try to build from control suite but it does not generate .out file when tries to do from new project.

    Additionaly have a look at this wiki which goes through how to include what and where in the Code Composer Studio settings:

    http://processors.wiki.ti.com/index.php/Include_paths_and_options

  • Arun,

    Double-check that you have all the source files that were in the original example project. I believe you are missing DSP2833x_GlobalVariableDefs.c. Make sure to add that source file to your project. Also as Christian mentioned earlier, double-check that all the libraries (and their paths) are correctly set up in your test project similar to what is in the example. It looks like you already have the necessary libraries though, so I think adding the DSP2833x_GlobalVariableDefs.c should do it.

  • Hi

    Thank you Christian and Aarti for your suggestions,i got it right.It was due to unnecessary linking of file paths.

  • hi arun,

    I have the same problem with generate .out file.

    I' am  working with the same device f28335, and  i want to generate PWM too.

    Can i have your project Example_2833_xCpuTimer, please ?

    i can give you my email if you want.

    cheers Fabio.