External oscillator cannot start in MKL81

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

External oscillator cannot start in MKL81

981 次查看
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

标签 (1)
0 项奖励
回复
1 回复

891 次查看
daweiy
Contributor I

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

0 项奖励
回复