<?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 Bug in CW for Microcontrollers v6.2 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-CW-for-Microcontrollers-v6-2/m-p/165985#M4858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;The following snippet of code gives an Error - C1830 Modifiable lvalue expected in function f2.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The code was tested with a new 'C' project for the MC9S08DZ60 processor.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;struct s_profile {&amp;nbsp;&amp;nbsp;&amp;nbsp; char a[4];&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int u;};volatile struct s_profile profile;void&amp;nbsp; f1(void) {&amp;nbsp; profile.a[0] = 1;&amp;nbsp;&amp;nbsp; }&amp;nbsp; const struct s_profile eep_profile[4];&amp;nbsp; void&amp;nbsp; f2(void) {&amp;nbsp; profile.a[0] = 2;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;The error is caused by the line const struct s_profile eep_profile[4].&lt;/DIV&gt;&lt;DIV&gt;Removing the const, or the array ref, and the error disappers.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:12:58 GMT</pubDate>
    <dc:creator>djsimpson</dc:creator>
    <dc:date>2020-10-29T09:12:58Z</dc:date>
    <item>
      <title>Bug in CW for Microcontrollers v6.2</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-CW-for-Microcontrollers-v6-2/m-p/165985#M4858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;The following snippet of code gives an Error - C1830 Modifiable lvalue expected in function f2.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The code was tested with a new 'C' project for the MC9S08DZ60 processor.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;struct s_profile {&amp;nbsp;&amp;nbsp;&amp;nbsp; char a[4];&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int u;};volatile struct s_profile profile;void&amp;nbsp; f1(void) {&amp;nbsp; profile.a[0] = 1;&amp;nbsp;&amp;nbsp; }&amp;nbsp; const struct s_profile eep_profile[4];&amp;nbsp; void&amp;nbsp; f2(void) {&amp;nbsp; profile.a[0] = 2;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;The error is caused by the line const struct s_profile eep_profile[4].&lt;/DIV&gt;&lt;DIV&gt;Removing the const, or the array ref, and the error disappers.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:12:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-CW-for-Microcontrollers-v6-2/m-p/165985#M4858</guid>
      <dc:creator>djsimpson</dc:creator>
      <dc:date>2020-10-29T09:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in CW for Microcontrollers v6.2</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-CW-for-Microcontrollers-v6-2/m-p/165986#M4859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would recommend you to submit a service request for that.&lt;BR /&gt;&lt;BR /&gt;Click &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework?regFlag=fromOpenSR" rel="nofollow" target="_blank"&gt;here&lt;/A&gt; to submit a service request.&lt;BR /&gt;&lt;BR /&gt;Make sure to attach a reproducible project and installed product information to the service request.&lt;BR /&gt;To generate the required information:&lt;BR /&gt;- Start CodeWarrior&lt;BR /&gt;- Open the project&lt;BR /&gt;- Select "Help" -&amp;gt; "Pack and Go" and follow instructions on the screen.&lt;BR /&gt;&lt;BR /&gt;Attach the generated .zip file to the SR.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 16:23:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Bug-in-CW-for-Microcontrollers-v6-2/m-p/165986#M4859</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2008-06-20T16:23:20Z</dc:date>
    </item>
  </channel>
</rss>

