Hello Donald Ngai,
I am not familiar with ESP8266 because it is not the NXP product, I am the LPC engineer.
I think you use the oscilloscope or the logic analysis to test the UART wave, when it works OK independently and when it work with LPC812 chip, just to compare the wave, what the root problem.
You can send out the two data wave to me, I will help you to check it. oscilloscope can see the baudrate and the voltage.
You said there some some gibberish which is sent from the ESP8266 , please also send out that gibberish, just to check whether it is the real UART data or just the interference.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------