Hello Li feng,
From your description, your problem is caused by your external RTC hardware or circuit.
1. About the layout, you can refer to this document:
http://cache.nxp.com/docs/en/user-guide/KLQRUG.pdf?fsrch=1&sr=1&pageNum=1
Chapter 2.1.3.3 Oscillators.
2. About the load capacitor
Please check your 32.768K crystal datasheet, find the proper load capacitor.
Both PTC2 and PTC3 should have the 32K oscillating wave.
TWR-KE18F board didn't add the external capacitor, it should be the board layout parasitic capacitance is enough for the oscillating.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------