Page 1 of 1

During the program development of the NUC100AN series using the BSP V3.0 or later version, why does the user get stuck i

Posted: 27 Mar 2017, 14:08
by a_ziliu
Since the CLKSTATUS register did not exist in the NUC100An series, when the program executes
while((CLK->CLKSTATUS & CLK_CLKSTATUS_OSC22M_STB_Msk) == 0);
this will cause the program to enter an infinite loop.

The user can change to delay 5ms
CLK_SysTickDelay(5000);
to ensure a stable clock source.