<?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: My code in main() gets deleted by „Clean Project“ in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/My-code-in-main-gets-deleted-by-Clean-Project/m-p/392306#M1187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution by placing the code at the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Write your code here */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The comments in the generated main.c are misleading. The line should have the comment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Write your code only here */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2015 08:28:35 GMT</pubDate>
    <dc:creator>rolffreitag</dc:creator>
    <dc:date>2015-07-08T08:28:35Z</dc:date>
    <item>
      <title>My code in main() gets deleted by „Clean Project“</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/My-code-in-main-gets-deleted-by-Clean-Project/m-p/392305#M1186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Source Code Pro Semibold';"&gt;I created a project following the example at &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.element14.com%2Fcommunity%2Fcommunity%2Fdesigncenter%2Fkinetis_kl2_freedom_board%2Fblog%2F2014%2F09%2F22%2Ffrdm-k64f-kinetis-design-studio-kds-software-dev-kit-sdk-processor-expert-pe-tutorial-toggling-an-rgb-led-with-processor-expert" rel="nofollow" target="_blank"&gt;http://www.element14.com/community/community/designcenter/kinetis_kl2_freedom_board/blog/2014/09/22/frdm-k64f-kinetis-design-studio-kds-software-dev-kit-sdk-processor-expert-pe-tutorial-toggling-an-rgb-led-with-processor-expert&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Source Code Pro Semibold';"&gt;for the board twrk60d100.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But a &lt;SPAN class="postbody"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Source Code Pro Semibold'; color: black;"&gt;„Clean Project“ always deletes my code in main(), with the error message „End of main routine was updated in main module. (in the module main.c)“.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can reproduce this under 32 and 64 bit Windows 7.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="postbody"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Source Code Pro Semibold'; color: black;"&gt;The code is added at the for(;;)-loop, between the lines&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="postbody"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Source Code Pro Semibold'; color: black;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f;"&gt;/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Source Code Pro Semibold';"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f;"&gt;/*** Processor Expert end of main routine. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f;"&gt;DON'T WRITE CODE BELOW!!! ***/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="postbody"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Source Code Pro Semibold'; color: black;"&gt;So my code is where modified code should be.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="postbody"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Source Code Pro Semibold'; color: black;"&gt;How can i stop KDS from deleting my code&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Source Code Pro Semibold';"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 08:15:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/My-code-in-main-gets-deleted-by-Clean-Project/m-p/392305#M1186</guid>
      <dc:creator>rolffreitag</dc:creator>
      <dc:date>2015-07-08T08:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: My code in main() gets deleted by „Clean Project“</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/My-code-in-main-gets-deleted-by-Clean-Project/m-p/392306#M1187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution by placing the code at the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Write your code here */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The comments in the generated main.c are misleading. The line should have the comment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Write your code only here */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 08:28:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/My-code-in-main-gets-deleted-by-Clean-Project/m-p/392306#M1187</guid>
      <dc:creator>rolffreitag</dc:creator>
      <dc:date>2015-07-08T08:28:35Z</dc:date>
    </item>
  </channel>
</rss>

