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.

AM5728: PDK examples

Part Number: AM5728
Other Parts Discussed in Thread: SYSBIOS

Hello,

I am looking for examples to start development on AM5728 EVM. I was told from (https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/599800/2205837#2205837), in pdk_am57xx folder that was created in the same folder as the sdk? Inside the packages subfolder there should be some scripts like pdkProjectCreate to create CCS projects. But unfortunately, I could not find those examples. I am using XDS200 debugger. Can you please point me to them. I am looking for some examples which would run some examples on the target using the JTAG debugger. Currently, my SDK has the following folders. 

 

  • HI,

    You have the Linux development environment. What you are trying to find looks like the RTOS development environment. After you download and install the RTOS install program it is in,

    pdk_am57xx_1_0_6/packages/pdkProjectCreate.sh

    I have been looking at this in the past few days. The document reference is shown here, from lding a TI Employee from another ticket that I openned,

    ------

    Please first look at processors.wiki.ti.com/.../Processor_SDK_RTOS_Getting_Started_Guide

    Then, there is a link processors.wiki.ti.com/.../Processor_SDK_RTOS_Getting_Started_Guide

    Then processors.wiki.ti.com/.../Rebuilding_The_PDK

    Basically, you run "pdkprojectcreate AM572x all little usb arm", then you create multiple USB example CCS projects, including host mode and device mode, then import into CCS, build load and run.
    -----------
    Hope this helps
  • When you run the script, there is a new folder called MyExampleProjects that will be created in the pdk_am57xx_x_x_x/packages/

    If you don`t see this created there is some reason due to which the script didn`t execute as expected. Please provide the log from the Project creation script so that we can analyze the issue with your setup.

    Regards,
    Rahul
  • Thanks Rahul. I have the script pdkProjectCreate.sh. But, when I try to execute it, I have  the following error. 

    !ERROR: No products of type 'com.ti.rtsc.SYSBIOS' are currently installed! "

    Please see the error when I run it from the command line. Also, the generated files from MyExampleProjects are attached to this post. Could you please let me know how to solve this issue. 

    pdk_error.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    user@Machine ~/ti_rtos/pdk_am57xx_1_0_6/packages
    % ./pdkProjectCreate.sh AM572x evmAM572x little all arm
    =========================================================================
    Configuration:
    SOC : AM572x
    BOARD : evmAM572x
    ENDIAN : little
    MODULE : all
    PROCESSOR : arm
    PDK_SHORT_NAME : /home/user/ti_rtos/pdk_am57xx_1_0_6/packages
    =========================================================================
    Checking Configuration...
    PDK_PARTNO : AM572X
    PDK_ECLIPSE_ID : com.ti.pdk.am57xx
    RTSC_PLATFORM_NAME : ti.platforms.evmAM572X
    RTSC_TARGET : gnu.targets.arm.A15F
    CCS_DEVICE : Cortex A.AM5728_RevA
    *****************************************************************************
    Detecting all projects in PDK and importing them in the workspace /home/user/ti_rtos/pdk_am57xx_1_0_6/packages/MyExampleProjects
    Detected Project ./OSAL_BasicExample_evmAM572x_armTestProject.txt
    --------------------------------------------------------------------------------
    Creating project 'OSAL_BasicExample_evmAM572x_armTestProject'...
    !ERROR: No products of type 'com.ti.rtsc.SYSBIOS' are currently installed!
    Copying macros.ini
    Detected Project ./NIMU_BasicExample_evmAM572x_armExampleproject.txt
    --------------------------------------------------------------------------------
    Creating project 'NIMU_BasicExample_evmAM572x_armExampleproject'...
    !ERROR: No products of type 'com.ti.rtsc.SYSBIOS' are currently installed!
    Copying macros.ini
    Detected Project ./FATFS_Console_evmAM572x_armExampleProject.txt
    ^C
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    FATFS_Console_evmAM572x_armExampleProject.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    PDK_INSTALL_PATH = ../../
    CSL_INSTALL_PATH = ../../
    BOARD_INSTALL_PATH = ../../
    SBL_BOOT_INSTALL_PATH = ../../
    FATFS_INSTALL_PATH = ../../
    OSAL_INSTALL_PATH = ../../
    NIMU_INSTAL_PATH = ../../
    NIMU_ICSS_INSTALL_PATH = ../../
    GPIO_INSTALL_PATH = ../../
    I2C_INSTALL_PATH = ../../
    ICSS_EMAC_INSTALL_PATH = ../../
    MMCSD_INSTALL_PATH = ../../
    PCIE_INSTALL_PATH = ../../
    PRUSS_INSTALL_PATH = ../../
    SPI_INSTALL_PATH = ../../
    UART_INSTALL_PATH = ../../
    USB_INSTALL_PATH = ../../
    SRIO_INSTALL_PATH = ../../
    CPPI_INSTALL_PATH = ../../
    QMSS_INSTALL_PATH = ../../
    FFTC_INSTALL_PATH = ../../
    TCP3D_INSTALL_PATH = ../../
    PASS_INSTALL_PATH = ../../
    BCP_INSTALL_PATH = ../../
    AIF2_INSTALL_PATH = ../../
    PKTLIB_INSTALL_PATH = ../../
    NWAL_INSTALL_PATH = ../../
    SA_INSTALL_PATH = ../../
    DFE_INSTALL_PATH = ../../
    IQN_INSTALL_PATH = ../../
    IQN2_INSTALL_PATH = ../../
    PKTLIB_INSTALL_PATH = ../../
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • If the script is reporting the error, it means that the project is not created. also it indicates that you haven`t performed the CCS Product discovery step in the Getting started guide so that CCS recognizes the component versions installed with the SDK.

    Please complete the Product discovery step and try this again.
    processors.wiki.ti.com/.../Processor_SDK_RTOS_Getting_Started_Guide
    processors.wiki.ti.com/.../Processor_SDK_RTOS_Install_In_Custom_Path

    Regards,
    Rahul
  • Thank you Rahul.

    I have managed to install the examples from the processor sdk. But, why is it that the examples not available on processor sdk linux to build?

    Basically, my AM572x board is using Linux and not RTOS. There are so many configuration parameters to set, that I wanted a basic example template (hello world) and go ahead with modifying it. It should set the compiler, linker and build parameters automatically. But it is not available on Linux SDK.

    I have now set the environment for RTOS and made a build of the examples with pdkProjectCreate.sh file.But when I try to import the project into CCS, I get various errors like below. The whole point of trying to build an example for me is to get an example up and running quickly so that I can start debugging the application soon with the JTAG emulator. Is there any sane way of doing this?

    Build-variable 'PDK_INSTALL_PATH' cannot be resolved. This project may not build as expected.

    /home/user/ti_rtos/pdk_am57xx_1_0_6/packages/ti/boot/sbl/tools/scripts/AM57xImageGen.sh: line 37: mono: command not found

    This project contains 7 unresolved buildable linked resource(s). The project may not build as expected.

    Must specify a URI scheme:PDK_INSTALL_PATH/ti/fs/fatfs/example/console/src/FATFS_log.c

  • Before you ran ProjectCreateScript did you setup the SDK environment and complete the project discovery step as describe in the document.
    PDK_INSTALL_PATH is set using the setup.sh script in the SDK. After it runs, it should show you a log of environment variables it sets up. Ensure that those paths are correct. The CCS Project discovery helps CCS locate the eclipse plug in for all the components in the SDK so that they can be used in the ProjectCreateScript.