Forum Discussion
Hi kyeh,
I am suspecting the UART signal line is not stable where it goes low to trigger a start signal then interpreting the next high signal as data which is high(0xFF or 255). Will need to check if your system is in a stable operation state only start the getchar() while loop. ( Check for the example UART signal characteristics)
You can try to probe the UART signal during the boot up state of your system and also during a stable operating state of your system to see if there is any false signal triggering in the process.
In your application, there must be some control to when is considered to be ok to perform getchar() which is when the system is stable. Example like make sure the system is already boot up with some delays then only perform the while loop to gethar().
If your system is stable and the issue still persist then there must be other contributing factors which requires further troubleshooting.
The UART signal probing is important for troubleshooting in order to check the analog signal stability.
Thanks.
Regards,
Aik Eu