How to avoid overrun error of LPUART0 of MKE15Z256VLH7 in debug mode?

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

How to avoid overrun error of LPUART0 of MKE15Z256VLH7 in debug mode?

跳至解决方案
1,068 次查看
wanglanjun
Contributor II

When i use the j-link to debug MKE15Z256VLH7, if LPUART0 RX pin always has data(For example, another device keeps sending data), once run to breakpoint, LPUART0 will occur an overrun error(view the LPUART0's status register), and then the interrupt handler of LPUART0 will no longer executed. Now in the code, I have to check the overrun error flag of LPUART0's status register all the time, so I can clear it at any time. But this is not a good way. I hope that the overrun error does not occur when I debug. It troubles me when I am debugging. How can I avoid this problem of LPUART0's overrun error when I am debugging?

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
948 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello wanglanjun

To prevent the overrun when you are debugging it is recommendable to disable the module, unfortunately it is no possible with the LPUART module. I suggest to avoid sending data to LPUART while you are debugging.

pastedImage_3.png

 

I apologize for the inconvenience this may cause you.

Best regards,

Omar

在原帖中查看解决方案

0 项奖励
回复
1 回复
949 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello wanglanjun

To prevent the overrun when you are debugging it is recommendable to disable the module, unfortunately it is no possible with the LPUART module. I suggest to avoid sending data to LPUART while you are debugging.

pastedImage_3.png

 

I apologize for the inconvenience this may cause you.

Best regards,

Omar

0 项奖励
回复