<?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: [TWR-K60F120M] Going from Debug to Release / Writing to Flash in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/TWR-K60F120M-Going-from-Debug-to-Release-Writing-to-Flash/m-p/319989#M10216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved my problem. Actually, debugging the program copies it to the flash memory of the device such that it runs automatically when the device is powered on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What &lt;STRONG&gt;prevents&lt;/STRONG&gt; running the program outside of debug mode is when the BSP expects a debug connection to a PC (as in my case). Jorge from Freescale supported pointed me to this page: &lt;A _jive_internal="true" href="https://community.nxp.com/message/391746#391746"&gt;https://community.freescale.com/message/391746#391746&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this did not solve the problem for me, but it pointed me into the right direction. Solution: Replace the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define BSP_DEFAULT_IO_CHANNEL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "iodebug:"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in user_config.h with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define BSP_DEFAULT_IO_CHANNEL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ittyf:"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2014 07:04:43 GMT</pubDate>
    <dc:creator>michael_wahler</dc:creator>
    <dc:date>2014-07-24T07:04:43Z</dc:date>
    <item>
      <title>[TWR-K60F120M] Going from Debug to Release / Writing to Flash</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/TWR-K60F120M-Going-from-Debug-to-Release-Writing-to-Flash/m-p/319987#M10214</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 successfully followed the instructions for writing an application and executing it through the OSJTAG interface (CW 10.6, MQX 4.1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to write the application to flash memory such that it automatically starts when I power on the device. Is there any documentation on how to do this? I could not find anything...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second question: Do I need to rebuild BSP etc. in release mode in order to program the flash memory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 13:35:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/TWR-K60F120M-Going-from-Debug-to-Release-Writing-to-Flash/m-p/319987#M10214</guid>
      <dc:creator>michael_wahler</dc:creator>
      <dc:date>2014-07-14T13:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: [TWR-K60F120M] Going from Debug to Release / Writing to Flash</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/TWR-K60F120M-Going-from-Debug-to-Release-Writing-to-Flash/m-p/319988#M10215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;CodeWarrior development environment enables you to have multiple build configurations, called build targets. All projects in the Freescale MQX RTOS contain at least two build targets:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;• Debug target - Compiler optimizations are set low to enable easy debugging.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;• Release target - Compiler optimizations are set to maximum, to achieve the smallest code size and fast execution. The resulting code is very hard to debug. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;For example:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;For the TWR-K70, you can download your project into a DDR or SRAM, if you download a project to DDR you can run it after recycle the power no matter if it was build for debug or release. &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&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/45177i112D6806CDB608BA/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 style="margin-bottom: .0001pt;"&gt;I hope this clarifies!!!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 15:31:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/TWR-K60F120M-Going-from-Debug-to-Release-Writing-to-Flash/m-p/319988#M10215</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2014-07-22T15:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: [TWR-K60F120M] Going from Debug to Release / Writing to Flash</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/TWR-K60F120M-Going-from-Debug-to-Release-Writing-to-Flash/m-p/319989#M10216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved my problem. Actually, debugging the program copies it to the flash memory of the device such that it runs automatically when the device is powered on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What &lt;STRONG&gt;prevents&lt;/STRONG&gt; running the program outside of debug mode is when the BSP expects a debug connection to a PC (as in my case). Jorge from Freescale supported pointed me to this page: &lt;A _jive_internal="true" href="https://community.nxp.com/message/391746#391746"&gt;https://community.freescale.com/message/391746#391746&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this did not solve the problem for me, but it pointed me into the right direction. Solution: Replace the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define BSP_DEFAULT_IO_CHANNEL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "iodebug:"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in user_config.h with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define BSP_DEFAULT_IO_CHANNEL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ittyf:"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 07:04:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/TWR-K60F120M-Going-from-Debug-to-Release-Writing-to-Flash/m-p/319989#M10216</guid>
      <dc:creator>michael_wahler</dc:creator>
      <dc:date>2014-07-24T07:04:43Z</dc:date>
    </item>
  </channel>
</rss>

