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.

CCS/AM4377: What should I write in place of someUART_configIndexValue?

Part Number: AM4377

Tool/software: Code Composer Studio

I'm using AM4377 board manufactured by MYIR (MYD-C4377-4E512D-100-I-PRU)

Tools:Code Composer Studio  7.0.0.00042

XDS100v3

SYS/BIOS 6.73.1.01

XDCtools 3.50.8.24_core

am437x PDK 1_0_13

SDK RTOS 5.02

I want to implement UART communication on AM4377.

I followed the steps form 

I've set the baudrate to 115200. Here is my code:

#include <stdio.h>
#include <ti/drv/uart/UART.h>
#include <ti/board/board.h>
int main(void)
{
UART_Handle handle;
UART_Params params;
UART_init();
Board_initCfg boardCfg;
Board_init(boardCfg);
UART_Params_init(&params);

params.baudRate = 115200;
params.writeDataMode = UART_DATA_BINARY;
params.readDataMode = UART_DATA_BINARY;
params.readReturnMode = UART_RETURN_FULL;
params.readEcho = UART_ECHO_OFF;
params.dataLength = UART_LEN_8;
params.writeMode = UART_MODE_BLOCKING;


handle = UART_open(someUART_configIndexValue, &params);               -------->" someUART_configIndexValue"

if (!handle)
{
System_printf("UART did not open");
}

const unsigned char hello[] = "Hello World\n";
char ret = UART_write(handle, hello, sizeof(hello));
System_printf("The UART wrote %d bytes\n", ret);

return 0;
}

What should I write in place of someUART_configIndexValue?

I've also looked in the UART.h file, in that file got that it's 'Logical peripheral number indexed into the HWAttrs table'; but not found what to write.

Thanks in advance.

Regards 

Vivek