The GPIOs used for UART2 RX and TX were reversed.