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.

RTOS/66AK2H12: Building PCIe Example From SDK/PDK

Part Number: 66AK2H12
Other Parts Discussed in Thread: SYSBIOS,

Tool/software: TI-RTOS

Hi all,

I am having trouble building the PCIe example for the K2H evaluation module. I am following the guide here: http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_overview.html#building-the-sdk 

The steps I have taken are as follows: 

  1. From the command line I navigate to the PDK directory, and then packages.
  2. Run C:\ti\pdk_k2hk_4_0_12\packages> gmake clean
  3. Run C:\ti\pdk_k2hk_4_0_12\packages> pdksetupenv.bat 
  4. Run C:\ti\pdk_k2hk_4_0_12\packages> gmake pcie LIMIT_BOARDS="evmK2H" LIMIT_SOCS="k2h" LIMIT_CORES="dsp_0"
  5. Run C:\ti\pdk_k2hk_4_0_12\packages> pdkProjectCreate.bat K2H all little pcie example dsp
  6. Then I follow the guide from the link at the top of this post to bring the project into Code Composer Studio and then build it:
  7. And then ultimately, I build the project, as described in Step 2. And.....I get an error.
  8. I feel as though I've followed the steps in the guide word-for-word. So could anyone please explain what I'm doing wrong, and what I can do in order to get the PCIe example to build for the DSP Core 0?    Thank you,Andre

  • Hi,

    Your error indicated that there is no ti.csl.ae66 under ti\csl\lib\k2h\c66\release, can you double check your computer folder if you have this file or not? I saw you did a "gmake clean", it is most likely you deleted all the pre-build libraries without rebuild it.

    software-dl.ti.com/.../index_overview.html

    All PDK components can be cleaned and rebuilt with the following commands:
    C:\ti\pdk_[soc]_[version]\packages>gmake clean
    C:\ti\pdk_[soc]_[version]\packages>gmake all

    NOTE: there is NO need to clean and rebuild the libraries, unless you changed the driver code or you want to try.

    You need to recover all those deleted library files:
    1) just re-install the package, or
    2) gmake all

    Then you should be able to link your PCIE application to the library and test.

    Regards, Eric
  • Hi Eric,

    Thanks for the quick reply. I didn't realize that all the libraries were built already, so it was clearly a mistake to re-build all the packages.

    I tried to gmake all, and I left it running all weekend, but by the time I came back after three days the build still hadn't finished. No idea why, but clearly that wasn't going to work.

    So I re-downloaded the pdk installer, and installed it. The install appeared to work properly without an issue, and I did the pdksetupenv.bat and then the pdkProjectCreate.bat as follows:

    As you can see, the project creation fails because of a lack of SYSBIOS being installed. I thought the installation may not have gone correctly so I deleted all the installed directories, and re-installed. Ran the commands in the image above again, but still the same error.

    I checked my C:\ti directory and see the bios library there. 

    I tried setting the BIOS install path manually after that:

    set BIOS_INSTALL_PATH=C:\ti\bios_6_75_02_00

    Then I re-ran the pdksetupenv.bat script. But still the same error.

    Any idea what I'm doing wrong here? 

    Thanks!

    Andre

  • Hi,

    See

    1.4.5.1.4. PDK Example and Test Project Creation

    The PDK contains Windows and Linux scripts used to create example and test CCS projects for all PDK sub-components. The following steps detail how the scripts are used to create CCS project content.

    Ensure all dependent/prerequisite products are installed and registered with CCS before proceeding with the examples and/or unit test. Starting CCS after installing the Processor SDK products will cause CCS to find and register any new products. Errors will occur during PDK project creation if any dependent products have not been registered with CCS.

    Did you do this?

    Regards, Eric

  • Eric,

    I did not do this step. Once I close and re-open Code Composer Studio, and then re-run the pdkProjectCreate.bat script as before, that error about SYSBIOS disappears. However, now there is an error about no XDCtools being installed. I checked the install directory and there is the correct version of XDCTools installed there at the default location: C:\ti\xdctools_3_51_01_18_core

    C:\ti\pdk_k2hk_4_0_13\packages>pdkProjectCreate.bat K2H all little pcie example arm
    =========================================================================
    Configuration:
       SOC             :   K2H
       BOARD           :   all
       ENDIAN          :   little
       MODULE          :   pcie
       PROJECT_TYPE    :   example
       PROCESSOR       :   arm
       PDK_SHORT_NAME  :   C:\ti\PDK_K2~1\packages\
    =========================================================================
    Checking Configuration...
    Complete
    =========================================================================
       PDK_PARTNO         : TCI6636
       PDK_ECLIPSE_ID     : com.ti.pdk.k2hk
       RTSC_PLATFORM_NAME : ti.platforms.evmTCI6636K2H
       RTSC_TARGET        : gnu.targets.arm.A15F
       CCS_DEVICE         : "Cortex A.66AK2H12"
    *****************************************************************************
    Detecting all projects in PDK and importing them in the workspace C:\ti\PDK_K2~1\packages\\MyExampleProjects
    Detected Test Project: PCIE_K2H_wSoCFile_armExampleProject

    --------------------------------------------------------------------------------
    Creating project 'PCIE_K2H_wSoCFile_armExampleProject'...

      !ERROR: No XDCtools are currently installed!
    Copying macro.ini
    The system cannot find the path specified.
            0 file(s) copied.
    Detected Test Project: PCIE_K2H_wSoCLib_armExampleProject

    --------------------------------------------------------------------------------
    Creating project 'PCIE_K2H_wSoCLib_armExampleProject'...

      !ERROR: No XDCtools are currently installed!
    Copying macro.ini
    The system cannot find the path specified.
            0 file(s) copied.
    No projects detected
    Project generation complete
    *****************************************************************************

    Any ideas here? 

    I went ahead and ran the pdksetupenv.bat script before running the project create script. I also tried the alternative commands (as mentioned in the guide here: http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_overview.html#building-pdk-using-gmake-in-windows-environment 

    set RULES_MAKE = C:/ti/pdk_k2hk_4_0_13/packages/Rules.make
    set PATH=%PATH%;C:/ti/xdctools_3_51_01_18_core

    Still the same XDCTools error. Any ideas?

    Thanks so much for your help and for being so responsive. Again, it's much appreciated!

    - Andre

  • Andre,

    No problem. I assumed you installed PDK and CCS under the default location c:\ti

    - Run CCS 8.3, in Window---->Preferences (see below). do you see xdctools_3_51_01_18_core detected and registered by CCS:

    If not, you can click the "rediscover" to re-scan and add it to CCS.

    - Look at pdkprojectcreate.bat, make sure it looks for:

    REM Version of XDC
    set XDC_VERSION=3.51.01.18

    - If you installed CCS some place else, modify this:

    if not defined CCS_INSTALL_PATH (
    set CCS_INSTALL_PATH=C:/ti/ccs_8_3_0/ccsv8 ============> for me, I installed in a different location.
    )

    - You don't need to run "pdksetupenv.bat", no need 

    set RULES_MAKE = C:/ti/pdk_k2hk_4_0_13/packages/Rules.make
    set PATH=%PATH%;C:/ti/xdctools_3_51_01_18_core

    It worked for me:

    Regards, Eric

  • Eric,

    That worked now. Thanks so much! 

    -Andre