To enable internal loopback please set "LOOP" bit is the DUART_UMCRn register.
Please see P1020 Reference Manual, Section 11.3.10 for details
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------