<?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 K60 flash programming problem in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-flash-programming-problem/m-p/287619#M11223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a processor expert project in Codewarrior 10.4 for Kinetis TWR-K60D100M with MK60DN512VLQ10 processor.&amp;nbsp; I can run the project fine in flash when debugging, but when I try to flash the same file using the lightening bolt icon I get the following error where it thinks the image size is zero bytes.&amp;nbsp; Any help would be appreciated here.&amp;nbsp; I checked the elf file on disk and it is about 11K.&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13821093267136476" jivemacro_uid="_13821093267136476" modifiedtitle="true"&gt;
&lt;P&gt;fl::target -lc "RFID_FLASH_OSJTAG"&lt;/P&gt;
&lt;P&gt;fl::target -b 0x20000000 0x10000&lt;/P&gt;
&lt;P&gt;fl::target -v off -l off&lt;/P&gt;
&lt;P&gt;cmdwin::fl::device -d "FTFL_PFlash512" -o "128Kx32x1" -a 0x0 0x7ffff&lt;/P&gt;
&lt;P&gt;cmdwin::fl::image -f "C:\\Users\\jberezin\\workspace\\RFID\\FLASH\\RFID.elf" -t "Auto Detect" -re on -r 0x0 0x7ffff -oe off&lt;/P&gt;
&lt;P&gt;cmdwin::fl::erase image&lt;/P&gt;
&lt;P&gt; Beginning Operation ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;------------------------- &lt;/P&gt;
&lt;P&gt;Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; File is of type Elf Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Image size is 0 bytes, nothing to erase.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Nothing to erase.&amp;nbsp; No sectors selected &lt;/P&gt;
&lt;P&gt;Performing target initialization ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Erase Command Succeeded.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;cmdwin::fl::write&lt;/P&gt;
&lt;P&gt;------------------------- &lt;/P&gt;
&lt;P&gt;Using restricted address range 0x00000000 to 0x0007FFFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Programming file C:\Users\jberezin\workspace\RFID\FLASH\RFID.elf&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; File is of type Elf Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; 0 Bytes Programmed, Check Restricted Address Range&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Program Command Succeeded&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;fl::target -lc "LC for Simple Flash"&lt;/P&gt;
&lt;P&gt;fl::target -b 0x20000000 0x10000&lt;/P&gt;
&lt;P&gt;fl::target -v off -l off&lt;/P&gt;
&lt;P&gt;cmdwin::fl::device -d "FTFL_PFlash512" -o "128Kx32x1" -a 0x0 0x7ffff&lt;/P&gt;
&lt;P&gt;cmdwin::fl::image -f "C:\\Users\\jberezin\\workspace\\RFID\\FLASH\\RFID.elf" -t "Auto Detect" -re on -r 0x0 0x7ffff -oe off&lt;/P&gt;
&lt;P&gt;cmdwin::fl::erase image&lt;/P&gt;
&lt;P&gt; Beginning Operation ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;------------------------- &lt;/P&gt;
&lt;P&gt;Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; File is of type Elf Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Image size is 0 bytes, nothing to erase.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Nothing to erase.&amp;nbsp; No sectors selected &lt;/P&gt;
&lt;P&gt;Performing target initialization ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Erase Command Succeeded.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;cmdwin::fl::write&lt;/P&gt;
&lt;P&gt;------------------------- &lt;/P&gt;
&lt;P&gt;Using restricted address range 0x00000000 to 0x0007FFFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Programming file C:\Users\jberezin\workspace\RFID\FLASH\RFID.elf&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; File is of type Elf Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; 0 Bytes Programmed, Check Restricted Address Range&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Program Command Succeeded&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Oct 2013 15:21:47 GMT</pubDate>
    <dc:creator>embeddedprogram</dc:creator>
    <dc:date>2013-10-18T15:21:47Z</dc:date>
    <item>
      <title>K60 flash programming problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-flash-programming-problem/m-p/287619#M11223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a processor expert project in Codewarrior 10.4 for Kinetis TWR-K60D100M with MK60DN512VLQ10 processor.&amp;nbsp; I can run the project fine in flash when debugging, but when I try to flash the same file using the lightening bolt icon I get the following error where it thinks the image size is zero bytes.&amp;nbsp; Any help would be appreciated here.&amp;nbsp; I checked the elf file on disk and it is about 11K.&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13821093267136476" jivemacro_uid="_13821093267136476" modifiedtitle="true"&gt;
