External oscillator cannot start in MKL81

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

External oscillator cannot start in MKL81

495 Views
daweiy
Contributor I

Hi,

 

I have a problem to start external oscillator. The problem is pin XTAL0 goes to high but toggling, so EXTAL0 always stays low.

 

 The hardware design is followed Freedom-KL82 reference design. The external Osc is a 12MHz one. I am using SDK's GPIO example IAR project for frdmkl81z board. In BOARD_ClockInit() function, XTAL0 and EXTAL0 are both configured to alternate 0 mode. I am using default clock configure RUN table which enables OSCERCLK. 

 

When I run the code, code stuck in this line, "while(!CLOCK_HAL_IsOsc0Stable(base)){}“. When I put a probe on Oscillator pin 1, I can see PIN XTAL0 stays in HIGH instead of toggling. I think this may cause external Oscillator no output to microprocessor.

 

Does anyone had this problem before?

 

Regards,

 

Dawei

Labels (1)
0 Kudos
1 Reply

405 Views
daweiy
Contributor I

Found out the problem. One of the capacitor shorted to ground which causes EXTAL0 pin stays low all the time.

0 Kudos