S32K3_UART_IDLE_EVENT_BUG_RTD400

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K3_UART_IDLE_EVENT_BUG_RTD400

跳至解决方案
604 次查看
wuxianlong
Contributor III

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?

wuxianlong_0-1715237119985.png

I need modify and add code.

wuxianlong_0-1715238212035.png

 

Best  Regards,
xianlong

0 项奖励
回复
1 解答
539 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@wuxianglong

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.

Senlent_0-1715672012103.png

 

 

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.

Senlent_1-1715672012857.png

 

Then you can got the actual RX data length in the idle interrupt callback function and abort the RECEIVE transfer.

Senlent_2-1715672012227.png

 

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
540 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@wuxianglong

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.

Senlent_0-1715672012103.png

 

 

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.

Senlent_1-1715672012857.png

 

Then you can got the actual RX data length in the idle interrupt callback function and abort the RECEIVE transfer.

Senlent_2-1715672012227.png

 

 

0 项奖励
回复
577 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@wuxainglong

I have escalated your question ,it will take some time to get a reply.

Thanks for your patience.

0 项奖励
回复