Hi, I have develop an interface between TIVA and a wifi chip via UART.
I have tested the communication with the chip ( directly w/o TIVA ) and it works fine.
This is my init:
UART_Params uartParams;
/* Enable and configure the peripherals used by the uart. */
SysCtlPeripheralEnable(SYSCTL_PERIPH_UART4);
GPIOPinConfigure(GPIO_PC4_U4RX);
GPIOPinConfigure(GPIO_PC5_U4TX);
GPIOPinTypeUART(GPIO_PORTC_BASE, GPIO_PIN_4 | GPIO_PIN_5);
/* Initialize the UART driver */
UART_init();
/* Create a UART with data processing off. */
UART_Params_init(&uartParams);
uartParams.writeDataMode = UART_DATA_TEXT;
uartParams.readDataMode = UART_DATA_TEXT;
uartParams.readReturnMode = UART_RETURN_NEWLINE;
uartParams.readEcho = UART_ECHO_OFF;
uartParams.parityType = UART_PAR_NONE;
uartParams.dataLength = UART_LEN_8;
uartParams.stopBits = UART_STOP_ONE;
uartParams.baudRate = 9600;
uartParams.readMode = UART_MODE_CALLBACK;
uartParams.writeMode = UART_MODE_CALLBACK;
uartParams.readCallback = &UART_Callbk_read;
uartParams.writeCallback = &UART_Callbk_write;
uartHandle = UART_open(MODESTONE_UARTWIFI, &uartParams);
When I call UART_write...I enter in the callback UART_Callbk_write. The wifi chip answers to that command but I never enter in UART_Callbk_read.
Does anyone see something wrong in my implementation? Any suggestions to debug this issue?
Thanks!!!