AnsweredAssumed Answered

k60 clock hanging

Question asked by Arun Kumar on Nov 21, 2014
Latest reply on Nov 24, 2014 by Hui_Ma

Hello everyone,

Currently I am using K60FN1M0VLQ15 core,but it seems to be hanging at this region

[code]

while((MCG_S & MCG_S_OSCINIT0_MASK) == 0x00U) { /* Check that the oscillator is running */

  }

[/code]

Searching around i found this fix where we have to change the RANGE to 0x01.But doing that also did not solve the issue.

[code]

/* MCG_C10: LOCRE2=0,??=0,RANGE1=2,HGO1=0,EREFS1=0,??=0,??=0 */

  MCG_C10 = MCG_C10_RANGE1(0x02);

  /* MCG_C2: LOCRE0=0,??=0,RANGE0=2,HGO0=0,EREFS0=1,LP=0,IRCS=0 */

  MCG_C2 = (MCG_C2_RANGE0(0x02) | MCG_C2_EREFS0_MASK);

[/code]

Is there any PLL clock settings i am missing or is there a fix around this?

MGC mode is set to PEE and my desired MGC output is 150 MHz

 

Thanks in advance

Arun

Outcomes