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.

[FAQ] TMS320C6657: UART Example project for C665x family devices

Part Number: TMS320C6657

Explain the Hardware configuration and Implementation of the UART example project in C665x family devices?

  • To run the UART example for C665x devices make sure the pre-requisites are present.

    1. Install CCS (https://www.ti.com/tool/download/CCSTUDIO/9.3.0.00012),
    2. TI RTOS SDK
      1. For C665x: Install PROCESSOR-SDK-RTOS-C665x  (Version: 06_03_00_106, https://software-dl.ti.com/processor-sdk-rtos/esd/C665x/latest/index_FDS.html ),
    3. Generate the Example projects for PDK,
      1. For C665x: (https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1040872/faq-tms320c6657-how-to-generate-the-ccs-pdk-examples-for-c6657?tisearch=e2e-sitesearch&keymatch=C6657#).

    Now, Import the CCS project into CCS and go on

    1. To Import the project goto File -> Import -> "CCS projects" in "C/C++" -> Browse "Select Search-directory". make sure to uncheck the "Copy Projects into Workspace" (This is to avoid compilation errors only If TI-RTOS SDK was installed in a different location than "C:\ti\").
      1. we have the following DSP example projects
        1. UART_BasicExample_C6657_c66xDMATestProject,
        2. UART_BasicExample_C6657_c66xExampleProject,
        3. UART_BasicExample_C6657_c66xTestProject.
      2. In this FAQ, "UART_BasicExample_C6657_c66xExampleProject" is explained here.
    2. For Hardware connections,
      1. we can connect through the RS232 Serial cable(with 3 PIN header) received along with EVM to COM1 (mentioned in EVM) and through Mini USB connecting through USB1 (Other mini USB port (J1) used by Onboard Debug Emulator).
      2. Look for "XDS100 Class USB Serial Port" mini USB port in the "Device Manager" section in "Windows OS".The Port with the lowest number is the UART port.
      3. DIP Switch settings for "NOBOOT"  - SW3 - 01111111 SW5 - 11111111 SW9 - 11

                      

    1. UART configuration used in these projects were "8N1"(Data Bit = 8, Parity = None and Stop bit = 1) and baud rate "115200". 
    2. For Connecting C665x EVM with CCS, Kindly refer to these links.
      1. https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1062598/faq-tms320c6678-how-to-load-and-run-the-gel-file-on-c6678-evm
      2. https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1062584/faq-tms320c6678-how-to-create-target-configuration-and-do-test-connection-on-c6678-evm
    3. Please refer UART project video.
    4. For other UART driver definitions
      1. Driver APIs: "{TI_RTOS_C665x_INSTALLATION}/pdk_c665x_4_0_16/packages/ti/drv/uart/docs/doxygen/html/files.html"
      2. CSL APIs: "{TI_RTOS_C665x_INSTALLATION}/pdk_c665x_4_0_16/packages/ti/csl/docs/doxygen/html/group___c_s_l___u_a_r_t.html"

          Output Screenshot:

          

    Thanks & regards,

    Rajarajan U