<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do you program and run from flash? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-program-and-run-from-flash/m-p/451748#M26817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely brilliant, this is exactly what I needed.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can provide any insight into another problem (that's what caused me to ask about "running"), I have another post here: &lt;A href="https://community.nxp.com/thread/353794"&gt;Why does calling a function in a particular implementation file cause GDB to no longer work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really, really strange debugger behavior that I just cannot explain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 20:50:16 GMT</pubDate>
    <dc:creator>dave408</dc:creator>
    <dc:date>2015-04-28T20:50:16Z</dc:date>
    <item>
      <title>How do you program and run from flash?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-program-and-run-from-flash/m-p/451745#M26814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been searching all over, and haven't found the information I need to program and run from flash.&amp;nbsp; Currently, I can test my code just fine in the debugger.&amp;nbsp; However, if I instead select Run As -&amp;gt; Run Configurations and then create a configuration, it doesn't run as I would like or expect (likely lack of eclipse experience here).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like to be able to do is to create a flash image in KDS that can then be loaded and execute when I reset my FRDM-K22F.&amp;nbsp; I have already read posts from Erich and others that indicates that I need to go to the project properties and "create flash image", like so:&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/49298i0D0047F4E57015A6/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;I have tried to program this file using the Run -&amp;gt; Flash from file option.&lt;/P&gt;&lt;P&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/49348i69D778E09B541943/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;But when I flash, if I leave the debugger features enabled, the GDB server just stops.&amp;nbsp; If I disable the debugger, then I just get this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49400i44CD23144BD31B11/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone point me to a document that explains running from flash and how it can be done?&amp;nbsp; I realize that I can change the output format to BIN and then load the mbed firmware and copy my file over, but that is not the process I want to use in the end product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 17:42:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-program-and-run-from-flash/m-p/451745#M26814</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-28T17:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do you program and run from flash?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-program-and-run-from-flash/m-p/451746#M26815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'Flash from File' is basically creating a debug/program session without the necessary project. Not sure why it fails for you, but I suspect that you misconfigured the launch/debug configuration for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for what you might be looking for:&lt;/P&gt;&lt;P&gt;"&lt;A href="http://mcuoneclipse.com/2014/10/04/emulating-eclipse-run-with-debug-configuration/" title="http://mcuoneclipse.com/2014/10/04/emulating-eclipse-run-with-debug-configuration/"&gt;Emulating Eclipse ‘Run’ with ‘Debug’ Configuration | MCU on Eclipse&lt;/A&gt;" describes how to emulate 'run as' for an embedded target with Eclipse Kepler (which is KDS too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you intend to do such things for automation or from command line, then have a look at this article too: "&lt;A href="http://mcuoneclipse.com/2015/03/25/command-line-programming-and-debugging-with-gdb/" title="http://mcuoneclipse.com/2015/03/25/command-line-programming-and-debugging-with-gdb/"&gt;Command Line Programming and Debugging with GDB | MCU on Eclipse&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>Tue, 28 Apr 2015 18:09:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-program-and-run-from-flash/m-p/451746#M26815</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-04-28T18:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do you program and run from flash?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-program-and-run-from-flash/m-p/451747#M26816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Erich, I will take a look now.&amp;nbsp; Regarding the debug configuration, I know that it works because it was originally the same config I had used to debug the program, which did work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There are two reasons why I am trying to do this right now: 1) because at some point I will need to be able to create production firmware, and 2) I'm having a problem where the debugger fails to start if I include any function calls in a particular object file, but that's the topic for an upcoming post here.&amp;nbsp; :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp; I'll mark your answer once I give your suggestions a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 18:51:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-program-and-run-from-flash/m-p/451747#M26816</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-28T18:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you program and run from flash?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-program-and-run-from-flash/m-p/451748#M26817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely brilliant, this is exactly what I needed.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can provide any insight into another problem (that's what caused me to ask about "running"), I have another post here: &lt;A href="https://community.nxp.com/thread/353794"&gt;Why does calling a function in a particular implementation file cause GDB to no longer work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really, really strange debugger behavior that I just cannot explain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 20:50:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-you-program-and-run-from-flash/m-p/451748#M26817</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-04-28T20:50:16Z</dc:date>
    </item>
  </channel>
</rss>

