Explain the Code, Hardware configuration, and Implementation of the UART example project in K2E family devices?
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.
To run the UART example for K2E devices make sure the pre-requisites are present.
Now, Import the CCS project into CCS and go on
//Declaration - Main thread function created as task Task_Handle task; //Declaration - Error returned in the main thread will be reported to the error block Error_Block eb; //Initializes board UART parameters Board_initUART(); //Initiate error block Error_init(&eb); //Main thread definition task = Task_create(uart_test, NULL, &eb); /* Start BIOS */ BIOS_start();
//Prints "str" in UART port UART_puts("str"); //Stores string from UART port to "ptr" pointer up to a length of "len" UART_puts(ptr,len)
Thanks & regards,