AnsweredAssumed Answered

K10 crystal start problem at CW debug session

Question asked by Markku Pulsa on Apr 26, 2012
Latest reply on Nov 13, 2013 by Matthew Kendall

Hi,

Using CW10.2 and MQX3.8, CPU is K10FN1M0, crystal is 10MHz.

At debug session SW execution stops here:

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

}

Problem is that crystal doesn't start at debug session (measured with oscillosscope).

Then target board power OFF and power ON, SW runs OK.

Is it possible that SW download and flashing leaves CPU's MCG in such state which prevents crystal startup,

and power-off corrects the problem.

Or does cpu.c:__pe_initialize_hardware() need some extra settings?

 

Tested with both Debugger downloads: "Perform Standard Download" and "Execute Task" K10FN1M0 Programmer, same problem.

Tested with different crystal parameters:  bypass cap, low power/high gain.

Same problem at debug session, but starts OK at power-on.

Have you run this model K10 with crystal in CW debugger?

 

~Mark

Outcomes