Repository navigation
Revert #11186 - #11191
Revert #11186#11191
Conversation
This reverts commit 1bcd5c8.
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: bsp_mcxnReviewers: @hywing Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-02-10 11:16 CST)
📝 Review Instructions
|
LPUART_Init re-ran LP_FLEXCOMM_Init on every configure, resetting the peripheral and wiping CTRL.RIE set by RT_DEVICE_CTRL_SET_INT, so the console never received a byte and host-side VCOM writes wedged. Verified on FRDM-MCXN947 hardware via GDB: NVIC ISER never armed and a hardware breakpoint on uart_isr never fired until these changes. - define LPFLEXCOMM_INIT_NOT_USED_IN_DRIVER=1 so fsl drivers stop re-initialising the FlexComm on every configure - select FlexComm function once in rt_hw_flexcomm_mode_init() - preserve/restore RX interrupt enable across LPUART_Init (PR RT-Thread#11186) - clear OR/FE/NF/PF in uart_isr: an uncleared overrun inhibits all further LPUART reception Reintroduces the drv_uart.c fix from RT-Thread#11186 (reverted in RT-Thread#11191), combined with the one-time FlexComm mode selection that makes it safe. Signed-off-by: Alexander Salas Bastidas <ajsb85@firechip.dev>
LPUART_Init re-ran LP_FLEXCOMM_Init on every configure, resetting the peripheral and wiping CTRL.RIE set by RT_DEVICE_CTRL_SET_INT, so the console never received a byte and host-side VCOM writes wedged. Verified on FRDM-MCXN947 hardware via GDB: NVIC ISER never armed and a hardware breakpoint on uart_isr never fired until these changes. - define LPFLEXCOMM_INIT_NOT_USED_IN_DRIVER=1 so fsl drivers stop re-initialising the FlexComm on every configure - select FlexComm function once in rt_hw_flexcomm_mode_init() - preserve/restore RX interrupt enable across LPUART_Init (PR RT-Thread#11186) - clear OR/FE/NF/PF in uart_isr: an uncleared overrun inhibits all further LPUART reception Reintroduces the drv_uart.c fix from RT-Thread#11186 (reverted in RT-Thread#11191), combined with the one-time FlexComm mode selection that makes it safe. Signed-off-by: Alexander Salas Bastidas <ajsb85@firechip.dev>
Reverts #11186