K21 hangs when going from low power to high gain crystal mode

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

K21 hangs when going from low power to high gain crystal mode

627 次查看
kevin_ledinh
Contributor I

Hi all,

Need a little help here.

I'm using K21FN1M0A on one of my custom design. My firmware consists of a bootloader and the actual firmware. I want to run my board in high gain crystal mode (I'm aware that a 1M Ohm resistor needs to be added). Here is the clock description of each piece of software:

Bootloader: use low power crystal mode

Firmware: Use high gain

Observation:

1 - When I configured my firmware to work in low power crystal mode, everything started up fine. The bootloader started up and then the firmware.

2 - After I reconfigured my firmware for high gain crystal mode, the bootloader started (or at least I think it started). Then the firmware never ran (current draw dropped 8mA). I then used J-Link commander but it reported that JTAG Debug power domain was off

3 - After I reconfigured my firmware to high gain crystal mode, bootloader and firmware started ok.

So it is obvious that I have things working. My question is this

Why did going from low power to high gain crystal mode make the K21 hang? I couldn't really work it out from the clocking block diagram.

Much appreciated if somebody sheds some light on this. It has been bugging me for days.

Many thanks,

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

475 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

There with the external crystal circuit design difference for oscillator low-power mode vs. high-gain mode.

In general, the external oscillator circuit will decide which mode using:

osc design.png

Could you provide the external clock circuit schematics?

Thank you for the attention.


Have a great day,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复