&lt;P&gt;fl::target -lc "RFID_FLASH_OSJTAG"&lt;/P&gt;
&lt;P&gt;fl::target -b 0x20000000 0x10000&lt;/P&gt;
&lt;P&gt;fl::target -v off -l off&lt;/P&gt;
&lt;P&gt;cmdwin::fl::device -d "FTFL_PFlash512" -o "128Kx32x1" -a 0x0 0x7ffff&lt;/P&gt;
&lt;P&gt;cmdwin::fl::image -f "C:\\Users\\jberezin\\workspace\\RFID\\FLASH\\RFID.elf" -t "Auto Detect" -re on -r 0x0 0x7ffff -oe off&lt;/P&gt;
&lt;P&gt;cmdwin::fl::erase image&lt;/P&gt;
&lt;P&gt; Beginning Operation ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;------------------------- &lt;/P&gt;
&lt;P&gt;Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; File is of type Elf Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Image size is 0 bytes, nothing to erase.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Nothing to erase.&amp;nbsp; No sectors selected &lt;/P&gt;
&lt;P&gt;Performing target initialization ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Erase Command Succeeded.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;cmdwin::fl::write&lt;/P&gt;
&lt;P&gt;------------------------- &lt;/P&gt;
&lt;P&gt;Using restricted address range 0x00000000 to 0x0007FFFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Programming file C:\Users\jberezin\workspace\RFID\FLASH\RFID.elf&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; File is of type Elf Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; 0 Bytes Programmed, Check Restricted Address Range&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Program Command Succeeded&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;fl::target -lc "LC for Simple Flash"&lt;/P&gt;
&lt;P&gt;fl::target -b 0x20000000 0x10000&lt;/P&gt;
&lt;P&gt;fl::target -v off -l off&lt;/P&gt;
&lt;P&gt;cmdwin::fl::device -d "FTFL_PFlash512" -o "128Kx32x1" -a 0x0 0x7ffff&lt;/P&gt;
&lt;P&gt;cmdwin::fl::image -f "C:\\Users\\jberezin\\workspace\\RFID\\FLASH\\RFID.elf" -t "Auto Detect" -re on -r 0x0 0x7ffff -oe off&lt;/P&gt;
&lt;P&gt;cmdwin::fl::erase image&lt;/P&gt;
&lt;P&gt; Beginning Operation ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;------------------------- &lt;/P&gt;
&lt;P&gt;Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; File is of type Elf Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Image size is 0 bytes, nothing to erase.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Nothing to erase.&amp;nbsp; No sectors selected &lt;/P&gt;
&lt;P&gt;Performing target initialization ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Erase Command Succeeded.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;cmdwin::fl::write&lt;/P&gt;
&lt;P&gt;------------------------- &lt;/P&gt;
&lt;P&gt;Using restricted address range 0x00000000 to 0x0007FFFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Programming file C:\Users\jberezin\workspace\RFID\FLASH\RFID.elf&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Auto-detection is successful.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; File is of type Elf Format.&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; 0 Bytes Programmed, Check Restricted Address Range&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Program Command Succeeded&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 15:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-flash-programming-problem/m-p/287619#M11223</guid>
      <dc:creator>embeddedprogram</dc:creator>
      <dc:date>2013-10-18T15:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: K60 flash programming problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-flash-programming-problem/m-p/287620#M11224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check attached zip file, which includes two videos about how to program TWR-K60D100M board with CodeWarrior project.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 02:42:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-flash-programming-problem/m-p/287620#M11224</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-10-21T02:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: K60 flash programming problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-flash-programming-problem/m-p/287621#M11225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hui Ma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your prompt response.&amp;nbsp; I viewed these &lt;STRONG&gt;excellent&lt;/STRONG&gt; videos, but I think there is still a problem.&amp;nbsp; I was using Way 2 before. Today I tried both of these methods and received similar results to yours, but the program was not present in the system after programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look into both of your videos and view the console output, you will see the following to lines at the end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt; 0 Bytes Programmed, Check Restricted Address Range&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Program Command Succeeded&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;I &lt;/SPAN&gt;believe&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; the bytes in the above message should be non-zero.&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;Even though the task succeeded nothing was programmed.&amp;nbsp; This is the same problem I am experiencing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So I think we are both still having an identical problem.&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Jeff &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 17:43:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-flash-programming-problem/m-p/287621#M11225</guid>
      <dc:creator>embeddedprogram</dc:creator>
      <dc:date>2013-10-21T17:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: K60 flash programming problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-flash-programming-problem/m-p/287622#M11226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fix this problem on my PC, what I have done is at first to enter into the debug panel, after that,use Flash programmer tool without any problem. There shows download bytes to program address.&lt;/P&gt;&lt;P&gt;After that, I create a new project, without any modification, the Flash programmer tool also works. If you still meet same problem after enter into debug panel, you can restart your PC and try again.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="flash program result.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41612i58079A7DDF0FD977/image-size/large?v=v2&amp;amp;px=999" role="button" title="flash program result.jpg" alt="flash program result.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 02:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-flash-programming-problem/m-p/287622#M11226</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-10-24T02:06:56Z</dc:date>
    </item>
  </channel>
</rss>

