I used the SDK examples to configure LPUART with my MCXN236 project. I think there is a bug in Flexcomm initialization inside LPUART_Init(). LPUART_Init() is auto generated by the SDK.
I was not able to get LPUART working when Flexcomm was initialized as follows inside LPUART_Init():
status = LP_FLEXCOMM_Init(LPUART_GetInstance(base), LP_FLEXCOMM_PERIPH_LPUART);
I was able to get it working when I configured it as follows:
status = LP_FLEXCOMM_Init(LPUART_GetInstance(base), LP_FLEXCOMM_PERIPH_LPI2CAndLPUART);
What might be the reason for this?