<?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: Errors:range error for small data relocation in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Errors-range-error-for-small-data-relocation/m-p/625055#M13622</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;I posted the answer in this thread &lt;A href="https://community.nxp.com/thread/442930"&gt;https://community.nxp.com/thread/442930&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 13:20:28 GMT</pubDate>
    <dc:creator>martin_kovar</dc:creator>
    <dc:date>2017-01-18T13:20:28Z</dc:date>
    <item>
      <title>Errors:range error for small data relocation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Errors-range-error-for-small-data-relocation/m-p/625054#M13621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="text-decoration: line-through;"&gt;I create a project for MPC5645S by code warrior 10.6.The accessory is sources of the project.Code warrior shows errors(the picture) when compiling.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I suspect that this error is related to this structure.But I am not sure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Does anyone ever encounter this problem,Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typedef struct&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;unsigned char Count;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LabelMapping Mappings[];&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }LabelMappings;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Code warrior 10.6 shows a error of&amp;nbsp;range error for small data relocation,when i used the struct(&lt;SPAN&gt;LabelMappings, show above&lt;/SPAN&gt;) in my project. There is a indefinite lengh array that support by C99 in the struct. And the code warrior supports C99. But there is a error when commpiling.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;There are two necessary conditions that lead to this error.One is the flexible array in the struct,the other I define varible ina file and refer the varible in another file.But I can't edit the files in my project.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If i set the sdata and sdata2 to 0, I can compile the project successfully.But when sdata and sdata2 is 0,my project can;t run into main().My test result,if sdata = 0 and sdata2 = 0,project can run in debug mode, and can't run in noemal mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I updata the new attachments,it is a whole project and can be open by code warrior 10.6.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="174596_174596.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122766i6E1F3ACEBDC6F3DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="174596_174596.JPG" alt="174596_174596.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12989i0166A7156C645395/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.JPG" alt="error.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338605"&gt;MPC5645S_TEST.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 14:24:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Errors-range-error-for-small-data-relocation/m-p/625054#M13621</guid>
      <dc:creator>khadgaryu</dc:creator>
      <dc:date>2017-01-17T14:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Errors:range error for small data relocation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Errors-range-error-for-small-data-relocation/m-p/625055#M13622</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;I posted the answer in this thread &lt;A href="https://community.nxp.com/thread/442930"&gt;https://community.nxp.com/thread/442930&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 13:20:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Errors-range-error-for-small-data-relocation/m-p/625055#M13622</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-01-18T13:20:28Z</dc:date>
    </item>
  </channel>
</rss>

