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] EVMK2G: How to run UART Examples for ARM core on K2G EVM

Part Number: EVMK2G

How to build, run and test the K2G UART example projects in ARM core from TI-RTOS SDK?

  • To run the UART example for K2G devices make sure the prerequisites are present.

    1. Install CCS (https://www.ti.com/tool/download/CCSTUDIO/9.3.0.00012),
    2. TI RTOS SDK
      1. For K2G: Install PROCESSOR-SDK-RTOS-K2G  (Version: 06_03_00_106, https://software-dl.ti.com/processor-sdk-linux/esd/K2G/latest/index_FDS.html ),
    3. Generate the Example projects for PDK,
      1. For K2G: https://e2e.ti.com/support/processors-group/processors/f/791/t/1135633.

    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 ARM example projects
        1. UART_BasicExample_K2G_armDMATestProject,
        2. UART_BasicExample_K2G_armExampleProject,
        3. UART_BasicExample_K2G_armTestProject.
      2. Do not open ARM and DSP examples at the same time, CCS will throw project out-of-sync error dialog.
    2. For Hardware connections,

      1.   

      2.  EVM DIP Switch settings, SW3 : 0 0 0 0   

      3. We can connect through Mini USB connecting through J1 (Other mini USB port (J3) used by Onboard Debug Emulator).

      4. There will be two mini USB ports available for UART in the "Device Manager" section in "Windows OS" (CP2105 chipset, refer to device manager image for reference)

        1. The Port with the lowest number is the UART port.

        2. The Port with the highest number is BMC port.

      5. UART configuration used in these projects were "8N1"(Data Bit = 8, Parity = None and Stop bit = 1) and baud rate "115200".

      6. To create a Target configuration for "EVMK2G" kindly refer to the URL https://e2e.ti.com/support/processors-group/processors/f/791/t/1135633

    3. After the target connection is successful, load the UART arm project into the ARM core of K2G

    1. "UART_BasicExample_K2G_armExampleProject" prints 16 character string terminated by return ("Enter")

    2. UART_BasicExample_K2G_armTestProject runs 21 test cases, if a test case is failed it exits the program.

    3. UART_BasicExample_K2G_armDMATestProject runs the 21 DMA test cases,  if a test case is failed it exits the program. 

    1. Kindly refer to the demo video

    2. For Documentation, Code reference, usage, and other UART driver definitions, Kindly open the web pages (using any browser) which come with the TI-RTOS SDK

      1. Driver APIs: "{TI_RTOS_K2G_INSTALLATION}/pdk_k2g_4_0_16/packages/ti/drv/uart/docs/doxygen/html/files.html"

      2. CSL APIs: "{TI_RTOS_K2G_INSTALLATION}/pdk_k2g_4_0_16/packages/ti/csl/docs/doxygen/html/group___c_s_l___u_a_r_t.html"

    Thanks & regards,

    Rajarajan U