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?
Solved! Go to Solution.
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.
I apologize for the inconvenience this may cause you.
Best regards,
Omar
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.
I apologize for the inconvenience this may cause you.
Best regards,
Omar