We are trying to set up UART #2 on PortD bits 6 & 7 (pins 143 & 144) on the LM4F232 eval board (and yes we are using a TTL to 232 level shifter when connecting to a PC). I have been able to get the Rx side of things working correctly on this UART but am unable to get the Tx side of things working at all.
We have also tried to set up the PortD pins as GPIOs and toggle them independently and are able to toggle each one with the exception of pin 7.
Is this something that should work? Has anyone successfully accomplished this?
Here is the setup code which we are using to set up the UART (have tried with and without the UARTEnable(UART2_BASE) line below):
// Enable the peripherals
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
SysCtlPeripheralEnable(SYSCTL_PERIPH_UART2);
GPIOPinConfigure(GPIO_PD6_U2RX);
GPIOPinConfigure(GPIO_PD7_U2TX);
GPIOPinTypeUART(GPIO_PORTD_BASE, GPIO_PIN_6 | GPIO_PIN_7);
// configure UART baud, data bits, parity, stop bits, and flow control
UARTConfigSetExpClk(UART2_BASE, SysCtlClockGet(), MODBUS_UART_BAUD, MODBUS_UART_CONFIG);
UARTFlowControlSet(UART2_BASE, UART_FLOWCONTROL_NONE);
// UARTEnable(UART2_BASE);
Looking at the schematic all the PortD pins are unused by other things on the board so this theoretically should work, right?