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.

TCP3e examples not compiling

Hi

 

I'm trying to compile the TCP3e examples that are part of "pdk_C6670_1_0_0_9_beta2" that came with the "mcsdk_2_00_00_beta2". 

These are the errors I get (EDMA3 package not found):

====================================================================================

**** Build of configuration Debug for project TCP3E_exampleProject ****

C:\TI\ccsv5\utils\gmake\gmake -k all 

'Building file: C:/TI/pdk_C6670_1_0_0_9_beta2/packages/ti/drv/tcp3e/example/tcp3e_example_config/tcp3e_drv_example.cfg'

'Invoking: XDCtools'

"C:/TI/xdctools_3_20_08_88/xs" --xdcpath="C:/TI/ipc_1_22_05_27/packages;C:/TI/bios_6_31_04_27/packages;C:/TI/pdk_C6670_1_0_0_9_beta2/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6670 -r debug -c "C:/TI/ccsv5/tools/compiler/c6000" "C:/TI/pdk_C6670_1_0_0_9_beta2/packages/ti/drv/tcp3e/example/tcp3e_example_config/tcp3e_drv_example.cfg"

making package.mak (because of package.bld) ...

generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...

configuring tcp3e_drv_example.xe66 from package/cfg/tcp3e_drv_example_xe66.cfg ...

js: "C:/TI/pdk_C6670_1_0_0_9_beta2/packages/ti/drv/tcp3e/example/tcp3e_example_config/tcp3e_drv_example.cfg", line 83: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.drv.edma3.drv' along the path: 'C:/TI/ipc_1_22_05_27/packages;C:/TI/bios_6_31_04_27/packages;C:/TI/pdk_C6670_1_0_0_9_beta2/packages;C:/TI/xdctools_3_20_08_88/packages;..;'. Ensure that the package path is set correctly.

    "./package/cfg/tcp3e_drv_example_xe66.cfg", line 763

    "./package/cfg/tcp3e_drv_example_xe66.cfg", line 818

    "./package/cfg/tcp3e_drv_example_xe66.cfg", line 750

====================================================================================

 

