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.

66AK2H12: NDK example

Part Number: 66AK2H12
Other Parts Discussed in Thread: OMAPL138

Hi 

I installed "ti-processor-sdk-rtos-k2hk-evm-06.00.00.07-Windows-x86-Install.exe", I'm looking for Client example for ethernet communication.

I couldn't find the example.

Q1:

Where is the example directory? (C\ti....)

Best Regards

  • Hi,

    You can create the client examples by running the following commands:
     source pdksetupenv.sh

     ./pdkProjectCreate.sh K2H all little nimu all arm(or dsp)

    This will create all ndk projects available for K2H devices. Once you import them in CCS you can browse the sources, build them, run them on the evm, etc..


    Best Regards,
    Yordan

  • Hi

    My OS is Win7. 

    Where I should type these commands? 

    Regards

  • Hi,

    In cmd, but note that you should use the .bat files, not the .sh scripts.


    Best Regards,
    Yordan

  • Hi Yordan

    I applied your instructions as below:

    1) Change the directory as below:

    2)Execute first instruction as below:

    3)Execute second instruction as below:

    4)The results in the Commander is as below:

    There is something wrong here, there isn't any DSP project in the printed text in the commander file and no project has been created correctly!!!

    5) I checked the created project as below :

    Finally, there isn't any project!!! 

    What's wrong???

    Regards

  • Hi,

    Are CCS & Processor SDK RTOS installed in the same folder ~/ti? In this case before you run the scripts you should open CCS and allow it to install the PDK sources (it creates some paths needed for project creation).

    If CCS & PDK are installed in different paths, you should follow this guide:
     

    Best Regards,
    Yordan

  • Dear Yordan

    The CCS and SDK are installed in the same folder as below:

    Regards

  • Hi 

    I can solve the problem, in "pdkProjectCreate.bat" file at line 449, I modified the CCS version from CCS901 to CCS910 and the problem solved.

    How can I find the list of example projects and their creation directive?

    Regards

  • Hi

    Please, answer me.

    Thanks

  • Hi,

    If you just open the pdkProjectCreate.bat file, you will see that the script starts with usage note:
      # ******************************************************************************
    # * FILE PURPOSE: PDK Unit Test and Example Project Creator
    # ******************************************************************************
    # * FILE NAME: pdkProjectCreate.sh
    # *
    # * DESCRIPTION:
    # *  The script file is used to create the test and example projects of all
    # *  components under PDK. These projects are available in the specified
    # *  workspace.
    # *
    # * USAGE:
    # *  pdkProjectCreate.sh [soc] [board] [endian] [module] [project type] [processor] [SECUREMODE=<yes/no>]
    # *
    # *  Description:      (first option is default)
    # *  soc           -   AM335x / AM437x / AM571x / AM572x / AM574x / K2E / K2G / K2K / K2H / K2L /
    # *                    C6678 / C6657 / DRA72x / DRA75x / DRA78x / OMAPL137 / OMAPL138 / am65xx
    # *  board         -   all (use "all" for K2X and C66X SOCs)
    # *                    -or-
    # *                    Refer to pdk_<soc>_<version>\packages\ti\board\lib
    # *                    for valid board inputs for the soc
    # *  endian        -   little / big
    # *  module        -   all
    # *                    -or-
    # *                    aif2 / bcp / cppi / csl / dfe / emac / fatfs / fm / fftc /
    # *                    gpio / hyplnk / i2c / icss_emac / iqn2 / mcasp / mcbsp / mmap / mmcsd /
    # *                    nimu / nimu_icss / nwal / osal / pa / pcie / pktlib / pruss / qm / rm /
    # *                    sa / serdes-diag / spi / srio / tcp3d / tfw / transportqmss /
    # *                    transportsrio / tsip / uart / usb / wdtimer / vps / dcan / dss / lcdc
    # *  project type  -   all / example / test  
    # *  processor     -   arm / dsp / m4 / mcu / mpu
    # *  SECUREMODE    -   yes/no (optional argument). If unspecificed non-secure mode is assumed.
    # *
    # *  Example:
    # *   a) pdkProjectCreate.sh
    # *               - Creates all module projects for the AM335x soc for arm little endian
    # *   b) pdkProjectCreate.sh AM437x
    # *               - Creates all module projects for the AM437x soc for arm little endian
    # *   c) pdkProjectCreate.sh AM437x idkAM437x
    # *               - Creates all module projects for idkAM437x device for arm little endian
    # *   d) pdkProjectCreate.sh AM571x evmAM571x little
    # *               - Creates all module projects for evmAM571x device for arm little endian
    # *   e) pdkProjectCreate.sh AM571x evmAM571x little i2c all dsp
    # *               - Creates all i2c module projects for evmAM571x device for dsp little endian
    # *   f) pdkProjectCreate.sh K2H all little i2c example arm
    # *               - Creates i2c module example projects for K2H device for arm little endian
    # *   g) pdkProjectCreate.sh C6678 all little hyplnk test dsp
    # *               - Creates hyplnk module test projects for C6678 device for dsp little endian
    # *   h) pdkProjectCreate.sh K2G evmK2G little mcasp all dsp SECUREMODE=yes
    # *               - Creates mcasp module test projects for dsp little endian to be run on evmK2G
    # *                 which is in secure mode
    # *
     
    Note that this is common for all dsps, so you may need to consult the Software developers guide to see which examples are supported on which board:
     

    Best Regards,
    Yordan