Hi All
I have been facing a problem with configuring the UART 1 peripheral of the CC3200. I am using the TCP socket example program in the CC3200 SDK.
I am trying to configure UART 1 along with the UART 0 (which is used for the console). I am following the same procedure for configuring UART 1 as for UART 0. However, I am unable to send or receive anything from UART 1.
My code is as follows
// Enable Peripheral Clocks
MAP_PRCMPeripheralClkEnable(PRCM_UARTA1, PRCM_RUN_MODE_CLK);
// Configure PIN_01 for UART1 UART1_TX
MAP_PinTypeUART(PIN_01, PIN_MODE_7);
// Configure PIN_02 for UART1 UART1_RX
MAP_PinTypeUART(PIN_02, PIN_MODE_7);
//Enabling UART 1
MAP_UARTConfigSetExpClk(UARTA1_BASE,MAP_PRCMPeripheralClockGet(PRCM_UARTA1),
UART_BAUD_RATE, (UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
UART_CONFIG_PAR_NONE));
//Sending a character
MAP_UARTCharPut(UARTA1_BASE, 'c');
Can anybody tell me what I'm doing wrong here?
PS: I used the CC3200 Pin Mux utility for the mux settings.
Thanks in advance