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.

CCS/K2GICE: Example project for pcie

Part Number: K2GICE

Tool/software: Code Composer Studio

Hi

Im starting development process on k2g ice board and first step i need to acheve is establish connections thought pcie. Is there examples suitable for this case available.

Best regards

Tommi Mehtonen

  • Hi,

    Yes, there are PCIE examples in Processor SDK RTOS.
    You have to download processor SDK RTOS & the recommended CCS version and install them both in the same folder ~/ti. After you install both, open CCS and let it install the RTOS sdk packages. Then run the following commands:
     cd ti/pdk_k2g_<version>/packages/

     source pdksetupenv.sh

     ./pdkProjectCreate.sh K2G all little pcie all dsp  --> to create the dsp example projects

     ./pdkProjectCreate.sh K2G all little pcie all arm --> to create the arm example projects

    Best Regards,

    Yordan

  • Hi

    Im getting following output:

    C:\ti\pdk_k2g_1_0_14\packages>pdksetupenv.bat
    ***************************************************
    Environment Configuration:
    ***************************************************
        SDK_INSTALL_PATH        : C:/ti
        GMAKE_INSTALL_PATH      : C:/ti/xdctools_3_51_01_18_core
        RULES_MAKE              : C:/ti/pdk_k2g_1_0_14/packages/Rules.make
    ***************************************************
    
    C:\ti\pdk_k2g_1_0_14\packages>pdkProjectCreate.bat K2G all little pcie all arm
    =========================================================================
    Configuration:
       SOC             :   K2G
       BOARD           :   all
       ENDIAN          :   little
       MODULE          :   pcie
       PROJECT_TYPE    :   all
       PROCESSOR       :   arm
       PDK_SHORT_NAME  :   C:\ti\PDK_K2~1\packages\
    =========================================================================
    Checking Configuration...
    Complete
    =========================================================================
       PDK_PARTNO         : 66AK2G02
       PDK_ECLIPSE_ID     : com.ti.pdk.k2g
       RTSC_PLATFORM_NAME : ti.platforms.evmTCI66AK2G02
       RTSC_TARGET        : gnu.targets.arm.A15F
       CCS_DEVICE         : "Cortex A.66AK2G02"
    *****************************************************************************
    Detecting all projects in PDK and importing them in the workspace C:\ti\PDK_K2~1
    \packages\\MyExampleProjects
    Detected Test Project: PCIE_evmK2G_wSoCFile_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
            0 file(s) copied.
    Detected Test Project: PCIE_evmK2G_wSoCLib_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
            0 file(s) copied.
    Detected Test Project: PCIE_iceK2G_wSoCLib_armExampleProject
    The system cannot find the path specified.
    Copying macro.ini
    The system cannot find the path specified.
            0 file(s) copied.
    No projects detected
    Project generation complete
    *****************************************************************************
    
    Seems like im missing some of the needed files. My k2g ice also has the newer 66AK2G12 prosessor. Could this affect situation. What i could do to fix this.

    -Tommi

  • Did you open the CCS to let it install the pdk sources?

    Are you using the correct CCS version? Open pdkProjectCreate.sh and check:

    # Tools root directory
    if [ -z $CCS_INSTALL_PATH ]; then
        export CCS_INSTALL_PATH=~/ti/<CCS_VERSION>

    Make sure CCS version matches the CCS version you have installed on your host PC.

    Best Regards,
    Yordan

  • Hi

    I deleted everything and installe ccs 9.0.1 instead of 9.1.0 as it was listed at the prosessor page. After reinstalling everything script did find the projets.

    Problem solved, thank you.