I then tried to add the EDMA3 driver to the RTSC->"Products and Repositories" properties of the project (it wasn't checked), and got the same error of EDMA3 package not found:

 

====================================================================================

 

**** Build of configuration Debug for project TCP3E_exampleProject ****

 

C:\TI\ccsv5\utils\gmake\gmake -k all 

'Building file: C:/TI/pdk_C6670_1_0_0_9_beta2/packages/ti/drv/tcp3e/example/tcp3e_example_config/tcp3e_drv_example.cfg'

'Invoking: XDCtools'

"C:/TI/xdctools_3_20_08_88/xs" --xdcpath="C:/TI/ipc_1_22_05_27/packages;C:/TI/bios_6_31_04_27/packages;C:/TI/pdk_C6670_1_0_0_9_beta2/packages;C:/TI/edma3_lld_02_11_02_04/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6670 -r debug -c "C:/TI/ccsv5/tools/compiler/c6000" "C:/TI/pdk_C6670_1_0_0_9_beta2/packages/ti/drv/tcp3e/example/tcp3e_example_config/tcp3e_drv_example.cfg"

making package.mak (because of package.bld) ...

generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...

configuring tcp3e_drv_example.xe66 from package/cfg/tcp3e_drv_example_xe66.cfg ...

js: "C:/TI/pdk_C6670_1_0_0_9_beta2/packages/ti/drv/tcp3e/example/tcp3e_example_config/tcp3e_drv_example.cfg", line 83: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.drv.edma3.drv' along the path: 'C:/TI/ipc_1_22_05_27/packages;C:/TI/bios_6_31_04_27/packages;C:/TI/pdk_C6670_1_0_0_9_beta2/packages;C:/TI/edma3_lld_02_11_02_04/packages;C:/TI/xdctools_3_20_08_88/packages;..;'. Ensure that the package path is set correctly.

    "./package/cfg/tcp3e_drv_example_xe66.cfg", line 763

    "./package/cfg/tcp3e_drv_example_xe66.cfg", line 818

    "./package/cfg/tcp3e_drv_example_xe66.cfg", line 750

====================================================================================

 

 

How can I resolve this?

Thanks

Ran

 

  • Ran,

    Sorry to know that you hit this issue.

    We came to know about this issue recently and would be fixing this problem in the next MCSDK release. The problem is TCP3e (and TCP3d) packages do not refer to the edma3 package outside the PDK.

    Since the references are wrong, the example projects are not compiling.

    -Thanks,

    Aravind

  • Hi Aravind,

     

    Thanks for the quick response.

     

    I do need to get these up and running urgently, so I would really appreciate if you can advise of a  workaround that will allow me to run these examples.

     

    What I noticed is that the reference is to 'ti.drv.edma3.drv', while I could only find the path ti/sdo/edma3/drv under in the EDMA3 LLD directory under packages/, . 

    Btw, changing 'ti.drv.edma3.drv' to 'ti.sdo.edma3.drv' didn't work.

     

    Thanks,

    Ran

     

  • Hi,

    Can you please try to help me with a temporary workaround to the problem, something that will allow us to execute the examples and the driver, without waiting for a next release?

    Btw, when is the next release of the MCSDK due ?

     

    Thanks

    Ran

     

  • Ran,

    Sorry for the delayed response.

    I'm contacting the internal team members to see if there is any workaround or need to wait for the next release.

    The next release of MCSDK is due in July.

    -Thanks,

    Aravind

  • Ran:

    As Aravind mentioned we are aware of this problem. 

    To rebuild the example projects that came with TCP3d, you need to have a rebuilt tcp3d library with the "drv" to "sdo" change as well as the project includes the library file.

    So as a first step you need to have the library built (using xdc), and then rebuild the TCP3d library project as well.

    All these will be fixed in the next MCSDK release due in July. 

    Would you prefer to wait until such time or not, you have to let us know.

     

    Thanks,

    Prabhu

  • Hi Prabhu,

     

    Unfortunately we can't afford the wait as we need to get the TCP3e and TCP3d up and running urgently..

     

    Can you please provide me more details on what  to compile and how?

     

    Thanks

    Ran

     

  •  

    Ran:

    Please find the attached zip file containing all the changes inside tcp3d and tcp3e that we have to make so that all references to "ti.drv" are changed to "ti.sdo".

    Follow the instructions as below:

    1. Unzip the c6670_drv.zip using Winzip to c:\program files\texas instruments\pdk_C6670_1_0_0_9_beta2\packages\ti (or the path where you have pdk_c6670 installed). Enable the overwrite option in winzip. This will overwrite a few files inside drv/tcp3d and tcp3e.

    2. Change directory to: c:\program files\texas instruments\pdk_C6670_1_0_0_9_beta2\packages\ti\drv. Type pdksetupenv.bat and hit enter. This will configure all the environment variables needed to build the tcp3d, tcp3e libraries.

    3. Clean and rebuild library inside tcp3d/lib(lib directory should contain some prebuild libraries, we are going to remove this and rebuild it):

    a. cd tcp3d 

    b. xdc clean -PR .(lib directory should be empty after this step)

    c. xdc -PR . (this should compile all src files and rebuild library inside lib directory)

    d. cd ..

     

    4. Follow same steps as above to clean and rebuild tcp3e

    5. To rebuild all the example projects for tcp3d and tcp3e, please use the pdkProjectCreate_tcp.txt that I have attached. This is a modified version of the "c:\program files\texas instruments\pdk_C6670_1_0_0_9_beta2\packages\ti\drv\pdkProjectCreate.bat" so it rebuilds only the tcp3d and tcp3e projects.

    Save the pdkProjectCreate_tcp.txt to c:\program files\texas instruments\pdk_C6670_1_0_0_9_beta2\packages\ti\drv\pdkProjectCreate_tcp.bat. Now type pdkProjectCreate_tcp.bat. This should create the tcp3d and tcp3e example projects under C:\MyPDKWorkspaceC6670 directory. 

    6. You have to manually copy these example and test projects (in C:\MyPDKWorkspaceC6670) to the relevant "example" and "test" directory.

     

    tcp3e_exampleProject needs to be copied to ti/drv/tcp3e/example directory.

    tcp3dExampleProject needs to be copied to ti/drv/tcp3d/example directory.

    tcp3dTestProject needs to be copied to ti/drv/tcp3d/test directory.

    tcp3e_dblMgzTestProject needs to be copied to ti/drv/tcp3e/test directory.

    This must resolve the issue you are facing.
    Let know if it worked.
    Thanks,
    Prabhu
    @REM ******************************************************************************
    @REM * FILE PURPOSE: PDK Unit Test and Example Project Creator
    @REM ******************************************************************************
    @REM * FILE NAME: pdkProjectCreate.bat
    @REM *
    @REM * DESCRIPTION: 
    @REM *  The script file is used to create the test and example projects of all
    @REM *  components under PDK. These projects are available in the specified 
    @REM *  workspace.
    @REM *
    @REM * USAGE:
    @REM *  pdkProjectCreate.bat "C:\Program Files\Texas Instruments\pdk_C6670_1_0_0_9_beta2\packages"
    @REM *      --- OR ---
    @REM *  pdkProjectCreate.bat
    @REM *
    @REM *
    @REM * Copyright (C) 2010, Texas Instruments, Inc.
    @REM *****************************************************************************
    
    @echo OFF
    
    REM Parameter Validation: Check if the argument was passed to the batch file and
    REM if so we use that else we default to the working directory where the batch 
    REM file was invoked from. We convert the PDK Install path to short names because
    REM otherwise the batch file commands do not work 
    set tempVar=%1
    IF NOT DEFINED tempVar GOTO noparameter
    set PDK_SHORT_NAME=%~fs1
    goto done
    :noparameter
    set PDK_SHORT_NAME=%~sdp0
    :done
    
    REM *****************************************************************************
    REM * Version Information of the various tools etc required to build the test
    REM * projects. Customers are free to modify these to meet their requirements.
    REM *****************************************************************************
    
    REM This is to control the CCS version specific project create command
    REM Set to 'no' when using CCSv5 or set to 'yes' when using CCSv4
    set IS_CCS_VERSION_4=no
    
    REM Set to 'no' when using QT, EVM, VDB, or other hardware. Set to 'yes' only when using the simulator.
    set IS_SIMULATOR_SUPPORT_NEEDED=no
    
    REM Install Location for CCS
    set CCS_INSTALL_PATH="C:\Program Files\Texas Instruments\ccsv5"
    
    REM Workspace where the PDK projects will be created.
    set MY_WORKSPACE="C:\MyPDKWorkspaceC6670"
    
    REM This is Endianess of the Projects being created.
    REM Valid Values are 'little' and 'big'
    set ENDIAN=little
    
    REM This is the format of the executable being created
    REM Valid Values are 'ELF' and 'COFF'
    set OUTPUT_FORMAT=ELF
    
    REM Version of CG-Tools
    set CGT_VERSION=7.2.0
    
    REM Version of XDC
    set XDC_VERSION=3.20.08.88
    
    REM Version of BIOS
    set BIOS_VERSION=6.31.04.27
    
    REM Version of the IPC
    set IPC_VERSION=1.22.03.23
    
    REM Version of the PDK
    set PDK_VERSION=1.0.0.9
    
    REM Version of the EDMA
    set EDMA_VERSION=02.11.00
    
    REM PDK Part Number
    set PDK_PARTNO=C6670
    
    REM RTSC Platform Name
    set RTSC_PLATFORM_NAME=ti.platforms.evm6670
    
    REM RTSC Target 
    REM - Please ensure that you select this taking into account the
    REM   OUTPUT_FORMAT and the RTSC_PLATFORM_NAME 
    REM RTSC_TARGET=ti.targets.elf.C66_big_endian
    set RTSC_TARGET=ti.targets.elf.C66
    
    REM *****************************************************************************
    REM *****************************************************************************
    REM                 Please do NOT change anything below this
    REM *****************************************************************************
    REM *****************************************************************************
    
    REM Set auto create command by default for use with CCSv5
    set AUTO_CREATE_COMMAND=eclipse\eclipsec -noSplash
    
    REM If is CCS version 4 then set auto create command for use with CCSv4
    If .%IS_CCS_VERSION_4% == .yes set AUTO_CREATE_COMMAND=eclipse\jre\bin\java -jar %CCS_INSTALL_PATH%\eclipse\startup.jar
    
    REM Set project for Silicon or QT by default
    set SIMULATOR_SUPPORT_DEFINE=
    
    REM If simulator support is needed then set the define
    If .%IS_SIMULATOR_SUPPORT_NEEDED% == .yes set SIMULATOR_SUPPORT_DEFINE=-ccs.setCompilerOptions "--define SIMULATOR_SUPPORT"
    
    REM Goto the PDK Installation Path.
    pushd %PDK_SHORT_NAME%
    
    echo *****************************************************************************
    echo Detecting UnitTest Projects in PDK and importing them in the workspace %MY_WORKSPACE%
    
    REM Search for all the test Project Files in the PDK.
    for /F %%I IN ('dir /b /s tcp*testproject.txt') do (
    echo Detected Test Project: %%~nI
    
    REM Goto each directory where the test project file is located and create the projects.
    pushd %%~dI%%~pI
    
    REM Execute the command to create the project using the parameters specified above.
    %CCS_INSTALL_PATH%\%AUTO_CREATE_COMMAND% -data %MY_WORKSPACE% -application com.ti.ccstudio.apps.projectCreate -ccs.name %%~nI -ccs.outputFormat %OUTPUT_FORMAT% -ccs.device com.ti.ccstudio.deviceModel.C6000.GenericC64xPlusDevice -ccs.endianness %ENDIAN% -ccs.kind executable -ccs.cgtVersion %CGT_VERSION% -rtsc.xdcVersion %XDC_VERSION% -rtsc.enableDspBios -rtsc.biosVersion %BIOS_VERSION% -rtsc.buildProfile "debug" -rtsc.products "com.ti.rtsc.IPC:%IPC_VERSION%;com.ti.rtsc.SYSBIOS:%BIOS_VERSION%;com.ti.biosmcsdk.pdk.%PDK_PARTNO%:%PDK_VERSION%;com.ti.sdo.edma3:%EDMA_VERSION%" -rtsc.platform "%RTSC_PLATFORM_NAME%" -rtsc.target %RTSC_TARGET% -ccs.rts libc.a -ccs.args %%~nI%%~xI %SIMULATOR_SUPPORT_DEFINE%
    
    popd
    )
    
    echo *****************************************************************************
    echo Detecting Example Projects in PDK and importing them in the workspace %MY_WORKSPACE%
    
    REM Search for all the Example Project Files in the PDK.
    for /F %%I IN ('dir /b /s tcp*exampleproject.txt') do (
    echo Detected Example Project: %%~nI
    
    REM Goto each directory where the example project file is located and create the projects.
    pushd %%~dI%%~pI
    
    REM Execute the command to create the project using the parameters specified above.
    %CCS_INSTALL_PATH%\%AUTO_CREATE_COMMAND% -data %MY_WORKSPACE% -application com.ti.ccstudio.apps.projectCreate -ccs.name %%~nI -ccs.outputFormat %OUTPUT_FORMAT% -ccs.device com.ti.ccstudio.deviceModel.C6000.GenericC64xPlusDevice -ccs.endianness %ENDIAN% -ccs.kind executable -ccs.cgtVersion %CGT_VERSION% -rtsc.xdcVersion %XDC_VERSION% -rtsc.enableDspBios -rtsc.biosVersion %BIOS_VERSION% -rtsc.buildProfile "debug" -rtsc.products "com.ti.rtsc.IPC:%IPC_VERSION%;com.ti.rtsc.SYSBIOS:%BIOS_VERSION%;com.ti.biosmcsdk.pdk.%PDK_PARTNO%:%PDK_VERSION%;com.ti.sdo.edma3:%EDMA_VERSION%" -rtsc.platform "%RTSC_PLATFORM_NAME%" -rtsc.target %RTSC_TARGET% -ccs.rts libc.a -ccs.args %%~nI%%~xI %SIMULATOR_SUPPORT_DEFINE%
    
    popd
    )
    
    popd
    
    

     

  • Hi Prabhu,

     

    Thanks. The process completed fine, and the examples compile now.

    I will proceed to run and examine them.

     

    Thanks again

    Ran