K21 hangs when oscillator mode set to high gain

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

K21 hangs when oscillator mode set to high gain

791 次查看
kevinledinh
Contributor II

Hi all,

We are having some problem getting the K21 works with High gain Oscillator operating mode using Processor Expert. The code keeps hanging in cpu.c (see photo below)

The K21 works ok with Low power mode. The reference manual says that this option should work.

Here is my external crystal setting in Processor expert:

high_gain_xtal.JPG

Here is where the code is stuck at:

cpu.jpg

Any help is appreciated.

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

683 次查看
mjbcswitzerland
Specialist V

Hi

Whether you need high or low gain mode depends on your HW - setting the opposite mode will not work.

If your HW doesn't have a loading resistor (and possile no loading capacitors) you must use low gain mode.

If you want to use high gain mode you will need to add the loading and then it will start.

Regards

Mark

0 项奖励
回复