<?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のトピックUnable to flash the code TWR-K64</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518888#M32679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Board was running alright, and I think I might have used IRC48M as MCG external reference clock. The program crashed and now I'm unable to flash the new application on board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still able to upgrade the OpenSDA Bootloader firmware, and access MSD flash programmer. But not able to flash the code. Tried this with blhost, KinetisFlashTool, and KDS3.0. Every time initial ping to board seems to fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the work around for this issue? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Jun 2016 05:18:04 GMT</pubDate>
    <dc:creator>rinipatel</dc:creator>
    <dc:date>2016-06-11T05:18:04Z</dc:date>
    <item>
      <title>Unable to flash the code TWR-K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518888#M32679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Board was running alright, and I think I might have used IRC48M as MCG external reference clock. The program crashed and now I'm unable to flash the new application on board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still able to upgrade the OpenSDA Bootloader firmware, and access MSD flash programmer. But not able to flash the code. Tried this with blhost, KinetisFlashTool, and KDS3.0. Every time initial ping to board seems to fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the work around for this issue? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jun 2016 05:18:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518888#M32679</guid>
      <dc:creator>rinipatel</dc:creator>
      <dc:date>2016-06-11T05:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to flash the code TWR-K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518889#M32680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rini,&lt;/P&gt;&lt;P&gt;I am not sure whether your K64 is locked or reset repeatedly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEGGER offers a firmware running on the Freescale OpenSDA platform which makes &lt;A href="https://www.segger.com/opensda.html"&gt;OpenSDA compatible to J-Link Lite&lt;/A&gt;. Input "unlock kinetis" at J-Link Commander can mass erase the Kinetis MCU. The firmware of TWR-K64F120M can be download from this &lt;A href="https://www.segger.com/downloads/jlinkopensda"&gt;webpage&lt;/A&gt;. If the J-Link Commander can't identify the Cortex-M core, you need keep press down the reset buttom(SW2) and then reopen J-Link Commander.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="jlink commander unlock kinetis.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59635iBF6B46EB9DDCC655/image-size/large?v=v2&amp;amp;px=999" role="button" title="jlink commander unlock kinetis.jpg" alt="jlink commander unlock kinetis.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then refer this &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-330211"&gt;Document&lt;/A&gt; download the KDS3.2 (it has fixed some known issues).&lt;/P&gt;&lt;P&gt;Using KDS3.2 debug or flash your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 07:49:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518889#M32680</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-06-13T07:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to flash the code TWR-K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518890#M32681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.With J-Link OpenSDA firmware running on K64, I'm getting below error in J-Link Commander.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="jlink error.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60368i584EB100A36CB80A/image-size/large?v=v2&amp;amp;px=999" role="button" title="jlink error.PNG" alt="jlink error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 06:27:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518890#M32681</guid>
      <dc:creator>rinipatel</dc:creator>
      <dc:date>2016-06-17T06:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to flash the code TWR-K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518891#M32682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you try the method below? &lt;/P&gt;&lt;P&gt;1. Keep press down the reset buttom(SW2).&lt;/P&gt;&lt;P&gt;2. Open J-Link Commander.&lt;/P&gt;&lt;P&gt;3. Release the reset buttom.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the J-Link Commander can identify the Cortex-M core, then you can input "unlock kinetis" mass erase K64. After mass erasing you can launch the debugger and you should be able to connect/program the device again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 09:42:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518891#M32682</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-06-17T09:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to flash the code TWR-K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518892#M32683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I've launched the J-Link commander while pressing down the reset (SW2). Still getting the same result.&amp;nbsp; It is not connecting to the target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 10:26:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518892#M32683</guid>
      <dc:creator>rinipatel</dc:creator>
      <dc:date>2016-06-17T10:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to flash the code TWR-K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518893#M32684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rini,&lt;/P&gt;&lt;P&gt;Please make sure the jumper settings are default on your TWR-K64F120M board, refer "Table 6. Jumper options and headers" in &lt;A href="http://cache.nxp.com/files/microcontrollers/doc/user_guide/TWRK64F120MUG.pdf?fpsp=1&amp;amp;WT_TYPE=Users%20Guides&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;TWRK64F120MUG&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The version of my board is "SCH-27943 REV B1".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Rev of TWR-K64F120M.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60352iF6064B61E53C4415/image-size/large?v=v2&amp;amp;px=999" role="button" title="Rev of TWR-K64F120M.jpg" alt="Rev of TWR-K64F120M.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to connect the board with different version&amp;nbsp; &lt;A href="https://www.segger.com/j-link-older-versions.html"&gt;J-Link Commander&lt;/A&gt;(V4.90d V4.92 and V5.12f), all of them can identify the Cortex-M core.&lt;/P&gt;&lt;P&gt;When using J-Link Commander V5.12f, the LED D4 will turn off after connect and it will light (reset repeatedly) after mass erase.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="J-Link Commander V5.12f.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60391iF33634A71F992D71/image-size/large?v=v2&amp;amp;px=999" role="button" title="J-Link Commander V5.12f.jpg" alt="J-Link Commander V5.12f.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am not sure whether you have secure or disable mass erase by using Flash security byte (FSEC) and Program Flash Protection (FPROT).&lt;/P&gt;&lt;P&gt;This "&lt;A href="http://forum.segger.com/index.php?page=Thread&amp;amp;threadID=2390"&gt;JLink on unsecure and erase Kinetis FLASH&lt;/A&gt;" may help if the K64 is secure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can attach the code here so that we can help you easier.&lt;/P&gt;&lt;P&gt;Have you try to flash a correct code(examples in &lt;A href="http://cache.nxp.com/files/32bit/software_tools/KINETIS-EXPERT-TOOL.html?fpsp=1&amp;amp;WT_TYPE=Software%20Development%20Kits&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=html&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.html"&gt;Kinetis SDK Builder (REV 2 &amp;amp; 1.3)&lt;/A&gt; ) by using different IDEs(KDS3.2 or IAR)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 09:49:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518893#M32684</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-06-21T09:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to flash the code TWR-K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518894#M32685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Yes, jumper settings are default on my TWR-K64F120M board.&lt;/P&gt;&lt;P&gt;2. Board schematic version is "SCH-27943 REV B1".&lt;/P&gt;&lt;P&gt;3. I've downloaded the latest J-Link commander V5.12f, and LED D4 is blinking when I run the command. But as I stated earlier, it fails to connect with the target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="jlink error2.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59957i71DD33F93DE294BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="jlink error2.PNG" alt="jlink error2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to flash the pre-compiled example from QSP only. But apparently I can not get past to "&lt;STRONG&gt;Cannot connect to target&lt;/STRONG&gt;" error and every other commands after that (e.g. unlock Kinetis, erase) fail. And I can't read Flash security byte (FSEC) and Program Flash Protection (FPROT) byte using mem command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 11:55:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518894#M32685</guid>
      <dc:creator>rinipatel</dc:creator>
      <dc:date>2016-06-21T11:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to flash the code TWR-K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518895#M32686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rini,&lt;/P&gt;&lt;P&gt;Have you observe the voltage of NMI_b(PTA4 Pin)?&amp;nbsp; NMI_b pin could lead to generate a non-maskable interrupt (NMI). If you don't need NMI function, please ensure it is high. The pullup resistor R64 is not place by default. The NMI_b Pin has a weak internal pullup, but an external 4.7 kΩ to 10 kΩ pullup is recommended.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="NMI_b PTA4.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/60718iCF698F24AE596C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="NMI_b PTA4.jpg" alt="NMI_b PTA4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And please attach your project here so that I can help you check whether it is caused by software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:30:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518895#M32686</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-06-22T14:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to flash the code TWR-K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518896#M32687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting 3.3 V NMI voltage, I can assure that board is not getting reset repeatedly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the project space of the code which I last flashed on board from KSDK1.2.0.&amp;nbsp; Please have a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 04:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-flash-the-code-TWR-K64/m-p/518896#M32687</guid>
      <dc:creator>rinipatel</dc:creator>
      <dc:date>2016-06-23T04:15:42Z</dc:date>
    </item>
  </channel>
</rss>

