<?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>Kinetis Microcontrollers中的主题 How can I reenable CLK_OUT on KW2x?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-reenable-CLK-OUT-on-KW2x/m-p/433892#M25193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am no long able to JTAG program my KW2x. When attempting to program it via IAR, my debugger is unable to stop the CPU clock. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have made a modification to the code within the PlatformInit.c file and believe it to be the cause of my issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;At the end of PlatformInit.c::Platform_Init() I have called :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'courier new', courier;"&gt; MC1324xDrv_Set_CLK_OUT_Freq(gCLK_OUT_FREQ_DISABLE);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;From what I've seen in the datasheet, the modem's clock_out signal can be used to run the CPU clock. Since I have disabled the modem clock_out, perhaps my CPU has no running clock source. Is there a way that I can recover my MCU from this? Perhaps halt all operation before this instruction is reached, or flash the running code from the MCU?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Andrew&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 15:23:58 GMT</pubDate>
    <dc:creator>andrewfitzsimon</dc:creator>
    <dc:date>2015-04-22T15:23:58Z</dc:date>
    <item>
      <title>How can I reenable CLK_OUT on KW2x?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-reenable-CLK-OUT-on-KW2x/m-p/433892#M25193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am no long able to JTAG program my KW2x. When attempting to program it via IAR, my debugger is unable to stop the CPU clock. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have made a modification to the code within the PlatformInit.c file and believe it to be the cause of my issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;At the end of PlatformInit.c::Platform_Init() I have called :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'courier new', courier;"&gt; MC1324xDrv_Set_CLK_OUT_Freq(gCLK_OUT_FREQ_DISABLE);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;From what I've seen in the datasheet, the modem's clock_out signal can be used to run the CPU clock. Since I have disabled the modem clock_out, perhaps my CPU has no running clock source. Is there a way that I can recover my MCU from this? Perhaps halt all operation before this instruction is reached, or flash the running code from the MCU?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Andrew&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 15:23:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-reenable-CLK-OUT-on-KW2x/m-p/433892#M25193</guid>
      <dc:creator>andrewfitzsimon</dc:creator>
      <dc:date>2015-04-22T15:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reenable CLK_OUT on KW2x?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-reenable-CLK-OUT-on-KW2x/m-p/433893#M25194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Dear Andrew,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Which software stack and application are you using exactly? Are you using a custom board or is it a development board from Freescale? Does this happen in all of your boards?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;If you are using a development board, I would recommend you to try loading a new firmware using the openSDA interface. Simply change the debugger settings in IAR project to use PEmicro openSDA and use a USB cable to start loading it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;You may also way to try the TestTool Firmware loader and see if that works too.&amp;nbsp; Simply open TestTool (included in BeeKit installation) and launch the Kinetis Firmware loader. Select the binary file and start uploading it via JTAG.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Moreover, you could always try to unlock the KW2x device using Jlink commander from Segger. Please refer to the post&lt;/SPAN&gt; &lt;A _jive_internal="true" href="https://community.nxp.com/message/473258#473258"&gt;https://community.freescale.com/message/473258#473258&lt;/A&gt; &lt;SPAN style="color: #1f497d;"&gt;for further details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;AngelC &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 20:42:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-reenable-CLK-OUT-on-KW2x/m-p/433893#M25194</guid>
      <dc:creator>AngelC</dc:creator>
      <dc:date>2015-04-27T20:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reenable CLK_OUT on KW2x?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-reenable-CLK-OUT-on-KW2x/m-p/433894#M25195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Angel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I'm using a custom stack and application, and am targeting the TWR-KW24D512 as well as a KW22D512 custom board. The issue happens on both targets. I will try using the openSDA to program the TWR board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will also try the TestTool firmware loarder and the Segger options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me get back to you on how all of it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 14:46:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-reenable-CLK-OUT-on-KW2x/m-p/433894#M25195</guid>
      <dc:creator>andrewfitzsimon</dc:creator>
      <dc:date>2015-04-29T14:46:50Z</dc:date>
    </item>
  </channel>
</rss>

