FAQ

FAQ

During the program development of the NUC100AN series using the BSP V3.0 or later version, why does the user get stuck in waiting for a stable clock source? How to handle it?  Issue Date:2015-11-02

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.

Products: Microcontrollers ,Arm Cortex-M0 MCUs ,NUC100/200 Advanced Series ,NUC120/122/123/220 USB Series
Applications:
Function: Peripherals,Clock Control,HCLK,HIRC,HXT,LIRC,LXT,PLL