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,062件の閲覧回数
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 解決策
942件の閲覧回数
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 返信
943件の閲覧回数
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 件の賞賛
返信