<?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: How to start executing program on K64F right after power on</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446067#M26331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;the far most easiest way is to use Processor Expert: here you can easily disable the EzPort:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55843iB5431B90CB680DF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Sep 2015 18:26:04 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2015-09-13T18:26:04Z</dc:date>
    <item>
      <title>How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446063#M26327</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 am using a FRDM-K64F board in a project, and I am facing a problem. I want my board to start executing the program already flashed into the Targer CPU (K64) right after I power on the board. However, the program only starts after I press the RESET button. I am powering the board through a smartphone charger with micro USB plug, and I have tried both USB connectors (SDA and MCU). When I power the board with the SDA USB connector, I need to use RESET button, and when I power it with the K64 USB connector, not even RESET works. Also, I tried both Segger OpenSDA2 and mbed apps loaded on the OpenSDA controller, and results do not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use one of the 2 USB connectors to power the board; I do not want to use the 3V3 or 5-9V power input pins on J3. My question is: should I cut some jumper trace, and solder jumper pins? Maybe change some of the already installed jumper setting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2015 14:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446063#M26327</guid>
      <dc:creator>quevedo</dc:creator>
      <dc:date>2015-09-13T14:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446064#M26328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue that you are having is due to the NMI line on the FRDM-K64F. There is quite a large capacitor connected to it so the input is held low for some time after powering on the board, which causes the processor to start in EzPort mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be avoided by configuring the device to disable EzPort and also default the input to GPIO (rather than NMI, which would then also require a default NMI handler to be installed in Flash).&lt;/P&gt;&lt;P&gt;This means that you need to correctly configure the non-volatile option in the Flash configuration area (byte at address 0x40b).&lt;/P&gt;&lt;P&gt;The following is the standard setting for the FRDM-K64F in the uTasker project which allows problem-free power-up operation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define KINETIS_FLASH_CONFIGURATION_NONVOL_OPTION&amp;nbsp; (FTFL_FOPT_EZPORT_DISABLED | FTFL_FOPT_LPBOOT_NORMAL | FTFL_FOPT_NMI_DISABLED) // there is a large capacitor on the NMI/EzP_CS input so these are disabled to allow it to start without requiring an NMI handler or moving to EzPort mode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;P.S. It may look strange that I have answered 'after' you have already sorted the issue out but I did post it earlier but my contributions are moderated by Freescale and so at the weekend they can get delayed quite a bit. Possibly the moderator could delete this one and explain how I could possibly get off the moderation list....? If not, please remove the INBOX watch and add the EMAIL watch each time it is approved since the INBOX watch is very annoying.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;K64: &lt;A href="http://www.utasker.com/kinetis/FRDM-K64F.html" title="http://www.utasker.com/kinetis/FRDM-K64F.html"&gt;µTasker Kinetis FRDM-K64F support&lt;/A&gt;&amp;nbsp; / &lt;A href="http://www.utasker.com/kinetis/TWR-K64F120M.html" title="http://www.utasker.com/kinetis/TWR-K64F120M.html"&gt;µTasker Kinetis TWR-K64F120M support&lt;/A&gt;&amp;nbsp; / &lt;A href="http://www.utasker.com/kinetis/TWR-K65F180M.html" title="http://www.utasker.com/kinetis/TWR-K65F180M.html"&gt;µTasker Kinetis TWR-K65F180M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2015 14:36:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446064#M26328</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-09-13T14:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446065#M26329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;I think you see the problem related to the NMI pin, related to the EzPort.&lt;/P&gt;&lt;P&gt;The issue has been discussed (with the solution) in details here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/332195"&gt;FRDM-K64F booting issue when powered from USB port&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2015 15:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446065#M26329</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-09-13T15:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446066#M26330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your prompt reply. i have read the other post about NMI issues, and I intend to write a small program to clear &lt;SPAN style="font-family: Arial, sans-serif;"&gt;EZPORT_DIS bit at FOPT Flash register, so I do no have to make any hardware changes. If that does not work, I will simply remove C55, which is much easier than placing R75.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif;"&gt;Now, my question is: is there any post where I can find a step-by-step sequence to write the FOPT register, preferrably using KDS 3.0?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif;"&gt;Thanks again,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2015 18:05:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446066#M26330</guid>
      <dc:creator>quevedo</dc:creator>
      <dc:date>2015-09-13T18:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446067#M26331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;the far most easiest way is to use Processor Expert: here you can easily disable the EzPort:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55843iB5431B90CB680DF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2015 18:26:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446067#M26331</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-09-13T18:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446068#M26332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! That just did the job!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2015 18:42:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446068#M26332</guid>
      <dc:creator>quevedo</dc:creator>
      <dc:date>2015-09-13T18:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446069#M26333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the issue is the links in your signature.&lt;/P&gt;&lt;P&gt;Messages without links post without moderation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Mark Butcher:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: inherit; line-height: 1.5;"&gt;I did post it earlier but my contributions are moderated by Freescale and so at the weekend they can get delayed quite a bit. Possibly the moderator could delete this one and explain how I could possibly get off the moderation list....? &lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 12:22:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446069#M26333</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2015-09-14T12:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446070#M26334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - that is what is happening.&lt;/P&gt;&lt;P&gt;I am having some delayed by a day - also in the week - so will avoid external links whenever possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 22:34:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446070#M26334</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-09-14T22:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446071#M26335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having the same problem with the NMI/EZP_CS pin, when the equipment starts it gets stuck depending on the state of the pin. However, I am not using the FRDM_K64F. I built a prototype on top of the K64F design, and the NMI/EZP_CS pin was supposed to be used as an interruption. There is also a very important differentiation on my project. It has separated regions for bootloader and application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the memory region for application:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57927iA97BCDDF3949182D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the memory region for the bootloader&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57933i0ED558814ADD305A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use the solution sugested on &lt;A href="https://community.nxp.com/thread/332195"&gt;FRDM-K64F booting issue when powered from USB port&lt;/A&gt; on both bootloader and application, but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57920i6145F25DFC2CA487/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I just checked the binary file generated by the KDS, and it is clear that the Flash_Config region has the configuration set. But its seems like something is cleaning the configuration or the processor is reading the wrong memory space. When I verify on Debugging the value of the FOPT register saved on memory it is still FF.&lt;/P&gt;&lt;P&gt;I also tried to generate the PE code and use it on the code. It also failed.&lt;/P&gt;&lt;P&gt;Is there any thing else I can try?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 20:35:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446071#M26335</guid>
      <dc:creator>leonardobueno</dc:creator>
      <dc:date>2015-09-23T20:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446072#M26336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beware that your boot loader code dictates the behavior and not the values you have in your application.&lt;/P&gt;&lt;P&gt;Your application can completely remove its m_flash_config region since it has no affect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is best to read back the values from flash (0x400..0x40f) rather than look in the binary file. This is what is "really" in the Flash after programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis.html" rel="nofollow"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;K64: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-K64F.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K64F120M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K64F120M.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K65F180M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K65F180M.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 21:12:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446072#M26336</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-09-23T21:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446073#M26337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I did verified the value of the register when debugging. This value is the actual saved on flash, I suppose. As show bellow, the FOPT register is written with 0xFF. I can also check FSEC, and it is what it was supposed to be (0xFE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57407i573311EDF76837AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57452i9438BF234930F81E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 12:05:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446073#M26337</guid>
      <dc:creator>leonardobueno</dc:creator>
      <dc:date>2015-09-24T12:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446074#M26338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What values do you see in Flash at 0x400?&lt;/P&gt;&lt;P&gt;This is what I read from my FRDM-K64F, when configured to disable EzPort and NMI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0x00000400 &lt;/TD&gt;&lt;TD&gt;&lt;P&gt;00 00 00 00 00 00 00 00 ff ff ff ff &lt;STRONG&gt;be 01&lt;/STRONG&gt; ff ff&amp;nbsp; ................&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I read FOPT and FSEC registers they are the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0x40020002 &lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;be 01&lt;/STRONG&gt;&amp;nbsp; ..&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis.html" rel="nofollow"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;K64: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-K64F.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K64F120M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K64F120M.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K65F180M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K65F180M.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 12:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446074#M26338</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-09-24T12:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446075#M26339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what is written on the memory location 0x400:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57382i8D11D802956FB5F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was supposed to be FFFFFFFF FFFFFFFF FFFFFFFF FFFFF&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/SPAN&gt;FE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 12:44:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446075#M26339</guid>
      <dc:creator>leonardobueno</dc:creator>
      <dc:date>2015-09-24T12:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446076#M26340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to flash the bootloader, the console gives me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warn : Any changes to flash configuration field will not take effect until next reset&lt;/P&gt;&lt;P&gt;Warn : Requested write to flash configuration field 0xffffffff 0xffffffff 0xffffffff 0xfffffdfe transformed to 0xffffffff 0xffffffff 0xffffffff 0xfffffffe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is making it act like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 13:03:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446076#M26340</guid>
      <dc:creator>leonardobueno</dc:creator>
      <dc:date>2015-09-24T13:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446077#M26341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is an issue (or setting) with your debugger.&lt;/P&gt;&lt;P&gt;You will have to contact the manufacturer to find out why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load using the OpenSDA's drag-and-drop function, which doesn't restrict the flash configuration programming..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis.html" rel="nofollow"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;K64: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-K64F.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K64F120M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K64F120M.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K65F180M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K65F180M.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 13:36:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446077#M26341</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-09-24T13:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446078#M26342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the drag and drop function of the OenOCD Debugger. Now I see the memory location 0x400 was modified for the desired value, but... I still doens´t work. The uC still blocks on reset depending on the state of the pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 19:50:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446078#M26342</guid>
      <dc:creator>leonardobueno</dc:creator>
      <dc:date>2015-09-24T19:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446079#M26343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are setting 0xfd as the FOPT value - this means that you have disabled EzPort mode but not NMI pin operation.&lt;/P&gt;&lt;P&gt;If the pin is '0' at reset it will &lt;EM&gt;immediately&lt;/EM&gt; jump to the NMI handler.&lt;/P&gt;&lt;P&gt;If you have no handler it will&lt;SPAN style="text-decoration: underline;"&gt; immediately fail&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From user's manual:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57517iB3824AE303FF8E8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, if you need to use the NMI as interrupt input (in which case your setting would be OK) you &lt;STRONG&gt;MUST&lt;/STRONG&gt; install an NMI handler in the vector table in Flash. This handler &lt;EM&gt;WILL&lt;/EM&gt; immediately be called and it must clear the interrupt and then it can return and let the start-up procedure continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't need NMI operation later you can disable it by writing the FOPT to 0x01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you search the forum you will find other discussions of handling the NMI at reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis.html" rel="nofollow"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;K64: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-K64F.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K64F120M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K64F120M.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/TWR-K65F180M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/TWR-K65F180M.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 21:53:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446079#M26343</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-09-24T21:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to start executing program on K64F right after power on</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446080#M26344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As shown bellow, I did what you said and saved 0xF9 on the FOPT Register instead of 0xFD. This way, both the NMI and the EZPort are disabled. It worked wonderfully. Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57561i5EABA2EA302A37C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo Bueno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 14:35:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-start-executing-program-on-K64F-right-after-power-on/m-p/446080#M26344</guid>
      <dc:creator>leonardobueno</dc:creator>
      <dc:date>2015-09-25T14:35:29Z</dc:date>
    </item>
  </channel>
</rss>

