<?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>CodeWarrior Development ToolsのトピックRe: Please help: flash to target results in 0 bytes programmed</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Please-help-flash-to-target-results-in-0-bytes-programmed/m-p/315590#M923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. My problem is as of yet unresolved. &lt;/P&gt;&lt;P&gt;I followed the steps you mentioned and made sure that "mass erase on connect" was marked. Unfortunately the result remains the same: "0 bytes programmed". See below for full console output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you require more information from me and what kind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Console output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fl::target -lc "LC for Simple Flash"&lt;/P&gt;&lt;P&gt;fl::target -b 0x20000000 0x8000&lt;/P&gt;&lt;P&gt;fl::target -v off -l off&lt;/P&gt;&lt;P&gt;cmdwin::fl::device -d "FTFL_PFlash256" -o "64Kx32x1" -a 0x0 0x3ffff&lt;/P&gt;&lt;P&gt;cmdwin::fl::image -f "E:\\IDE\\Freescale\\Workspace\\MK20D72M_Drivers\\FLASH\\MK20D72M_Drivers.elf" -t "Auto Detect" -re on -r 0x0 0x3ffff -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;Performing target initialization ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;failed on register write: ETF_FCR &lt;/P&gt;&lt;P&gt; Downloading Flash Device Driver ...&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Reading flash ID ...&lt;/P&gt;&lt;P&gt;Erasing Sector 0x00000000 to 0x000007FF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00000800 to 0x00000FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00001000 to 0x000017FF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00001800 to 0x00001FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00002000 to 0x000027FF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Erasing ...&lt;/P&gt;&lt;P&gt; Erase Command Succeeded&amp;nbsp;&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 0x0003FFFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Programming file E:\IDE\Freescale\Workspace\MK20D72M_Drivers\FLASH\MK20D72M_Drivers.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; Downloading Flash Device Driver ...&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Reading flash ID ...&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;Downloading 0x000001BC bytes to be programmed at 0x00000000&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Executing program ....&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Program Command Succeeded&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Downloading 0x00001DF0 bytes to be programmed at 0x00000800&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Executing program ....&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Program Command Succeeded&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cmdwin::fl::device -d "FTFL_DFlash32S1" -o "8Kx32x1" -a 0x10000000 0x10007fff&lt;/P&gt;&lt;P&gt;cmdwin::fl::image -f "E:\\IDE\\Freescale\\Workspace\\MK20D72M_Drivers\\FLASH\\MK20D72M_Drivers.elf" -t "Auto Detect" -re on -r 0x10000000 0x10007fff -oe off&lt;/P&gt;&lt;P&gt;cmdwin::fl::erase image&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;Erase Command Succeeded.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cmdwin::fl::write&lt;/P&gt;&lt;P&gt; Beginning Operation ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Using restricted address range 0x10000000 to 0x10007FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Programming file E:\IDE\Freescale\Workspace\MK20D72M_Drivers\FLASH\MK20D72M_Drivers.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; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2014 07:53:54 GMT</pubDate>
    <dc:creator>christeanm</dc:creator>
    <dc:date>2014-06-13T07:53:54Z</dc:date>
    <item>
      <title>Please help: flash to target results in 0 bytes programmed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Please-help-flash-to-target-results-in-0-bytes-programmed/m-p/315588#M921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm really stuck trying to flash my build into the MCU. I'm using CW 10.6 with the TWR-K20D72M and on-board OSBDM. Whichever way I use to flash the file to the target this is the result:&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;"0 Bytes Programmed, Check Restricted Address Range &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; Program Command Succeeded"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked at similar problems here in the community but nothing I do seems to make a difference.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way to at least have the MCU responding is to go into a debug session using the FLASH build. As long as I don't cycle power or push RESET the MCU runs the program properly. After that: nothing.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me and please let me know what information you need to help me solve this.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Christean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 14:03:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Please-help-flash-to-target-results-in-0-bytes-programmed/m-p/315588#M921</guid>
      <dc:creator>christeanm</dc:creator>
      <dc:date>2014-06-06T14:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Please help: flash to target results in 0 bytes programmed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Please-help-flash-to-target-results-in-0-bytes-programmed/m-p/315589#M922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Christean:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the status of your issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to perform a mass erase to your device. Go to Run -&amp;gt; Debug Configurations, select your OSJTAG connection and in "Target Settings" click on "Edit". Then in the window that appears mark the box for "Always mass erase on connect" (check the picture below). Then run the debugger with this connection. This should mass erase your device before programming. After that, try again with the flash programmer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Mass_erase.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44541i3ADDA0E6908E254A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Mass_erase.png" alt="Mass_erase.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&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, 12 Jun 2014 23:10:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Please-help-flash-to-target-results-in-0-bytes-programmed/m-p/315589#M922</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-06-12T23:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Please help: flash to target results in 0 bytes programmed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Please-help-flash-to-target-results-in-0-bytes-programmed/m-p/315590#M923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. My problem is as of yet unresolved. &lt;/P&gt;&lt;P&gt;I followed the steps you mentioned and made sure that "mass erase on connect" was marked. Unfortunately the result remains the same: "0 bytes programmed". See below for full console output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you require more information from me and what kind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Console output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fl::target -lc "LC for Simple Flash"&lt;/P&gt;&lt;P&gt;fl::target -b 0x20000000 0x8000&lt;/P&gt;&lt;P&gt;fl::target -v off -l off&lt;/P&gt;&lt;P&gt;cmdwin::fl::device -d "FTFL_PFlash256" -o "64Kx32x1" -a 0x0 0x3ffff&lt;/P&gt;&lt;P&gt;cmdwin::fl::image -f "E:\\IDE\\Freescale\\Workspace\\MK20D72M_Drivers\\FLASH\\MK20D72M_Drivers.elf" -t "Auto Detect" -re on -r 0x0 0x3ffff -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;Performing target initialization ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;failed on register write: ETF_FCR &lt;/P&gt;&lt;P&gt; Downloading Flash Device Driver ...&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Reading flash ID ...&lt;/P&gt;&lt;P&gt;Erasing Sector 0x00000000 to 0x000007FF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00000800 to 0x00000FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00001000 to 0x000017FF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00001800 to 0x00001FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Erasing Sector 0x00002000 to 0x000027FF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Erasing ...&lt;/P&gt;&lt;P&gt; Erase Command Succeeded&amp;nbsp;&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 0x0003FFFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Programming file E:\IDE\Freescale\Workspace\MK20D72M_Drivers\FLASH\MK20D72M_Drivers.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; Downloading Flash Device Driver ...&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Reading flash ID ...&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;Downloading 0x000001BC bytes to be programmed at 0x00000000&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Executing program ....&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Program Command Succeeded&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Downloading 0x00001DF0 bytes to be programmed at 0x00000800&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Executing program ....&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; Program Command Succeeded&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cmdwin::fl::device -d "FTFL_DFlash32S1" -o "8Kx32x1" -a 0x10000000 0x10007fff&lt;/P&gt;&lt;P&gt;cmdwin::fl::image -f "E:\\IDE\\Freescale\\Workspace\\MK20D72M_Drivers\\FLASH\\MK20D72M_Drivers.elf" -t "Auto Detect" -re on -r 0x10000000 0x10007fff -oe off&lt;/P&gt;&lt;P&gt;cmdwin::fl::erase image&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;Erase Command Succeeded.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cmdwin::fl::write&lt;/P&gt;&lt;P&gt; Beginning Operation ...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Using restricted address range 0x10000000 to 0x10007FFF&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Programming file E:\IDE\Freescale\Workspace\MK20D72M_Drivers\FLASH\MK20D72M_Drivers.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; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 07:53:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Please-help-flash-to-target-results-in-0-bytes-programmed/m-p/315590#M923</guid>
      <dc:creator>christeanm</dc:creator>
      <dc:date>2014-06-13T07:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Please help: flash to target results in 0 bytes programmed</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Please-help-flash-to-target-results-in-0-bytes-programmed/m-p/315591#M924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having the same problem.&lt;/P&gt;&lt;P&gt;Did you find a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Solved the problem: My default memeory sements were set to Internal_RAM, should of cause be _FLASH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 07:32:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Please-help-flash-to-target-results-in-0-bytes-programmed/m-p/315591#M924</guid>
      <dc:creator>nvedel</dc:creator>
      <dc:date>2014-08-11T07:32:59Z</dc:date>
    </item>
  </channel>
</rss>

