<?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>topic Unable to program flash in K60 TWR in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-program-flash-in-K60-TWR/m-p/310035#M13317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with the TWR-K60D100M tower system and CodeWarrior IDE. When I build my project in CW, an executable is generated with the .elf extension. I was able to debug the project on the tower system. Also, I was able to program the flash of MCU with the .elf file and the program would run fine on the MCU. Everything was good so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I programmed the flash with a different file by mistake. This was a binary file with '.project' extension. No error was shown in the CW console when this was done. However, after this I am unable to either debug on the tower or write any other file to the MCU's flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;When I try to debug, the process is stuck while initializing the .arp file. CW has to be restarted to debug again.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43927iD32263E5D62CAA78/image-size/large?v=v2&amp;amp;px=999" role="button" title="error1.jpg" alt="error1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. If I try to write the program to the MCU's flash using the 'Flash file to target' option, the process stops with the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43988iB7492C0317D8328D/image-size/large?v=v2&amp;amp;px=999" role="button" title="error2.jpg" alt="error2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This happens for both the 'Erase whole device' and 'Erase and Program' options.&lt;/P&gt;&lt;P&gt;What is this flash ID? Where is it trying to read it from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. The earlier error was while programming using the JTAG connection. If I use the P&amp;amp;E Universal multilink connection, it fails with this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44021i4DDE3539B1DD7AA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="error3.jpg" alt="error3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My work is completely halted right now as I unable to test any code I write. Please give any inputs that might be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Neerav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2014 09:30:40 GMT</pubDate>
    <dc:creator>neerav</dc:creator>
    <dc:date>2014-05-05T09:30:40Z</dc:date>
    <item>
      <title>Unable to program flash in K60 TWR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-program-flash-in-K60-TWR/m-p/310035#M13317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with the TWR-K60D100M tower system and CodeWarrior IDE. When I build my project in CW, an executable is generated with the .elf extension. I was able to debug the project on the tower system. Also, I was able to program the flash of MCU with the .elf file and the program would run fine on the MCU. Everything was good so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I programmed the flash with a different file by mistake. This was a binary file with '.project' extension. No error was shown in the CW console when this was done. However, after this I am unable to either debug on the tower or write any other file to the MCU's flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;When I try to debug, the process is stuck while initializing the .arp file. CW has to be restarted to debug again.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43927iD32263E5D62CAA78/image-size/large?v=v2&amp;amp;px=999" role="button" title="error1.jpg" alt="error1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. If I try to write the program to the MCU's flash using the 'Flash file to target' option, the process stops with the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43988iB7492C0317D8328D/image-size/large?v=v2&amp;amp;px=999" role="button" title="error2.jpg" alt="error2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This happens for both the 'Erase whole device' and 'Erase and Program' options.&lt;/P&gt;&lt;P&gt;What is this flash ID? Where is it trying to read it from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. The earlier error was while programming using the JTAG connection. If I use the P&amp;amp;E Universal multilink connection, it fails with this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44021i4DDE3539B1DD7AA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="error3.jpg" alt="error3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My work is completely halted right now as I unable to test any code I write. Please give any inputs that might be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Neerav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 09:30:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-program-flash-in-K60-TWR/m-p/310035#M13317</guid>
      <dc:creator>neerav</dc:creator>
      <dc:date>2014-05-05T09:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program flash in K60 TWR</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-program-flash-in-K60-TWR/m-p/310036#M13318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend customer to use J-Link tool and use Segger provided J-Link Commander tool and use "unlock Kinetis" command to unlock the Kinetis.&lt;/P&gt;&lt;P&gt;I am worry about the Flash configuration address 0x40C was written incorrect value, which cause Kinetis chip was secured and with mass erase disabled (That means the chip is permenently locked).&lt;/P&gt;&lt;P&gt;Segger provided J-Link Commander tool could be downloaded from below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.segger.com/jlink-software-beta-version.html" title="http://www.segger.com/jlink-software-beta-version.html"&gt;SEGGER - The Embedded Experts - J-Link Beta software version&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 05:33:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-program-flash-in-K60-TWR/m-p/310036#M13318</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-05-08T05:33:53Z</dc:date>
    </item>
  </channel>
</rss>

