<?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のトピックRe: Failing download to target</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243457#M6136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Hi &lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Clovis,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Please kindly refer to the following for details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;- Where is located the program when Running or Debugging a program : is it sent instruction-per-instruction to the target ? or all goes in RAM even with the Flash build ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;If you use the Flash configuration, the program image is downloaded into the internal flash, otherwise SRAM configuration downloads the progam into the system RAM. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; - By downloading the wrong file what could be the cause of my problem ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;There are a bit located in 0x40c(FSEC) controls the mass erase enablement, and Program flash protection bytes locate from 0x408 to 0x40B, so if the mass erase is disabled or some place in the flash is protected by the wrongly downloaded image, the mass erase would fail anyway. You may use Jlink to peroform the "unsecure".command to remove the above status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Hope that helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;B.R&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Kan&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jan 2014 07:48:23 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2014-01-21T07:48:23Z</dc:date>
    <item>
      <title>Failing download to target</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243454#M6133</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 recently acquired a TWR-K70F120M. I'm using Code Warrior Development Studio for MCU&amp;nbsp; v10.5 Special Edition.&lt;/P&gt;&lt;P&gt;Everything worked well with the Debug and Run options.&lt;/P&gt;&lt;P&gt;But when I manually reset the TWR, the program was no longer executed. So I tried to flash the program (bareboar project, no MQX, just the counter incrementation default code).&lt;/P&gt;&lt;P&gt;I specified the wrong file to flash on the target (the .project xml file). Since that moment, neither the Debug, Run, and Flash Program works (by specifying the right flash .elf file)&lt;/P&gt;&lt;P&gt;I already tried on another computer, with another CodeWarrior install, also tried to mass erase the target.&lt;/P&gt;&lt;P&gt;The error I get when trying to Flash Program is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Downloading 0x000001E8 bytes to be programmed at 0x00000000&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Executing program .... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Error:&amp;nbsp; Program failed.&amp;nbsp;&amp;nbsp; Flash driver reports the following error(s): The flash device algorithm was interrupted during execution. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Please check if the flash base address is correct or if there are any flash devices mapped inside the selected memory space. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;If a custom target initialization file was used then check the following parameters: flash base address, flash bank size and flash &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; bank port size. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Please enable Verify Target Memory Writes in Target Configuration to check that the algorithm downloads correctly. If you are down &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;loading the algorithm to DDR try checking your DDR configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the Debugger Shell I'm able to read the Flash (using the &lt;SPAN style="font-family: courier new,courier;"&gt;display&lt;/SPAN&gt; command) and the xml file is still there.&lt;/P&gt;&lt;P&gt;When trying to read registers one by one (&lt;SPAN style="font-family: courier new,courier;"&gt;reg&lt;/SPAN&gt; command), the target disconnects itself.&lt;/P&gt;&lt;P&gt;A &lt;SPAN style="font-family: courier new,courier;"&gt;fl::blanckcheck&lt;/SPAN&gt; command leads to an &lt;SPAN style="font-family: courier new,courier;"&gt;&amp;lt;internal error&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;I would like to know :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Where is located the program when Running or Debugging a program : is it sent instruction-per-instruction to the target ? or all goes in RAM even with the Flash build ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - By downloading the wrong file what could be the cause of my problem ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Best Regards, Clovis&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 09:22:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243454#M6133</guid>
      <dc:creator>_clovis</dc:creator>
      <dc:date>2014-01-19T09:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Failing download to target</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243455#M6134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clovis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check if you are using the [Flash] target project?&lt;/P&gt;&lt;P&gt;Please check below picture for detailed info.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="project.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42189i27E8EC76A9225D5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="project.jpg" alt="project.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;best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 02:00:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243455#M6134</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-01-21T02:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Failing download to target</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243456#M6135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I'm using the Flash target&lt;/P&gt;&lt;P&gt;Is there any chance that the corrupted code (which is still in Flash) initializes the registers so that the target become unprogrammable ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Clovis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 06:38:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243456#M6135</guid>
      <dc:creator>_clovis</dc:creator>
      <dc:date>2014-01-21T06:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Failing download to target</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243457#M6136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Hi &lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Clovis,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Please kindly refer to the following for details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;- Where is located the program when Running or Debugging a program : is it sent instruction-per-instruction to the target ? or all goes in RAM even with the Flash build ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;If you use the Flash configuration, the program image is downloaded into the internal flash, otherwise SRAM configuration downloads the progam into the system RAM. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; - By downloading the wrong file what could be the cause of my problem ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;There are a bit located in 0x40c(FSEC) controls the mass erase enablement, and Program flash protection bytes locate from 0x408 to 0x40B, so if the mass erase is disabled or some place in the flash is protected by the wrongly downloaded image, the mass erase would fail anyway. You may use Jlink to peroform the "unsecure".command to remove the above status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Hope that helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;B.R&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Kan&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 07:48:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243457#M6136</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-01-21T07:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Failing download to target</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243458#M6137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It need to check the Flash address 0x40C if set Chip in secured status. That could affect the JTAG to access the MCU.&lt;/P&gt;&lt;P&gt;More detailed info, I would recommend customer to check AN4507:&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4507.pdf" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4507.pdf"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4507.pdf&lt;/A&gt;&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>Tue, 21 Jan 2014 08:38:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243458#M6137</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-01-21T08:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Failing download to target</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243459#M6138</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;regarding the security registers, everything is OK :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FPROT registers are at 0xFF (unprotected)&lt;/P&gt;&lt;P&gt;FSEC&amp;nbsp; is 0xFE (backdoor disabled, mass erase enabled, failure analysis granted, flash secure disabled)&lt;/P&gt;&lt;P&gt;no errors neither on FSTAT register&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, clovis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 17:56:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243459#M6138</guid>
      <dc:creator>_clovis</dc:creator>
      <dc:date>2014-01-23T17:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Failing download to target</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243460#M6139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clovis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have Segger J-Link tool? If yes, you could try to download Segger J-Link Commander software from below link and enter "unlock Kinetis" commander to mass erase the chip .&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.segger.com/jlink-software.html" title="http://www.segger.com/jlink-software.html"&gt;SEGGER Microcontroller - Embedded Software Solutions - Download&lt;/A&gt;&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>Fri, 24 Jan 2014 02:49:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243460#M6139</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-01-24T02:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Failing download to target</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243461#M6140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;I misunderstood the registers : indeed, memory was write-protected&lt;/P&gt;&lt;P&gt;so I bought a J-link and succeeded to unlock !&lt;/P&gt;&lt;P&gt;Too bad that the embedded OSJTAG couldn't perform the unlock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 21:37:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Failing-download-to-target/m-p/243461#M6140</guid>
      <dc:creator>_clovis</dc:creator>
      <dc:date>2014-02-25T21:37:24Z</dc:date>
    </item>
  </channel>
</rss>

