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/AM5728: Building I2C examples for DSP

Part Number: AM5728
Other Parts Discussed in Thread: CCSTUDIO, MATHLIB,

Tool/software: Code Composer Studio

I am interested in running this example code:

~/ti/pdk_am57xx_1_0_11/packages/ti/drv/i2c/example/eeprom_read

I went to my ~/ti/pdk_am57xx_1_0_11/packages directory and typed:

make i2c

A lot of activity printed out onto my console.

I then typed find . -name '*.xe66'

Nothing was built in there for this type of target.

I also tried

make i2c LIMIT_CORES="c66x"

again, i didn't see anything built

Where does output go or am I building it wrong?

  • Hi Brian,

    The examples can only be built on the command line using make for AM654x. For AM572x, "make i2c" will only build the I2C LLD libraries. The example projects are created using the approach documented here: http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_overview.html#pdk-example-and-test-project-creation. For example, the following command will create all I2C examples for the C66x:

    pdkprojectcreate AM572x all little i2c example dsp

    The I2C CCS example projects will be created in <PRSDK install folder>\pdk_am57xx_1_0_15\packages\MyExampleProjects. After the projects are created, they can be imported & build inside CCS. For example, this project is the EEPROM read example for the AM572x IDK C66x core:

    I2C_BasicExample_idkAM572x_c66xExampleProject

    Please let me know if this resolves your issue.

    Regards,
    Frank

  • I had to manually create the MyExampleProjects directory, and then it got a little further and errored out:

    bash: line 12: /home/bchase/ti/ccsv8/eclipse/ccstudio: No such file or directory

    And, they are correct. Here is my directory listing for ~/ti/ showing that there is indeed no ccsv8 directory.

    Perhaps there is one installed in another place on our compile linux box? I can ask around.

    bchase@zod:~/ti$ ls
    bios_6_52_00_12                     openmp_dsp_am57xx_2_06_02_01
    cg_xml                              pdk_am57xx_1_0_11
    ctoolslib_2_2_0_0                   processor_sdk_rtos_am57xx_5_00_00_15
    dsplib_c66x_3_4_0_0                 ti-cgt-arm_16.9.3.LTS
    edma3_lld_2_12_05_30C               ti-cgt-c6000_8.2.2
    framework_components_3_40_02_07     ti-cgt-pru_2.2.1
    gcc-arm-none-eabi-6-2017-q1-update  ti-processor-sdk-linux-am57xx-evm-05.00.00.15
    imglib_c66x_3_1_1_0                 uia_2_21_02_07
    ipc_3_47_02_00                      xdais_7_24_00_04
    mathlib_c66x_3_1_1_0                xdctools_3_50_03_33_core
    ndk_2_26_00_08

  • Brian,

    You should be able to change the CCS installation directory in the pdkProjectCreate.sh script for your environment, e.g.:

    # Tools root directory
    if [ -z $CCS_INSTALL_PATH ]; then
    export CCS_INSTALL_PATH=~/ti/ccs901/ccs
    fi

    Regards,
    Frank

  • There is no ccs installed on our linux machine where we do all the compiling for AM5728.

    However, I have been told that if I want to install it, it should go in ~/ti/ccsv8/ (my home directory).

    I will try to install ccs there.

  • Brian,

    Please see some installation instructions for CCS on Linux here: http://processors.wiki.ti.com/index.php/Linux_Host_Support_CCSv7, section "Installation Instructions".

    Please note you must install the PRSDK RTSC components before creating the CCS projects:

    Ensure all RTSC components are discovered & installed within CCS. Launch CCS, Window->Preferences, Code Composer Studio->Products, click "Rediscover". Install all components which are part of AM57xx PRSDK installation. Exit CCS.

    Please let me know if this issue is resolved by clicking on the green "verify" button.

    Regards,
    Frank