Hi,
I'm newbie with TI environment and TI RTOS. I'm trying to modifying some examples to get used to it.
At moment I'm trying to use a uart port modifying the Ti example rfEasyLinkTx.This is a chunk of code of the funcion which runs in the uart task:
static void uartRx(UArg arg0, UArg arg1)
{
UART_Handle uart;
UART_Params uartParams;
//Board_initUART();
/* 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_FULL;
uartParams.readEcho = UART_ECHO_OFF;
uartParams.baudRate = 9600;
uart = UART_open(Board_UART0, &uartParams);
if (uart == NULL)
{
System_abort("Error opening the UART");
}
while(1);
}
The task is running because I can see it in the ROV and I can reach the while(1) using a break point if I comment all the UART instructions out.
I tryed to initialise the uart - Board_initUART() - in the main before BIOS_start() and also inside the task function - uartRx - (always just once) but no luck at moment.
It seems that it is getting stuck at the instruction:
uart = UART_open(Board_UART0, &uartParams);
If I try to follow it using the disassembly, I can follow it till the function UARTCC26XX_initHw(UART_Handle handle) where it calls UARTDisable(hwAttrs->baseAddr) and than it enters in an infinite loop.
Any good tips?
Thanks you
D