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.

dsplink CCSv4.0 build error "tskMessage is undefined error"

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

I am porting over the message sample from the OMAP-LI138_dsp_1_00_00_11 installer  from the ti webpage - click here. in path  "OMAP-L138_dsp_1_00_00_11\dsplink_linux_1_65_00_02\dsplink\dsp\src\samples\message  into CODE COMPOSER STUDIO 4.0.  I have included all the neccessary libraries , but when I compile I am getting an unexpected error that says, " identifier "tskMessage" is undefined" from main.c .

This seems like a simple problem  to fix by assign tskMessage a value, but I shouldn't have to do this. I shouldn't have to change anything. Am I missing anything? 

I complied the message sample on my linux workstation and I executed it on the OMAPl138 processor (eXperimenter kit) and it worked perfectly without any errors,  that's why I dont think I need to change anything. 

 

 

 

  • Peter,

    Can you see if http://e2e.ti.com/support/embedded/f/355/p/56719/202957.aspx#202957 helps?

    It looks like the CCS project does not have all the build defines needed for compilation to succeed.

    Deepali

  • Hey Deepali,  I have already fixed the error but thanks for the reply.   I used the same website that you mentioned. (click here) . Here is what I did in case anyone else  come

    across the same problem.   Ultimately, I think the main problem was that CCS4.0 was not able to see my *.lib library. But here is what I did.

    0.)  Made sure dsplink was downloaded properly -  to download OMAP_L138_setupwin32_1_00_00_11.exe  go to

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/omap_l138/1_00/latest/index_FDS.html . You will need to enter your password and username

    1.) Went  to the website  http://processors.wiki.ti.com/index.php/Building_DSPLink_Applications#Method_3:_Building_a_DSPLink_application_using_a_CCS_project_file

    2.) On this webpage there is a file named DSPLinkSampleBuild.zip. I downloaded it and unzipped it.  

    3.) On Code Composer Studio 4.0 (CCS 4.0). I imported the DSPLinkSampleBuild.pjt into CCS 4.0 as Legacy CCS3.3 Project - i.e (Project >Import Legacy CCSv3.3 project)

    4.) My intent was to replicate exactly what was done in the DSPLinkSampleBuild, except that I will be using the loop example in ${DSPLink directory}/dsp/src/sample/loop

    5.) I created my on new Project - (File>New>CCS Project) , and named it "PROJECTS".

             5.1. In this project  I ensured that all my predefined variable was included in quotation marks. Previously I was doing this without the quotation marks. 

                      So basically, I right clicked on my project - "PROJECTS". Clicked on  "BUILD PROPERTIES". When you download CCS4.0 it also downloads the C600

                     Compiler and when you create a new CCS 4.0 project it already loads it in build property. Under C600 Compiler, I clicked on "Predefined Symbols", and I

                     inserted on the predefined symbol, based on the values in TI_DSPLINK_DSP0_DEFINES and TI_DSPLINK_DSP_COMMON_DEFINES in  CURRENTCFG.

                     To get CURRENTCFG go to ${DSPLink_directory}\config\BUILD.  If CURRENTCFG is not found, you might need to rebuild your dsplink files - click here to 

                      learn how to build dsplink.   .   

                     So basically, insert this -

           

     

    I hope this helps for anyone that comes across the same errors.

    Thanks again Deepali

             

    "PROCID=0";" DA8XXGEM";"DA8XXGEM_INTERFACE=SHMEM_INTERFACE";"PHYINTERFACE=SHMEM_INTERFACE";"DSP_TSK_MODE";

     

    "MAX_DSPS=1";"MAX_PROCESSORS=2";"ID_GPP=1";"OMAPL138";"PROC_COMPONENT";"POOL_COMPONENT";"NOTIFY_COMPONENT";"MPCS_COMPONENT"; "RINGIO_COMPONENT";"MPLIST_COMPONENT";"MSGQ_COMPONENT";"MSGQ_ZCPY_LINK";"CHNL_COMPONENT";"CHNL_ZCPY_LINK ZCPY_LINK"

    The semi colon specifies a new line .  Make sure you clike on "Apply" when you insert all of this

                    5.2  After this I clicked on the "Include Options" under the C600 Compiler tab on the left.  Then I inserted all the include files based on all the paths specified in

                         the   TI_DSPLINK_DSP0_INC_PATH variable in CURRENTCFG file (${DSPLINK Directory)\config\BUILD)

                   5.3  Then I clicked on "File Search Path" under C600 Linker, and include the following search path  under , 'Add <dir> to library search path( --search_path, -i)

                               ${BIOS dir}\packages\ti\bios\lib

                               ${BIOS dir}\packages\ti\rtdx\lib\c6000

                               ${BIOS dir|\packages\ti\psl\lib

                              ${ccsv4 dir }\tools\compiler\c600\lib

                              ${ccsv4 dir}\tools\compiler\c600

                              ${CG_TOOL_ROOT}/include

     Make sure you click on "APPLY" , then build the project .  

    Ultimately, I think my project could not find the following libraries(which believe might have cause the problem - dsplink.lib, dsplinkdata.lib, dsplinkmpcs.lib,dsplinkmplist.lib,dsplinkmsg.lib, dsplinknotify.lib,dsplinkpool.lib, dsplinkringio.lib. This libraries can be found in ${DSPLINK dir}\dsp\BUILD\OMAPL138GEM_0\EXPORT\RELEASE

     

  • Peter,

    I appreciate the details. This will be very useful to other customers as well.

    Deepali

  • Hi I am compiling DSPlink message sampel with CSS4 , i have able to compile all wihout erorr but in consol i get this error and not .out file

     

     

    error: option --define is missing its parameter 'NAME[=value]'
    gmake: *** [tskMessage.obj] Error 1
    gmake: Target `all' not remade because of errors.