Finally fixed the uart. Remember to use the UART library NOT the USART