Read Issue with UART 2
Posted: Thu Aug 24, 2017 10:03 am
Hello,
So here is my setup.
UART1 - GSM
UART2 -GPS
https://pastebin.com/N9E88L9t Here is the code that I used to set up UART2.
https://pastebin.com/eStNxiHsHere is the code for Initialising UART1.
If I do not use uart_flush, everything works fine and I receive GPS data over UART2 perfectly.
https://pastebin.com/Wxuhcan2 Here is the output for UART2 Read without a flush.
https://pastebin.com/rCTtt8KrHere is the output of UART2 Read with a flush.
Here is a link to the read Function that I am using.https://pastebin.com/7S4L2vYe
Any Ideas why is this happening?
A uart flush on UART1 also affects UART2 read.
https://pastebin.com/JcWxggLjHere is the output of UART2 while executing a uart flush on UART1.
Am I missing something in the initialisation?
Regards
So here is my setup.
UART1 - GSM
UART2 -GPS
https://pastebin.com/N9E88L9t Here is the code that I used to set up UART2.
https://pastebin.com/eStNxiHsHere is the code for Initialising UART1.
If I do not use uart_flush, everything works fine and I receive GPS data over UART2 perfectly.
https://pastebin.com/Wxuhcan2 Here is the output for UART2 Read without a flush.
https://pastebin.com/rCTtt8KrHere is the output of UART2 Read with a flush.
Here is a link to the read Function that I am using.https://pastebin.com/7S4L2vYe
Any Ideas why is this happening?
A uart flush on UART1 also affects UART2 read.
https://pastebin.com/JcWxggLjHere is the output of UART2 while executing a uart flush on UART1.
Am I missing something in the initialisation?
Regards