Hello,
LPUART1的PCC REG是

你读出来的LPUART2的REG只有第31是1,你把这个寄存器读取放到RESET_PeripheralReset之后再读一次看看?
还有:BOARD_InitDebugConsole中会用到LPUART1的这些宏,你都改成2了吗?
/* The UART to use for debug messages. */
#define BOARD_DEBUG_UART_TYPE kSerialPort_Uart
#define BOARD_DEBUG_UART_BAUDRATE 115200u
#define BOARD_DEBUG_UART_BASEADDR LPUART1_BASE
#define BOARD_DEBUG_UART_INSTANCE 1U
#define BOARD_DEBUG_UART_CLK_FREQ CLOCK_GetLpuartClkFreq(BOARD_DEBUG_UART_INSTANCE)
#define BOARD_DEBUG_UART_IP_NAME kCLOCK_Lpuart1
#define BOARD_DEBUG_UART_CLKSRC kCLOCK_Pcc1BusIpSrcSysOscDiv2
#define BOARD_DEBUG_UART_RESET kRESET_Lpuart1
#define BOARD_UART_IRQ LPUART1_IRQn
#define BOARD_UART_IRQ_HANDLER LPUART1_IRQHandler
void BOARD_InitDebugConsole(void)
{
uint32_t uartClkSrcFreq;
CLOCK_SetIpSrc(BOARD_DEBUG_UART_IP_NAME, BOARD_DEBUG_UART_CLKSRC);
uartClkSrcFreq = BOARD_DEBUG_UART_CLK_FREQ;
RESET_PeripheralReset(BOARD_DEBUG_UART_RESET);
DbgConsole_Init(BOARD_DEBUG_UART_INSTANCE, BOARD_DEBUG_UART_BAUDRATE, BOARD_DEBUG_UART_TYPE, uartClkSrcFreq);
}
Best Regards,
Zhiming