Unusual behaviour MQX and K65 looping in Cpu_SetMCGModeFBE()

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

Unusual behaviour MQX and K65 looping in Cpu_SetMCGModeFBE()

389件の閲覧回数
annamol
Contributor IV

Hi,

I have a custom board with K65 and 24MHz crystal instead of 8MHz crystal in the original evaluation kit design.

I made changes in bsp_cm.h as MCG_C5 = (MCG_C5 & ~MCG_C5_PRDIV_MASK) | MCG_C5_PRDIV(3) along with setting external crystal as 24MHz to account for the clock changes.

There is something unusual happening and I doubt it has something to do with BSP configuration. Code works properly at times, but at certain instances, it loops in Cpu_SetMCGModeFBE(). Then if i reset the device twice, it works properly. If anyone has faced similar issue, it would be great if they can share the work around for the same or at least  help me with configuration (if it is because of this) needed to account for the clock change.

Thanks in advance

タグ(3)
0 件の賞賛
1 返信

303件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi alex:

It seems that your crystal is not working while loops in Cpu_SetMCGModeFBE, I would suggest you check it by your scope.  What is your Oscillator modes, low-power or high-gain?

Regards

Daniel

0 件の賞賛