<?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: S12 CW11 internal compiler error - report to cw_bug@freescale.com</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820973#M14835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="202909" data-username="StefanoGattazzo" href="https://community.nxp.com/people/StefanoGattazzo"&gt;Stefano Gattazzo&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Could you please tell me the chip number , also share a project that I can reproduce the error on my side,&lt;/P&gt;&lt;P&gt;then if it is really a bug , I will report it to CW development team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Mon, 06 Aug 2018 09:52:22 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2018-08-06T09:52:22Z</dc:date>
    <item>
      <title>S12 CW11 internal compiler error - report to cw_bug@freescale.com</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820972#M14834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;see below what my customer wrote:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I get the following compiler error&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;EM&gt;..\BSW\KERNEL\MCAL_S12x\mcu\Mcu.c:211: internal compiler error (report to&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;EM&gt;&lt;SPAN&gt;..\BSW\KERNEL\MCAL_S12x\mcu\Mcu.c:211: &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:cw_bug@freescale.com"&gt;cw_bug@freescale.com&lt;/A&gt;&lt;SPAN&gt;&amp;gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;EM&gt;..\BSW\KERNEL\MCAL_S12x\mcu\Mcu.c:211: while executing in file 'Coloring.c'&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;EM&gt;..\BSW\KERNEL\MCAL_S12x\mcu\Mcu.c:211: line: 698&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;EM&gt;..\BSW\KERNEL\MCAL_S12x\mcu\Mcu.c:211: (compiling 'Mcu_InitClock' in 'Mcu.c')&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Trying to compile the attached function (mcu.c) for the S12 target.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I’m using the following compiler version (mwccs12lisa):&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;EM&gt;CodeWarrior C/C++ for S12/L-ISA.&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;EM&gt;Copyright (c) 2017, Freescale Semiconductor, Inc&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;EM&gt;All rights reserved.&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;EM&gt;Version 5.0.44 (build 17292)&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;EM&gt;Runtime Built: Oct 20 2017 21:44:00&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Using the options in the attached file Compiler.opt.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Any indication from your side about the cause of the error, and a possible workaround or fix, would be very welcome.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;This issue is quite urgent for our development.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Thanks and BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 08:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820972#M14834</guid>
      <dc:creator>StefanoGattazzo</dc:creator>
      <dc:date>2018-08-06T08:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: S12 CW11 internal compiler error - report to cw_bug@freescale.com</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820973#M14835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="202909" data-username="StefanoGattazzo" href="https://community.nxp.com/people/StefanoGattazzo"&gt;Stefano Gattazzo&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Could you please tell me the chip number , also share a project that I can reproduce the error on my side,&lt;/P&gt;&lt;P&gt;then if it is really a bug , I will report it to CW development team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Mon, 06 Aug 2018 09:52:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820973#M14835</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-08-06T09:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: S12 CW11 internal compiler error - report to cw_bug@freescale.com</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820974#M14836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;The device is MC9S12VML12SVBLIN (mounted on evaluation board).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Attached a bareboard project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Stefano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 12:29:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820974#M14836</guid>
      <dc:creator>StefanoGattazzo</dc:creator>
      <dc:date>2018-08-06T12:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: S12 CW11 internal compiler error - report to cw_bug@freescale.com</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820975#M14837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefano&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you didn't workaround it, it seems compiler is having problem with these quite similar lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; u8CpmuRefDivReg = ( u8RefFrq &amp;lt;&amp;lt; 6 ) | ( u8RefDiv &amp;amp; 0x0FU );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; u8CpmuSynrReg = ( u8VcoFrq &amp;lt;&amp;lt; 6U ) | ( u8SynDiv &amp;amp; 0x3FU );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Splitting them into simpler expressions&amp;nbsp;makes compiler happy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; u8CpmuRefDivReg = ( u8RefFrq &amp;lt;&amp;lt; 6 );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; u8CpmuRefDivReg&amp;nbsp;|= ( u8RefDiv &amp;amp; 0x0FU );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u8CpmuSynrReg = ( u8VcoFrq &amp;lt;&amp;lt; 6U );&lt;/P&gt;&lt;P&gt;u8CpmuSynrReg |= ( u8SynDiv &amp;amp; 0x3FU );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 12:51:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820975#M14837</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2018-08-06T12:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: S12 CW11 internal compiler error - report to cw_bug@freescale.com</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820976#M14838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/StefanoGattazzo"&gt;StefanoGattazzo&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checked with our compiler experts, this is their assessment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P style="color: #172b4d; background-color: #ffffff;"&gt;There's an error your program, which by definition of the C language standard, would cause undefined behavior of the compiler. Typically, undefined behavior would mean undefined at runtime, but the compiler protected the user against unpredictable runtime behavior by just exiting with an internal error.&lt;/P&gt;&lt;BLOCKQUOTE style="color: #333333; background-color: #ffffff; border-left: 1px solid #dfe1e6; margin: 10px 0px 0px 19px; padding: 10px 20px;"&gt;&lt;P&gt;Std_ReturnType Mcu_InitClock( void )&lt;BR /&gt;{&lt;BR /&gt;uint16 u16FRef, u16FVco;&lt;BR /&gt;uint8 u8SynDiv, u8RefFrq, u8VcoFrq, u8RefDiv;&lt;BR /&gt;uint8 u8Tmp, u8CpmuRefDivReg, u8CpmuSynrReg;&lt;BR /&gt;boolean bFound;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #172b4d; background-color: #ffffff; margin: 10px 0px 0px;"&gt;Mcu_InitClock is declared and defined with return type Std_ReturnType.&lt;BR /&gt;The function does not return a value:&lt;/P&gt;&lt;BLOCKQUOTE style="color: #333333; background-color: #ffffff; border-left: 1px solid #dfe1e6; margin: 10px 0px 0px 19px; padding: 10px 20px;"&gt;&lt;P&gt;CPMUHTCTL = 0x00U;&lt;/P&gt;&lt;P style="margin: 10px 0px 0px;"&gt;CPMUVREGCTL = 0x01U;&lt;BR /&gt;// #endif&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #172b4d; background-color: #ffffff; margin: 10px 0px 0px;"&gt;This is an error in the program.&lt;/P&gt;&lt;P style="color: #172b4d; background-color: #ffffff; margin: 10px 0px 0px;"&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P style="color: #172b4d; background-color: #ffffff; margin: 10px 0px 0px;"&gt;&lt;/P&gt;&lt;P style="color: #172b4d; background-color: #ffffff; margin: 10px 0px 0px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #172b4d; background-color: #ffffff; margin: 10px 0px 0px;"&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 19:56:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820976#M14838</guid>
      <dc:creator>mikedoidge</dc:creator>
      <dc:date>2020-05-07T19:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: S12 CW11 internal compiler error - report to cw_bug@freescale.com</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820977#M14839</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;Wow. I believe decent compilers&amp;nbsp;just emit warning or error message clearly stating that return statement is missing.&lt;/P&gt;&lt;P&gt;BTW error message clearly stated ir is an internal compiler error and asks to&amp;nbsp;report about it to specified email address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2020 19:49:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/820977#M14839</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2020-05-10T19:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: S12 CW11 internal compiler error - report to cw_bug@freescale.com</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/1211266#M15516</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How did you find error? Any hint from compiler?&lt;/P&gt;&lt;P&gt;Basically I am getting error on ending line of a function (at closing curly brace).&lt;/P&gt;&lt;P&gt;Here's my error:&lt;/P&gt;&lt;P&gt;&amp;lt;fileName&amp;gt;.c|1677|0|1|91472|1)&lt;BR /&gt;=}&lt;BR /&gt;&amp;gt;internal compiler error (report to &amp;lt;cw_bug@freescale.com&amp;gt;)&lt;BR /&gt;&amp;gt;while executing in file 'ExpandIR.c' line: 7135&lt;BR /&gt;&amp;gt;(compiling '&amp;lt;functionName&amp;gt;' in '&amp;lt;fileName&amp;gt;.c')&lt;/P&gt;&lt;P&gt;Errors caused tool to abort.&lt;BR /&gt;NMAKE : fatal error U1077: '"C:\Freescale\CW MCU v11.1\MCU\S12lisa_Tools\Build_Tools\mwccs12lisa.exe"'&lt;BR /&gt;: return code '0x1'&lt;BR /&gt;Stop.&lt;BR /&gt;NMAKE : fatal error U1077: 'C:\apps\Nmake\nmake.EXE' : return code '0x2'&lt;BR /&gt;Stop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usually compiler lay out their concerns for our code. But this one just tells line no.! Installed it today.&lt;/P&gt;&lt;P&gt;Edit: I emptied out function, the error vanished.&lt;/P&gt;&lt;P&gt;Also, I changed compiler optimization level from 2 to 0, it worked. No error. Any opt level except 0 generates error.&lt;/P&gt;&lt;P&gt;P.S: I am using evaluation version of compiler (awaiting license from customer). Is this error because of any free eval limit?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 18:48:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12-CW11-internal-compiler-error-report-to-cw-bug-freescale-com/m-p/1211266#M15516</guid>
      <dc:creator>raja1999</dc:creator>
      <dc:date>2021-01-13T18:48:26Z</dc:date>
    </item>
  </channel>
</rss>

