<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Processor Expert SoftwareのトピックRe: K10 crystal start problem at CW debug session</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157823#M181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;I was running into that same issue with the K60. I have posted an example project here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/358437"&gt;Re: Re: Help with USB&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: how can I affect the RANGE bits? I have not found a setting for this in the Cpu component settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Oct 2013 12:08:11 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2013-10-27T12:08:11Z</dc:date>
    <item>
      <title>K10 crystal start problem at CW debug session</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157819#M177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Using CW10.2 and MQX3.8, CPU is K10FN1M0, crystal is 10MHz.&lt;/P&gt;&lt;P&gt;At debug&amp;nbsp;session SW execution stops here:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#7F0055" size="2"&gt;&lt;FONT color="#7F0055" size="2"&gt;while&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;((MCG_S &amp;amp; MCG_S_OSCINIT0_MASK) == 0x00U) {&lt;/FONT&gt; &lt;FONT color="#3F7F5F" size="2"&gt;&lt;FONT color="#3F7F5F" size="2"&gt;/* Check that the oscillator is running */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Problem is that crystal doesn't start at debug session (measured with oscillosscope).&lt;/P&gt;&lt;P&gt;Then target board power&amp;nbsp;OFF and power ON, SW runs OK.&lt;/P&gt;&lt;P&gt;Is it possible that SW download and flashing leaves CPU's MCG in such state&amp;nbsp;which prevents crystal startup,&lt;/P&gt;&lt;P&gt;and power-off corrects the problem.&lt;/P&gt;&lt;P&gt;Or does cpu.c:__pe_initialize_hardware() need some extra settings?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tested with both Debugger downloads: "Perform Standard Download" and "Execute Task" K10FN1M0 Programmer, same problem.&lt;/P&gt;&lt;P&gt;Tested with different crystal parameters:&amp;nbsp; bypass cap, low power/high gain.&lt;/P&gt;&lt;P&gt;Same problem at debug session, but starts OK at power-on.&lt;/P&gt;&lt;P&gt;Have you run this model K10 with crystal&amp;nbsp;in CW debugger?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 13:17:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157819#M177</guid>
      <dc:creator>MarkP_</dc:creator>
      <dc:date>2012-04-26T13:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: K10 crystal start problem at CW debug session</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157820#M178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you post &amp;nbsp;some project reproducing the problem?&lt;/P&gt;&lt;P&gt;If you are using Processor Expert, the code depends on the CPU component settings and the setup must match the real hardware. Do you use some evaluation board?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&amp;nbsp;&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 22:56:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157820#M178</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2012-04-26T22:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: K10 crystal start problem at CW debug session</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157821#M179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Errata has&amp;nbsp;the answer: e3925: JTAG/OSC: JTAG enables digital input buffers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/errata/KINETIS_0N96B.pdf?fpsp=1&amp;amp;WT_TYPE=Errata&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/microcontrollers/doc/errata/KINETIS_0N96B.pdf?fpsp=1&amp;amp;WT_TYPE=Errata&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CPU has the mask: 0N96B&lt;/P&gt;&lt;P&gt;Changing RANGE0=2 -&amp;gt; 1 helps, at most cases SW starts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any method&amp;nbsp;to disable CPU-component Code generation?&lt;/P&gt;&lt;P&gt;The selection "Don't Write Generated Component" is not allowed at CPU Component.&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 00:56:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157821#M179</guid>
      <dc:creator>MarkP_</dc:creator>
      <dc:date>2012-04-27T00:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: K10 crystal start problem at CW debug session</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157822#M180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;many, many thanks for pointing to that silicon errata and problem. I bumped into that exactly problem on a K60 :-(.&lt;/P&gt;&lt;P&gt;And at least with MCU10.5 I can disable code generation: see &lt;A href="http://mcuoneclipse.com/2013/10/27/usb-with-the-twr-k60f120m-and-twr-k70f120m/" title="http://mcuoneclipse.com/2013/10/27/usb-with-the-twr-k60f120m-and-twr-k70f120m/"&gt;USB with the TWR-K60F120M and TWR-K70F120M | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 12:06:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157822#M180</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-10-27T12:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: K10 crystal start problem at CW debug session</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157823#M181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;I was running into that same issue with the K60. I have posted an example project here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/358437"&gt;Re: Re: Help with USB&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: how can I affect the RANGE bits? I have not found a setting for this in the Cpu component settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2013 12:08:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157823#M181</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-10-27T12:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: K10 crystal start problem at CW debug session</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157824#M182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to confirm, for others who may come across this, I have seen this same problem on the TWR-K60F120M tower board. Sys Osc 0 is wired to an external 50MHz oscillator module and always works. Sys Osc 1 is wired to a 12MHz crystal. This does not start and run when JTAG is active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't see a problem using the default BSP because Sys Osc 0 is used as the source for the system clock (via PLL0). But if you change your custom BSP to use Sys Osc 1 as the source for PLL0, you find that when using the debugger the PE-generated code hangs at startup waiting for PLL0 to lock, because the oscillator has not started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not have much luck with changing either HGO1 (as recommended by the errata) or RANGE1 (as noted above). The best workaround seems to be to use an external oscillator rather than a crystal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 01:06:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K10-crystal-start-problem-at-CW-debug-session/m-p/157824#M182</guid>
      <dc:creator>matthewkendall</dc:creator>
      <dc:date>2013-11-14T01:06:18Z</dc:date>
    </item>
  </channel>
</rss>

