In my system, there is not a special external oscillator connected to XIN and XOUT of the chip RF430F5***, the clock is derived from external clock signal (6MHz) via XIN .
I have succeeded in converting the system clock to the external clock signal, but as testing, before it changed to external clock, the clock will become to default clock firstly and takes about 1.25ms because of High-frequency oscillator fault (XT1HFOFFG) flag setting. It seems something wrong with the external clock, I don't know why XT1HFOFFG is setting and lasts such a long time ,anyone know the case?
(Note: the external clock signal 6MHz had been stable when converting )
my test code shows below: