<?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: Kinetis K40 Flash Programming Failed&amp;quot;</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246145#M6535</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;Have you tried with Freescale provided Kinetis 100MHz product example, you can download that example from below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K40_100&amp;amp;nodeId=01624698C9DE2DDDAB&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" onclick="" style="background-color: #ffffff; text-indent: 0px; color: #017bba;"&gt;KINETIS512_SC&lt;/A&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt; &lt;/SPAN&gt;&lt;IMG alt="" class="jiveImage" onmouseout="" onmouseover="" src="http://www.freescale.com/files/graphic/SECURITYINFOIMAGE.gif" style="background-color: #ffffff; text-indent: 0px; color: #51626f;" /&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt; :&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;Kinetis family example projects.&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;&lt;SPAN class="Apple-converted-space"&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K40_100&amp;amp;nodeId=01624698C9DE2DDDAB&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K40_100&amp;amp;nodeId=01624698C9DE2DDDAB&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;&lt;SPAN class="Apple-converted-space"&gt;You can modify the &amp;lt;vectors.h&amp;gt; line 293 CONFG_4 vaule :&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;&lt;SPAN class="Apple-converted-space"&gt;#define CONFIG_4 (pointer*)0xfffffffe&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;&lt;SPAN class="Apple-converted-space"&gt;That could make sure the FTFL_FSEC registe with unsecure setting.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;&lt;SPAN class="Apple-converted-space"&gt;You also could upload your used example code, I could help you to check the chip secure configuration.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;&lt;SPAN class="Apple-converted-space"&gt;Wish it helps.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2013 02:33:31 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2013-05-24T02:33:31Z</dc:date>
    <item>
      <title>Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246136#M6526</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;I am using Kinetis K40 Tower and Multilink Universal Debuuger to flash and debug the code in IAR. Unfortunately, I received the flashing error saying&amp;nbsp; "the flash loader program reported an error". Such flashing problem was not reported in past, It was working perfectly earlier. I tried Code Warrior to debug and flash the code but it says "Device Is secured". I have clicked YES in the pop up message to unsecure it but it failed and no code was downloaded. &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="line-height: 1.5em; font-size: 10pt;"&gt;In code warrior I have also tried to flash the code using the Flash Programmer&amp;nbsp; (Flash File to Target) and checked the option of Erase and Flash, somehow it completed &lt;/SPAN&gt;successfully. Now when I tried the IAR again to check the debugging It shows the different error in which the "Flash Programming pop up window's bar" is not progressing and got stuck in the beginning.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;I doubt that program loader in K40 gets corrupted due to&amp;nbsp; the option of erase and program the chip. I do not understand the cause of this fail in programming the flash. I request if anyone knows what has happened and how to rectify the situation. I would be grateful to you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;I have attached the screenshot of flashing error in IAR.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 May 2013 10:15:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246136#M6526</guid>
      <dc:creator>gagangarg</dc:creator>
      <dc:date>2013-05-18T10:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246137#M6527</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;If you are using the TWR-K40X256 board, the K40 project Flash target need select to use [FLASH_256KB_PFLASH_256KB_DFLASH]. Please check attached picture for more detailed info.&lt;/P&gt;&lt;P&gt;For in your description, " It was working perfectly earlier", I think the P&amp;amp;E USB Multilink Universal driver should installed and successfully.&lt;/P&gt;&lt;P&gt;You also could try IAR provided Flash operation tool, you can find them at menu [Project] -&amp;gt; [Download].&lt;/P&gt;&lt;P&gt;And please check your IAR software version, if possible, you could updated it to the latest version Rev.6.50&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 02:13:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246137#M6527</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-05-21T02:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246138#M6528</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;Very thanks for the support and time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried as you said by selecting &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;FLASH_256KB_PFLASH_256KB_DFLASH, but still it is not flashing the target. I am using IAR V6.5 and also tried&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; [Project] -&amp;gt; [Download] feature to program the flash, the process is hanged with the same error that is in "Programming the flash". It is not progressing and stuck in the beginning. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;P&amp;amp;E USB Multilink Universal&lt;/SPAN&gt; Debugger to program the Kinetis K40. The USB debugging port in TOWER is not working as the USB Connector is damaged. So, the only option I am left with is to debug using the &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;P&amp;amp;E USB Multilink Universal&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I request if you can debug the error cause and help. I would be highly grateful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gagan Garg &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 06:50:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246138#M6528</guid>
      <dc:creator>gagangarg</dc:creator>
      <dc:date>2013-05-21T06:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246139#M6529</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;I meet the problem with pop info "The flash loader program reported an error" when using P&amp;amp;E USB Multilink Universal tool debug with TWR-K40X256 board. More detailed info please check attached picture. While I could normally debug the [RAM_128KB] target project. Could you try to debug with [RAM_128KB] project and it works or not?&amp;nbsp; I need to check with IAR engineer about this issue. I will let you know when I could get any feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 05:28:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246139#M6529</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-05-22T05:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246140#M6530</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;Very thanks for the support and concern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Earlier I was getting error as "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The flash loader program reported an error&lt;/SPAN&gt;" when trying to Download &amp;amp; Debug in IAR using &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;P&amp;amp;E USB Multilink Universal tool with TWR-K40X256 board. At that stage the Code Warrior was giving the pop info as "Device is Secure, Click to Unsecure". I have selected it to Unsecure the target in CW pop info, but the process got failed at the end. Somehow the efforts which CW made to unsecure the target caused the IAR to Successfully&amp;nbsp; Download and Debug the Flash. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;But now I am facing the different error as "Programming the Flash" pop info is not progressing up in IAR with &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;FLASH_256KB_PFLASH_256KB_DFLASH&lt;/SPAN&gt; and also in Code Warrior the process is now getting hanged at the stage of&amp;nbsp; "Download Using 3rd Party Component". This type CW is not giving the error as "Device is Secure". It is trying and hang.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Please see the Console log message from the CW&amp;nbsp; when I tried to Flash the Target with Debug Configuration set to "INTERNAL_FLASH" at the end of this Message. I have attached the Debug Configuration Image and the hanged state of Code Warrior also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Yes, the code gets downloaded with [&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;RAM_128KB] configuration but I am not able to debug it properly and also it is not executing perfectly.&amp;nbsp; The SP and PC are pointing to a memory section which is reserved.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I am attaching the screenshot of the SP and PC state. Please have a look to it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I highly appreciate your time and support. Please if you can help me in getting out of this I would be grateful to you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks &amp;amp; regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Gagan Garg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CW Debug Configuration.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119363i79CC200C0428A52E/image-size/large?v=v2&amp;amp;px=999" role="button" title="CW Debug Configuration.jpg" alt="CW Debug Configuration.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Process Hanged up CW.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119364i9013606608D21939/image-size/large?v=v2&amp;amp;px=999" role="button" title="Process Hanged up CW.jpg" alt="Process Hanged up CW.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IAR RAM DEBUG SP and PC.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119365iB2F701AE752AF768/image-size/large?v=v2&amp;amp;px=999" role="button" title="IAR RAM DEBUG SP and PC.jpg" alt="IAR RAM DEBUG SP and PC.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Console Log Messages (CW):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;Executing Initialization File: F:\Work\k40_k20\KINETIS512_SC\k40-gpio/Project_Settings/Debugger/init_kinetis.tcl&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;radix x &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;thread break: Stopped, 0x0, 0x0, cpuARMLittle, k40-gpio.afx (state, tid, pid, cpu, target) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::eclipse::config hexprefix 0x &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::eclipse::config MemIdentifier p &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::eclipse::config MemWidth 32 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::eclipse::config MemAccess 32 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::eclipse::config MemSwap off &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DEMCR = 0x1000001 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_FUNCTION0 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_FUNCTION1 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_FUNCTION2 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_FUNCTION3 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg FP_COMP0 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg FP_COMP1 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg FP_COMP2 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg FP_COMP3 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg FP_COMP4 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg FP_COMP5 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_CTRL = 0x40000000 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_CYCCNT = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_CPICNT = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_EXCCNT = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_SLEEPCNT = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_LSUCNT = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_FOLDCNT = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_COMP0 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_COMP1 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_COMP2 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_COMP3 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_MASK0 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_MASK1 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_MASK2 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg DWT_MASK3 = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg ITM_LAR = 0xc5acce55 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg ITM_TER = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg ITM_TPR = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg ITM_TCR = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg ITM_LAR = 0x1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg ETF_FCR = 0x300 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg MCM_ETBCC = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg MCM_ETBRL = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg SCB_VTOR = 0x20000000 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10pt; font-family: 'Courier New'; color: black;"&gt;cmdwin::reg SP = 0x20007FF8 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 06:35:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246140#M6530</guid>
      <dc:creator>gagangarg</dc:creator>
      <dc:date>2013-05-22T06:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246141#M6531</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;I get the feedback from IAR engineer.&lt;/P&gt;&lt;P&gt;First, please check the General Options -&amp;gt; Target -&amp;gt; Device settings.&lt;/P&gt;&lt;P&gt;TWR-K40X256 board, please select * MK40DX256Zxxx10 product.&lt;/P&gt;&lt;P&gt;Then, &lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Disable Debugger -&amp;gt; Download -&amp;gt; Override default .board file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Please refer attached picture for detailed info.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;After that, I could use P&amp;amp;E USB Multilink tool to debug the Flash target project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;When you debug the SRAM target, the correct PC address should be 0x1FFF0410.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;I am quite doubt your TWR-K40X256 board status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Do you have another Kinetis tower board? If yes, Could you try with that board.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 07:48:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246141#M6531</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-05-22T07:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246142#M6532</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;I have done as per the configuration you said, but still it is not working properly. The program is downloaded on the RAM but executing unexpectedly. The SP is pointing in reserved memory section and the PC is &lt;SPAN style="font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;0x1FFF0410 only in the beginning. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think the processor is locked accidental and restricting in writing to Flash? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I don't have the other Tower kit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gagan&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 15px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 11:33:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246142#M6532</guid>
      <dc:creator>gagangarg</dc:creator>
      <dc:date>2013-05-22T11:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246143#M6533</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;I don't think the K60 chip is secured.&lt;/P&gt;&lt;P&gt;If the K60 chip is secured, the debugger tool access internal memory is disabled.&lt;/P&gt;&lt;P&gt;If the K60 is secured, you also could not debug the RAM target.&lt;/P&gt;&lt;P&gt;Thank you for the attention.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 02:10:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246143#M6533</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-05-23T02:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246144#M6534</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;Thanks for the response and guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I request If you can please help me in checking the Chip security and Flash Protection bits and what could be done to mass erase the chip or reset the chip to factory setting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your time and help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to hear from you soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 04:25:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246144#M6534</guid>
      <dc:creator>gagangarg</dc:creator>
      <dc:date>2013-05-23T04:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246145#M6535</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;Have you tried with Freescale provided Kinetis 100MHz product example, you can download that example from below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K40_100&amp;amp;nodeId=01624698C9DE2DDDAB&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" onclick="" style="background-color: #ffffff; text-indent: 0px; color: #017bba;"&gt;KINETIS512_SC&lt;/A&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt; &lt;/SPAN&gt;&lt;IMG alt="" class="jiveImage" onmouseout="" onmouseover="" src="http://www.freescale.com/files/graphic/SECURITYINFOIMAGE.gif" style="background-color: #ffffff; text-indent: 0px; color: #51626f;" /&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt; :&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;Kinetis family example projects.&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;&lt;SPAN class="Apple-converted-space"&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K40_100&amp;amp;nodeId=01624698C9DE2DDDAB&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K40_100&amp;amp;nodeId=01624698C9DE2DDDAB&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;&lt;SPAN class="Apple-converted-space"&gt;You can modify the &amp;lt;vectors.h&amp;gt; line 293 CONFG_4 vaule :&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;&lt;SPAN class="Apple-converted-space"&gt;#define CONFIG_4 (pointer*)0xfffffffe&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;&lt;SPAN class="Apple-converted-space"&gt;That could make sure the FTFL_FSEC registe with unsecure setting.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;&lt;SPAN class="Apple-converted-space"&gt;You also could upload your used example code, I could help you to check the chip secure configuration.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #51626f;"&gt;&lt;SPAN class="Apple-converted-space"&gt;Wish it helps.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 02:33:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246145#M6535</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-05-24T02:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246146#M6536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have downloaded the example codes from the site KINETIS512_SC. &lt;/P&gt;&lt;P&gt;The default value of CONFIG_4 in &amp;lt;vectors.h&amp;gt; is &lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;#define CONFIG_4 (pointer*)0xfffffffe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Can you tell me what value to be assigned to CONFIG_4 and what does it will done?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Gagan &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 04:23:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246146#M6536</guid>
      <dc:creator>gagangarg</dc:creator>
      <dc:date>2013-05-24T04:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246147#M6537</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;CONFIG_4 value (0xfffffffe) will be put to flash configuration filed, located at 0x40C to 0x40F.&lt;/P&gt;&lt;P&gt;The 0xFE value will be programed to 0x40C address, which will be loaded to FTFL_FSEC register after chip reset.&lt;/P&gt;&lt;P&gt;FTFL_FSEC value is 0xFE, [SEC] bits are 0b10, which means MCU security status is unsecure.&lt;/P&gt;&lt;P&gt;You can refer reference manual Flash Security Register (FTFL_FSEC) for more detailed info.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 05:19:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246147#M6537</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-05-24T05:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K40 Flash Programming Failed"</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246148#M6538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gagan garg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My custom application has the same issue that you reported here and I already tried to fix follow all orientations posted here but the issue continue happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked that K40 is not secured and I run the mass erase in CW. The code is loaded perfectly in my reference design of the Freescale but when I try to load the same code with the same IAR configurations and debugger PE Micro Multilink in my custom board the code keep "locked" in the crt0.s in debug mode running step by step (like your print screen of the crt0.s file that you attached here). The solution is not posted but did you solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hesane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 14:37:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K40-Flash-Programming-Failed-quot/m-p/246148#M6538</guid>
      <dc:creator>hesane</dc:creator>
      <dc:date>2015-11-19T14:37:12Z</dc:date>
    </item>
  </channel>
</rss>

