K21 hangs when oscillator mode set to high gain

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

K21 hangs when oscillator mode set to high gain

792件の閲覧回数
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 返信

684件の閲覧回数
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 件の賞賛
返信