<?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>CodeWarrior for MCUのトピックRe: Infinite loop created by PE</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Infinite-loop-created-by-PE/m-p/184860#M6407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I buy that, but the problem is that it says not to modify the code where the infinite loop is.&amp;nbsp; Instead I'm instructed to modify code before the infinite loop, i.e. the startup code. So am I supposed to make my startup code into the main code to prevent ever getting to the generated for(;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2011 12:55:03 GMT</pubDate>
    <dc:creator>jpetersen</dc:creator>
    <dc:date>2011-12-01T12:55:03Z</dc:date>
    <item>
      <title>Infinite loop created by PE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Infinite-loop-created-by-PE/m-p/184858#M6405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why does Processor expert generate an infinite loop in an area that is controlled by the code generation tool?&lt;/P&gt;&lt;P&gt;I'm using MC9S08EL32CTL.&lt;/P&gt;&lt;P&gt;Below is the code it generates for the main function. Near the bottom is the forever loop it creates where it says DON'T MODIFY THIS CODE!! . If I comment this out and generate the code again, it gets replaced just as before.&amp;nbsp; I don't want an infinite loop here.&amp;nbsp; Why is PE doing this? Is there a setting I need to change?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; /* Write your local variable definition here */&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;BR /&gt;&amp;nbsp; PE_low_level_init();&lt;BR /&gt;&amp;nbsp; /*** End of Processor Expert internal initialization.&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; ***/&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; /* Write your code here */&lt;BR /&gt;&amp;nbsp; /* For example: for(;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt; { } */&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; /*** Don't write any code pass this line, or it will be deleted during code generation. ***/&lt;BR /&gt;&amp;nbsp; /*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/&lt;BR /&gt;&amp;nbsp; for(;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt;{}&lt;BR /&gt;&amp;nbsp; /*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/&lt;BR /&gt;} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 13:25:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Infinite-loop-created-by-PE/m-p/184858#M6405</guid>
      <dc:creator>jpetersen</dc:creator>
      <dc:date>2011-11-22T13:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite loop created by PE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Infinite-loop-created-by-PE/m-p/184859#M6406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In embedded systems, it is common that you do not leave mean (main() never returns).&lt;/P&gt;&lt;P&gt;As such, the startup code which initializes variables/etc is performed only once, enters main and does not expect to return.&lt;/P&gt;&lt;P&gt;Of course this is implementation defined, and this is the case for code here.&lt;/P&gt;&lt;P&gt;Processor Expert just adds the for(;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt; at the end to prevent that the function ever returns to the startup code.&lt;/P&gt;&lt;P&gt;If it would, the startup code would not be able to deal with this (unless you change the startup code).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 13:53:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Infinite-loop-created-by-PE/m-p/184859#M6406</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2011-11-22T13:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite loop created by PE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Infinite-loop-created-by-PE/m-p/184860#M6407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I buy that, but the problem is that it says not to modify the code where the infinite loop is.&amp;nbsp; Instead I'm instructed to modify code before the infinite loop, i.e. the startup code. So am I supposed to make my startup code into the main code to prevent ever getting to the generated for(;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 12:55:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Infinite-loop-created-by-PE/m-p/184860#M6407</guid>
      <dc:creator>jpetersen</dc:creator>
      <dc:date>2011-12-01T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Infinite loop created by PE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Infinite-loop-created-by-PE/m-p/184861#M6408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to my understanding you should add your code where ProcessorExpert onserted teh comment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;/* Write your code here */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 18:08:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Infinite-loop-created-by-PE/m-p/184861#M6408</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2011-12-05T18:08:11Z</dc:date>
    </item>
  </channel>
</rss>

