I installed the OutOfBox_MSP430FR4133 and I am trying to modify the code to display on the built in LCD data from the UART. I can get the UART to work correctly and I can get the LCD to work correctly. But I cannot get both to work. I use the hal_LCD.c code to initialize the LCD. And then I use the following code to initialize the UART. Any thoughts on what my problem is?
int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
//Initialize all pins
Init_GPIO();
Init_LCD();
P4DIR |= BIT0;
P4OUT &= ~BIT0; // P4.0 out low
//**************************************** UART SETUP ******************************************************************************
PM5CTL0 &= ~LOCKLPM5; // Disable the GPIO power-on default high-impedance mode
// to activate previously configured port settings
// Configure UART pins
P1SEL0 |= BIT0 | BIT1; // set 2-UART pin as second function
// Configure UART
UCA0CTLW0 |= UCSWRST; // Put eUSCI in reset
UCA0CTLW0 |= UCSSEL__SMCLK;
// Baud Rate calculation
UCA0BR0 = 8; // 1000000/115200 = 8.68
UCA0MCTLW = 0xD600; // 1000000/115200 - INT(1000000/115200)=0.68
// UCBRSx value = 0xD6 (See UG)
UCA0BR1 = 0;
UCA0CTLW0 &= ~UCSWRST; // Initialize eUSCI
UCA0IE |= UCRXIE; // Enable USCI_A0 RX interrupt
//**************************************** UART SETUP ******************************************************************************
showChar('U',pos[0]);
__bis_SR_register(LPM0_bits|GIE); // Enter LPM0
__no_operation(); // For debugger
}