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.

Proper installation of signal generation library in C2000 Launchpad

Other Parts Discussed in Thread: CONTROLSUITE

Hello everyone,

I would like some step by step instructions in order to properelly install signal generation library in my C2000 launchpad code.

It seems that if you only include the sgen.lib in linker file search path as well as the include options of the C2000 Compiler, you still get errors.

Thank you in advance! 

  • Hi,

    What kinds of errors are you getting?

  • I get the following errors and warnings, when I try to compile the SGENT3.C example.

    Description Resource Path Location Type
    #10010 errors encountered during linking; "signal_generation.out" not built signal_generation C/C++ Problem

    Description Resource Path Location Type
    <a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a> unresolved symbols remain signal_generation C/C++ Problem

    Description Resource Path Location Type
    unresolved symbol _InitPieCtrl, first referenced in ./main.obj signal_generation C/C++ Problem

    Description Resource Path Location Type
    unresolved symbol _InitPieVectTable, first referenced in ./main.obj signal_generation C/C++ Problem


    Description Resource Path Location Type
    #10247-D creating output section "ipcb1" without a SECTIONS specification signal_generation C/C++ Problem

    Description Resource Path Location Type
    #10247-D creating output section "ipcb2" without a SECTIONS specification signal_generation C/C++ Problem

    Description Resource Path Location Type
    #10247-D creating output section "ipcb3" without a SECTIONS specification signal_generation C/C++ Problem

    Description Resource Path Location Type
    #10247-D creating output section "SINTBL" without a SECTIONS specification signal_generation C/C++ Problem

    Description Resource Path Location Type
    Build variable 'SGEN_LIB_VER_ROOT' cannot be resolved. signal_generation properties Problems
  • Ioannis Pallis said:
    Description Resource Path Location Type

    unresolved symbol _InitPieCtrl, first referenced in ./main.obj signal_generation C/C++ Problem

    Description Resource Path Location Type
    unresolved symbol _InitPieVectTable, first referenced in ./main.obj signal_generation C/C++ Problem

    PieCtrl.c and PieVect.c need to be included in your project and the path that points to controlSUITE/device_support/<device>/<version>/<device>_common/include and controlSUITE/device_support/<device>/<version>/<device>_headers/include need to be in the --include options under the C2000 Compiler Properties menu

    Ioannis Pallis said:
    Description Resource Path Location Type
    #10247-D creating output section "ipcb1" without a SECTIONS specification signal_generation C/C++ Problem

    Description Resource Path Location Type
    #10247-D creating output section "ipcb2" without a SECTIONS specification signal_generation C/C++ Problem

    Description Resource Path Location Type
    #10247-D creating output section "ipcb3" without a SECTIONS specification signal_generation C/C++ Problem

    Description Resource Path Location Type
    #10247-D creating output section "SINTBL" without a SECTIONS specification signal_generation C/C++ Problem

    These are missing sections that the SGEN library will use. You will find a linker command file under C:\ti\controlSUITE\libs\dsp\SGEN\v101\cmd with the following sections defined:

       SGENipcb			: > RAML61,    PAGE = 1  
       SGENipcbsrc   	        : > RAML62,	   PAGE = 1
       
       ipcb1			: > RAML61,	   PAGE = 1  
       ipcb2   			: >	RAML62,	   PAGE = 1
       ipcb3	 		: >	RAML5,	   PAGE = 1
       ipcb4	 		: >	RAML5,	   PAGE = 1
       ipcb5	 		: >	RAML4,	   PAGE = 1
       ipcb6	 		: >	RAML4,	   PAGE = 1
       
       SINTBL			: > RAML7,     PAGE = 1

    Now you dont have to define all these sections, just the ones that the compiler is complaining about.

    Ioannis Pallis said:
    Description Resource Path Location Type
    Build variable 'SGEN_LIB_VER_ROOT' cannot be resolved. signal_generation properties Problems

    The linked Variable SGEN_LIB_VER_ROOT is undefined. In the project properties go to "Linked Resources", hit New, Add SGEN_LIB_VER_ROOT and then as the path you can hit Browse and find the path to "C:\ti\controlSUITE\libs\dsp\SGEN\v101" and that should pretty much fix it.

  • Coming back again, once more time, with the problems I encounter.

    I have some questions regarding the proper installation of the signal generation library.
    Despite my efforts the problem "unresolved symbol _InitPieCtrl, first referenced in ./main.obj signal_generation C/C++ Problem" remains. I included the proper paths. I also include the GlobalPrototypes.h, but the problem remains. Any suggestions?