Hi Nhat Minh,
You project is incomplete, you didn't configure the mcg clock, the core clock, peripheral clock ect, and this is the most important to the cup.
Attached is a new prject, and the main is neally the same as you, just add the sysinit() to configure the system clock, for details, please see the sysinit function.
Besides, you need to read the MCG chapter in our reference manual.
![]()

My baud is 19200 bps, and the test result is as follows:

Wish it helps you!
If you still have question, please let me know!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------