Part Number: EVMK2G
How to build, run and test the K2G UART example projects in DSP core from TI-RTOS SDK?
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.
Part Number: EVMK2G
How to build, run and test the K2G UART example projects in DSP core from TI-RTOS SDK?
To run the UART example for K2G devices make sure the prerequisites are present.
Now, Import the CCS project into CCS and go on
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\").
we have the following DSP example projects
UART_BasicExample_K2G_c66xDMATestProject,
UART_BasicExample_K2G_c66xExampleProject,
UART_BasicExample_K2G_c66xTestProject.
we have the following ARM example projects
UART_BasicExample_K2G_armDMATestProject,
UART_BasicExample_K2G_armExampleProject,
UART_BasicExample_K2G_armTestProject.
Do not open ARM and DSP examples at the same time, CCS will throw project out-of-sync error dialog.
For Hardware connections,
we can connect through Mini USB connecting through J1 (Other mini USB port (J3) used by Onboard Debug Emulator).
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)
The Port with the lowest number is the UART port.
The Port with the highest number is BMC port.
UART configuration used in these projects were "8N1"(Data Bit = 8, Parity = None and Stop bit = 1) and baud rate "115200".
To create a Target configuration for "EVMK2G" kindly refer to the URL https://e2e.ti.com/support/processors-group/processors/f/791/t/1135633
No Boot switch settings are,
SW3[4:1] | BOOT MODE |
---|---|
0000 (0x0) | Sleep/No Boot |
0001 (0x1) | PCIe boot |
0010 (0x2) | Ethernet Boot |
0011 (0x3) | I2C PLL Boot |
0100 (0x4) | SPI No PLL Boot |
0101 (0x5) | SPI PLL-1 Boot |
0110 (0x6) | USB Boot |
0111 (0x7) | MMC/SD Boot |
1000 (0x8) | UART Boot |
1001 (0x9) | QSPI 96 Boot |
1010 (0xa) | eMMC Boot |
1011 (0xb) | NAND Boot |
1100 (0xc) | I2C No PLL Boot |
1101 (0xd) | SPI PLL-2 Boot |
1110 (0xe) | SPI PLL-3 Boot |
1111 (0xf) | QSPI 48 Boot |
Hardware connection details are explained on this page https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/How_to_Guides/Hardware_Setup_with_CCS/66AK2G02_GP_EVM_Hardware_Setup.html
To Build the project, Right click on the project and select "Rebuild project". Check for compilation errors and look for "Compilation finished successfully".
DSP UART Projects
"UART_BasicExample_K2G_c66xExampleProject" prints 16 character string terminated by return ("Enter")
UART_BasicExample_K2G_c66xTestProject runs 21 test cases, if a test case is failed it exits the program.
UART_BasicExample_K2G_c66xTestProject runs the 21 DMA test cases, if a test case is failed it exits the program.
Kindly refer to the video demo,
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
Driver APIs: "{TI_RTOS_K2G_INSTALLATION}/pdk_k2g_4_0_16/packages/ti/drv/uart/docs/doxygen/html/files.html"
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