Hi,
Unfortunately, there is no an example like you need, however you can check the following threads as reference.
UART auto-flow control and doc error
[SOLVED] LPC1778 hard fault during UART setup
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------