cancel
Showing results for 
Search instead for 
Did you mean: 

can access the two Uart in one controller?

SS.28
Associate II

I am using 2 Uart with interrupt function. I have enabled two interrupts at the same time. But I can access only one Uart at a time. Another Uart interrupt is no response.

Kindly support for rectify this issue.

11 REPLIES 11
SS.28
Associate II

@KiptonM​ @S.Ma​ 

I have checked below points

--> I put a flag in RX complete call back function and I check the flag in while loop and also I set increment count in while loop.

Result:

After reset the device that time only UART1 interrupt is triggered. Below I have attached the screenshot

And also I have set the same priority in LPUART1 and UART1 its not working

set flag in RX complete call back function:

0693W00000WKhgXQAT.png 

check the flag in while loop

0693W00000WKhgcQAD.png 

Serial Monitor:

0693W00000WKhghQAD.png 

Kindly guide me to rectify this issue

Thank you!

KiptonM
Lead

Use the debugger to set some breakpoints and see what is happening.

Single step through the code if you have to.