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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,065 Views
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?

Labels (1)
0 Kudos
Reply
1 Solution
945 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
946 Views
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 Kudos
Reply