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/CC3220SF-LAUNCHXL: Simple UART RX with TI drivers

Part Number: CC3220SF-LAUNCHXL

Tool/software: Code Composer Studio

Hello everyone!

I'm struggeling with the UART on the CC3220MODSF. 

I have a custom made board. I have checked with an oscillo that the signal i'm sending via UART to the board is as i want it to be (one byte: 0b01000000). 

It gets where it needs to arrive: to the RX port of the processor. However, the UART_read never returns.

I'm working with the uartecho.c example with some modifications, (see the code below).

I can successfully send data from the CC3220 to my PC over the UART so that's good. 

I think i'm missing something in the configuration of the UART but i'm not sure what...

Thanks a lot in advance for any help!! :) 

Kateline 

unsigned char input;
unsigned char echoPrompt = 0b00001111;
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.parityType = UART_PAR_NONE;
uartParams.stopBits = UART_STOP_ONE;
uartParams.dataLength = UART_LEN_8;
uartParams.baudRate = 115200;
//uartParams.writeDataMode = UART_DATA_BINARY;
//uartParams.readDataMode = UART_DATA_BINARY;
//uartParams.readReturnMode = UART_RETURN_FULL;
//uartParams.readEcho = UART_ECHO_OFF;
//uartParams.readMode = UART_MODE_BLOCKING;


uart = UART_open(Board_UART1, &uartParams);

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

//UART_write(uart, &echoPrompt, 1);

/* Loop forever echoing */
while (1) {

UART_read(uart, &input, 1);
UART_write(uart, &echoPrompt, 1);
}