Hi Team,
I have to use 3 UARTs in the project. I have to get the data from UART0 for every 10ms, and from UART1 for every 25ms. Firstly I have configured UART0 and it worked well. Next I have configured the UART1, Now both are working only for a few seconds, after that both UARTs are not sending or receiving the data.
I'm using the non-blocking functions for both the UARTs. Please check the attached file and let me know if anything wrong that I've done.
Thanks,
Vamsi
I modified this demo and did a test.
1. The baud rate is set too high, your module clock is only 8MHz, but your baud rate is set to 1000000
2. Since the interrupt reception is used, why use the timer to regularly read the serial port data?
I changed the baud rate to 9600 and made the following changes, and it has been working for a long time without any problems:
below is my test result.
Can you provide a complete project and detailed test steps? I need to reproduce your problem first.