Hi,all
It's nice to find that NXP has added code to handle UART idle interrupts in RTD4.0.0.
But when I tested it, I found that this feature has BUG: in the callback function of the underlying driver, Uart_Ipw_LpuartCallback is called. In the Uart_Ipw_LpuartCallback function, the event is converted into an event that can be recognized by the upper layer, which means that the converted event does not contain UART_EVENT_IDLE_STATE.
The version of the software I use is RTD4.0.0HF. May I ask which version has corrected this problem?
I need modify and add code.
Best Regards,
xianlong
Solved! Go to Solution.
I got the reply from our internal .
Yes you are right, I have confirmed with the RTD developer this is a bug and will be fixed in next version.
In current version please add the below code manually as workaround.
I have tested both the HLD and LLD(IP level) of the RTD4.0.0 with S32K3 Low cost EVB(LPUART6, PTA15,PTA16). The idle interrupt works fine.
simple tips for enable the idle function: Check the Uart Timeout Enable.
Then you can got the actual RX data length in the idle interrupt callback function and abort the RECEIVE transfer.
I got the reply from our internal .
Yes you are right, I have confirmed with the RTD developer this is a bug and will be fixed in next version.
In current version please add the below code manually as workaround.
I have tested both the HLD and LLD(IP level) of the RTD4.0.0 with S32K3 Low cost EVB(LPUART6, PTA15,PTA16). The idle interrupt works fine.
simple tips for enable the idle function: Check the Uart Timeout Enable.
Then you can got the actual RX data length in the idle interrupt callback function and abort the RECEIVE transfer.
I have escalated your question ,it will take some time to get a reply.
Thanks for your patience.