<?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 Automatic variables initialization [CW7.3 for 56F8xxxxx] in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Automatic-variables-initialization-CW7-3-for-56F8xxxxx/m-p/138360#M1109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier;"&gt;&lt;SPAN style="font-family: Verdana; font-size: 2;"&gt;I have developed an application for MC56F8346 hybrid controller with CW7.0 with no problem. Later I've updated to CW7.3 to handle a brand new USB-TAP OnCE emulator, and&lt;/SPAN&gt; &lt;SPAN style="font-family: Verdana; font-size: 2;"&gt;the application stopped working properly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier;"&gt;&lt;SPAN style="font-family: Verdana; font-size: 2;"&gt;Compiling it with CW7.0 everything works fine, while compiling *the same code* with CW7.3 it hangs... I&lt;/SPAN&gt; &lt;SPAN style="font-family: Verdana; font-size: 2;"&gt;found a different behaviour handling automatic variables. This code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;void dummy_function (void)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;{ unsigned char array[3]={0x00, 0x01, 0x02};&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;if (array[0]==0x00&amp;amp;&amp;amp;array[1]==0x01&amp;amp;&amp;amp;array[2]==0x02)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;printf("\nOk!");&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;else&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;printf("\nArray not init");&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;return;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;returns "Ok" if compiled with rel 7.0, and "Array not init" with rel 7.3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;Is this a bug? Someone reported a similar problem in thread "Defining a temporary array on stack". Quite funny!&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jun 2006 13:47:56 GMT</pubDate>
    <dc:creator>Eugenio</dc:creator>
    <dc:date>2006-06-06T13:47:56Z</dc:date>
    <item>
      <title>Automatic variables initialization [CW7.3 for 56F8xxxxx]</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Automatic-variables-initialization-CW7-3-for-56F8xxxxx/m-p/138360#M1109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier;"&gt;&lt;SPAN style="font-family: Verdana; font-size: 2;"&gt;I have developed an application for MC56F8346 hybrid controller with CW7.0 with no problem. Later I've updated to CW7.3 to handle a brand new USB-TAP OnCE emulator, and&lt;/SPAN&gt; &lt;SPAN style="font-family: Verdana; font-size: 2;"&gt;the application stopped working properly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier;"&gt;&lt;SPAN style="font-family: Verdana; font-size: 2;"&gt;Compiling it with CW7.0 everything works fine, while compiling *the same code* with CW7.3 it hangs... I&lt;/SPAN&gt; &lt;SPAN style="font-family: Verdana; font-size: 2;"&gt;found a different behaviour handling automatic variables. This code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;void dummy_function (void)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;{ unsigned char array[3]={0x00, 0x01, 0x02};&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;if (array[0]==0x00&amp;amp;&amp;amp;array[1]==0x01&amp;amp;&amp;amp;array[2]==0x02)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;printf("\nOk!");&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;else&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;printf("\nArray not init");&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;&lt;EM&gt;return;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;returns "Ok" if compiled with rel 7.0, and "Array not init" with rel 7.3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: 'Courier New';"&gt;Is this a bug? Someone reported a similar problem in thread "Defining a temporary array on stack". Quite funny!&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2006 13:47:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Automatic-variables-initialization-CW7-3-for-56F8xxxxx/m-p/138360#M1109</guid>
      <dc:creator>Eugenio</dc:creator>
      <dc:date>2006-06-06T13:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic variables initialization [CW7.3 for 56F8xxxxx]</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Automatic-variables-initialization-CW7-3-for-56F8xxxxx/m-p/138361#M1110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I shortly checked the "Defining a temporary array on stack" thread and found that this has definitely nothing to do with your issue. This thread was about the HC12 and yours is about the 56F8xxxxx. Both compilers are from Freescale, but they have a completely separate history, so I can really exclude any relations between the two issues.&lt;BR /&gt;I also had the chance to day (I dont have a 56F8xxxxx installation on my PC) to compile your snippet on a upcoming CW 8.0 candidate and it worked fine, both with and without optimizations.&lt;BR /&gt;I would think it best to issue a service request just as &lt;BR /&gt;CrasyCat suggested on the other thread.&lt;BR /&gt;&lt;BR /&gt;Copied from this thread:&lt;BR /&gt;&amp;gt;Use following URL:&lt;BR /&gt;&amp;gt;http://www.freescale.com/webapp/sps/site/homepage.jsp?nodeId=054670&amp;amp;tid=FSH&lt;BR /&gt;&amp;gt;then click on "Submit a service Request".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Make sure you attach a reproducible case and indicate which&lt;BR /&gt;&amp;gt;version of the tools you are using and which compiler options&lt;BR /&gt;&amp;gt;you are using.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 03:23:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Automatic-variables-initialization-CW7-3-for-56F8xxxxx/m-p/138361#M1110</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-06-09T03:23:54Z</dc:date>
    </item>
  </channel>
</rss>

