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.

TMS320C6746: Initial Settings

Part Number: TMS320C6746
Other Parts Discussed in Thread: OMAPL138, CCSTUDIO, SYSBIOS, SYSCONFIG, OMAP-L138

Hello, everyone.
I am trying to do the initial setup of peripherals and other devices on TMS320C6746.
Please let me know the order of initialization and if there is anything I should be aware of.

Thank you in advance.
Suzuki

  • Hi Suzuki,

    Please check the board support documentation of the Processor-SDK at here. In addition, I would recommend you to:

    1. download and install the Processor-SDK: https://www.ti.com/tool/PROCESSOR-SDK-C6748#downloads,

    2. create PDK example projects according to instructions here.

    3. pick a created example project and you should be able to find function Board_init() which shows what need to be initialized.

    Regards,

    Jianzhong

  • Hi Jianzhong.

    I have loaded all the projects in the SDK.
    Some of the projects could not be loaded due to errors.

    I tried to run some of the projects, but the following problems occur.
    I cannot compile without source files.
    2. Compilation error occurs.
    3. Error when connecting to the debugger.
    4. No Board_init().

    Which project would be a good reference?

    Please help me.
    Suzuki

  • Please try project GPIO_LedBlink_lcdkOMAPL138_c674xTestProject.

  • Hi Jianzhong.
    I could not find that project in the SDK.
    The following figure shows the folder where I installed the SDK.
    In which folder is the project located?

    Thank you for your time.
    Suzuki

  • Hi Suzuki,

    You need to create the projects according to step 2 which I provided earlier:

    2. create PDK example projects according to instructions here.

    Regards,

    Jianzhong

  • Hi Jianzhong.

    Are you referring to "1.4.5. Rebuilding Components" in the "Processor SDK RTOS Getting Started Guide"?

    I got as far as running "pdkProjectCreate.bat", but it didn't create the sample project because there is no MyExampleProjects.
    Isn't it possible to create a sample project with C6748?

    Thank you very much for your help.
    Suzuki

  • Are you referring to "1.4.5. Rebuilding Components" in the "Processor SDK RTOS Getting Started Guide"?

    Yes, the link is: https://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_overview.html#pdk-example-and-test-project-creation.

    I got as far as running "pdkProjectCreate.bat", but it didn't create the sample project because there is no MyExampleProjects.

    Did the script run to completion? Were there errors?

  • Hi Jianzhong.
    I did not know how to specify the BOARD so I set it to all and executed it.
    The error occurs after CCS DEVICE.
    The following is the result.

    C:\ti\pdk_omapl138_1_0_11\packages>pdkProjectCreate.bat C6748 all little all all dsp C:\ti\pdk_omapl138_1_0_11\packages\packages
    =========================================================================
    Configuration:
    SOC : C6748
    BOARD : all
    ENDIAN : little
    MODULE : all
    PROJECT_TYPE : all
    PROCESSOR : dsp
    PDK_SHORT_NAME : C:\ti\pdk_omapl138_1_0_11\packages\packages
    =========================================================================
    Checking Configuration...
    Complete
    =========================================================================
    PDK_PARTNO : OMAPL138
    PDK_ECLIPSE_ID : com.ti.pdk.omapl138
    RTSC_PLATFORM_NAME : ti.platforms.evmOMAPL138
    RTSC_TARGET : ti.targets.elf.C674
    CCS_DEVICE : "com.ti.ccstudio.deviceModel.C6000.GenericC674xDevice"
    指定されたパスが見つかりません。
    *****************************************************************************
    Detecting all projects in PDK and importing them in the workspace C:\ti\pdk_omapl138_1_0_11\packages\packages\MyExampleProjects
    Detected Test Project: EMAC_lcdkOMAPL138_C674xLoopback_testProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: GPIO_LedBlink_lcdkOMAPL138_c674xTestProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: I2C_Master_lcdkOMAPL138_c674xTestProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: I2C_Slave_lcdkOMAPL138_c674xTestProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: MCASP_Audio_lcdkOMAPL138_c674xExampleProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: MCBSP_DigLpbk_lcdkOMAPL138_c674xExampleProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: MMCSD_FatfsConsole_lcdkOMAPL138_c674xExampleProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: MMCSD_FatfsConsole_lcdkOMAPL138_DMA_c674xExampleProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: MMCSD_lcdkOMAPL138_c674xTestProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: MMCSD_lcdkOMAPL138_DMA_c674xTestProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: SPI_LoopbackExample_lcdkOMAPL138_c674xDMAExampleProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: SPI_LoopbackExample_lcdkOMAPL138_c674xExampleProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: UART_BasicExample_lcdkOMAPL138_c674xExampleProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: UART_BasicExample_lcdkOMAPL138_c674xDMATestProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: UART_BasicExample_lcdkOMAPL138_c674xTestProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: USB_DevAudio_lcdkOMAPL138_c674xExampleProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: USB_DevMsc_lcdkOMAPL138_c674xExampleProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: USB_HostMsc_lcdkOMAPL138_c674xExampleProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: OSAL_BasicExample_lcdkOMAPL138_c674xTestProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: NIMU_emacExampleclient_lcdkOMAPL138C674xBiosExampleProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Detected Test Project: NIMU_emacExample_lcdkOMAPL138C674xBiosExampleProject
    指定されたパスが見つかりません。
    Copying macros.ini
    指定されたパスが見つかりません。
    Project generation complete
    *****************************************************************************

  • Which CCS version are you using? This version of PDK was released with CCS9.3. You'll find the following in the script:

    if not defined CCS_INSTALL_PATH (
    set CCS_INSTALL_PATH=C:/ti/ccs930/ccs
    )

    If you have a different version of CCS, please update CCS_INSTALL_PATH accordingly.

  • Hi Jianzhong.

    I have embedded the specified version of XDCtools and SYSBIOS into CCS10.
    I rewrote "set CCS_INSTALL_PATH=C:/ti/ccs930/ccs" in "pdkProjectCreate.bat" to "ccs103".
    When I run "pdkProjectCreate.bat", I get the following
    "ERROR: Unknown product-type ID 'com.ti.pdk.omapl138'! occurs.
    What can I do to get rid of this error?

    Thank you very much for your help.
    Suzuki

    C:\ti\pdk_omapl138_1_0_11\packages>pdkProjectCreate.bat C6748 all little all example dsp
    =========================================================================
    Configuration:
    SOC : C6748
    BOARD : all
    ENDIAN : little
    MODULE : all
    PROJECT_TYPE : example
    PROCESSOR : dsp
    PDK_SHORT_NAME : C:\ti\PDK_OM~1\packages\
    =========================================================================
    Checking Configuration...
    Complete
    =========================================================================
    PDK_PARTNO : OMAPL138
    PDK_ECLIPSE_ID : com.ti.pdk.omapl138
    RTSC_PLATFORM_NAME : ti.platforms.evmOMAPL138
    RTSC_TARGET : ti.targets.elf.C674
    CCS_DEVICE : "com.ti.ccstudio.deviceModel.C6000.GenericC674xDevice"
    *****************************************************************************
    Detecting all projects in PDK and importing them in the workspace C:\ti\PDK_OM~1\packages\\MyExampleProjects
    Detected Test Project: MCASP_Audio_lcdkOMAPL138_c674xExampleProject

    --------------------------------------------------------------------------------
    Creating project 'MCASP_Audio_lcdkOMAPL138_c674xExampleProject'...


    !ERROR: Unknown product-type ID 'com.ti.pdk.omapl138'!
    NOTE: Refer to the following list of available product-type IDs (the display-names in square brackets are for reference only):

    com.ti.rtsc.SYSBIOS [SYS/BIOS]
    sysconfig [SysConfig]
    com.ti.rtsc.XDCtools [XDCtools]

    Copying macros.ini
    指定されたパスが見つかりません。
    0 個のファイルをコピーしました。
    Detected Test Project: MCBSP_DigLpbk_lcdkOMAPL138_c674xExampleProject

    --------------------------------------------------------------------------------
    Creating project 'MCBSP_DigLpbk_lcdkOMAPL138_c674xExampleProject'...


    !ERROR: Unknown product-type ID 'com.ti.pdk.omapl138'!
    NOTE: Refer to the following list of available product-type IDs (the display-names in square brackets are for reference only):

    com.ti.rtsc.SYSBIOS [SYS/BIOS]
    sysconfig [SysConfig]
    com.ti.rtsc.XDCtools [XDCtools]

    Copying macros.ini
    指定されたパスが見つかりません。
    0 個のファイルをコピーしました。
    D

  • !ERROR: Unknown product-type ID 'com.ti.pdk.omapl138'!
    NOTE: Refer to the following list of available product-type IDs (the display-names in square brackets are for reference only):

    com.ti.rtsc.SYSBIOS [SYS/BIOS]
    sysconfig [SysConfig]
    com.ti.rtsc.XDCtools [XDCtools]

    This means OMAP-L138 PDK and other components from the Processor-SDK have not been installed to CCS. When you started CCS, it should prompt you to install those products. You need to install them and restart the CCS.

    If you don't get the prompt, please go to CCS > Window > Preferences > Code Composer Studio > Products > Refresh and select and install the omapl138 PDK package and other packages from the Processor SDK. You'll need to make sure the "Product discovery path" has the folder where the packages are installed.

  • Hi Jianzhong.
    With your advice, I was able to create a sample project successfully.
    Thank you very much.
    Suzuki