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.

CC1350: Uart communication between two cc1350 launchpad not working

Part Number: CC1350

HI All,

I am trying to connect two cc1350 board with Uart.but unable to do send/receive data on both board.

But when i try to send data to from PC application(Hercules) then its working. I am not getting why this communication is not working with two board. Following is the uart configuration setting

For Board_A.c

{

const char echoPrompt[] = "Echoing Board A:\r\n";
char writeData[]= "Board A Writing\r\n";
static char new[10];
UART_Handle uart;
UART_Params uartParams;

/* Call driver init functions */
GPIO_init();
UART_init();

/* Configure the LED pin */
GPIO_setConfig(Board_GPIO_LED0, GPIO_CFG_OUT_STD | GPIO_CFG_OUT_LOW);

/* Turn on user LED */
GPIO_write(Board_GPIO_LED0, Board_GPIO_LED_ON);

/* Create a UART with data processing off. */
UART_Params_init(&uartParams);
uartParams.writeDataMode = UART_DATA_BINARY;
uartParams.readDataMode = UART_DATA_BINARY;
uartParams.readReturnMode = UART_RETURN_NEWLINE;
uartParams.readEcho = UART_ECHO_OFF;
uartParams.baudRate = 115200;

uart = UART_open(Board_UART0, &uartParams);

if (uart == NULL) {
/* UART_open() failed */
while (1);
}

UART_write(uart, echoPrompt, sizeof(echoPrompt));

/* Loop forever echoing */
while (1) {
UART_read(uart, new, 3);
UART_write(uart, writeData, sizeof(writeData));


}

For Board_B.c

{

const char echoPrompt[] = "Echoing Board B:\r\n";
char writeData[]= "Board B Writing\r\n";
static char new[10];
UART_Handle uart;
UART_Params uartParams;

/* Call driver init functions */
GPIO_init();
UART_init();

/* Configure the LED pin */
GPIO_setConfig(Board_GPIO_LED0, GPIO_CFG_OUT_STD | GPIO_CFG_OUT_LOW);

/* Turn on user LED */
GPIO_write(Board_GPIO_LED0, Board_GPIO_LED_ON);

/* Create a UART with data processing off. */
UART_Params_init(&uartParams);
uartParams.writeDataMode = UART_DATA_BINARY;
uartParams.readDataMode = UART_DATA_BINARY;
uartParams.readReturnMode = UART_RETURN_NEWLINE;
uartParams.readEcho = UART_ECHO_OFF;
uartParams.baudRate = 115200;

uart = UART_open(Board_UART0, &uartParams);

if (uart == NULL) {
/* UART_open() failed */
while (1);
}

UART_write(uart, echoPrompt, sizeof(echoPrompt));

/* Loop forever echoing */
while (1) {
UART_write(uart, writeData, sizeof(writeData));

UART_read(uart, new, 3);


}

Do i need to set any other pin configuration, please help.

Regards

Simar