<?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>S12 / MagniV MicrocontrollersのトピックArray over 123 elements</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Array-over-123-elements/m-p/672373#M14110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My project is using S12ZVCA. I have an issue about array over 123 element as follow:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;void main(void) {&lt;BR /&gt;const unsigned int TemperatureTable[124]={&amp;nbsp;&lt;BR /&gt; 4924, 4920, 4915, 4910, 4905, 4900, 4894, 4888, 4882, 4876,&lt;BR /&gt; 4869, 4862, 4855, 4847, 4839, 4831, 4822, 4813, 4803, 4794,&lt;BR /&gt; 4783, 4773, 4761, 4750, 4738, 4725, 4712, 4699, 4685, 4671,&lt;BR /&gt; 4656, 4640, 4624, 4608, 4590, 4573, 4555, 4536, 4516, 4496,&lt;BR /&gt; 4476,&lt;BR /&gt; 4454, 4432, 4410, 4387, 4363, 4338, 4314, 4288, 4262, 4235,&lt;BR /&gt; 4207, 4179, 4150, 4121, 4091, 4060, 4029, 3998, 3965, 3933,&lt;BR /&gt; 3899, 3864, 3830, 3795, 3759, 3723, 3687, 3650, 3612, 3575,&lt;BR /&gt; 3536, 3498, 3459, 3420, 3380, 3340, 3300, 3260, 3219, 3178,&lt;BR /&gt; 3137, 3096, 3055, 3014, 2973, 2931, 2890, 2849, 2807, 2766,&lt;BR /&gt; 2725, 2684, 2643, 2602, 2562, 2521, 2481, 2441, 2401, 2362,&lt;BR /&gt; 2322, 2284, 2245, 2207, 2169, 2131, 2094, 2057, 2021, 1985,&lt;BR /&gt; 1949, 1914, 1879, 1845, 1810, 1777, 1744, 1711, 1679, 1648,&lt;BR /&gt; 1617, 1586, 1555};&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I execute step by step in debugging mode. It terminate after assign array TemperatureTable[124]={......}.&lt;/P&gt;&lt;P&gt;Then show message as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;No source available for "0x0001F1 (0x0001F1)() "&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It can work when elements of array less than 123. How to resolve the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Jun 2017 17:22:32 GMT</pubDate>
    <dc:creator>aaronlee</dc:creator>
    <dc:date>2017-06-25T17:22:32Z</dc:date>
    <item>
      <title>Array over 123 elements</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Array-over-123-elements/m-p/672373#M14110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My project is using S12ZVCA. I have an issue about array over 123 element as follow:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;void main(void) {&lt;BR /&gt;const unsigned int TemperatureTable[124]={&amp;nbsp;&lt;BR /&gt; 4924, 4920, 4915, 4910, 4905, 4900, 4894, 4888, 4882, 4876,&lt;BR /&gt; 4869, 4862, 4855, 4847, 4839, 4831, 4822, 4813, 4803, 4794,&lt;BR /&gt; 4783, 4773, 4761, 4750, 4738, 4725, 4712, 4699, 4685, 4671,&lt;BR /&gt; 4656, 4640, 4624, 4608, 4590, 4573, 4555, 4536, 4516, 4496,&lt;BR /&gt; 4476,&lt;BR /&gt; 4454, 4432, 4410, 4387, 4363, 4338, 4314, 4288, 4262, 4235,&lt;BR /&gt; 4207, 4179, 4150, 4121, 4091, 4060, 4029, 3998, 3965, 3933,&lt;BR /&gt; 3899, 3864, 3830, 3795, 3759, 3723, 3687, 3650, 3612, 3575,&lt;BR /&gt; 3536, 3498, 3459, 3420, 3380, 3340, 3300, 3260, 3219, 3178,&lt;BR /&gt; 3137, 3096, 3055, 3014, 2973, 2931, 2890, 2849, 2807, 2766,&lt;BR /&gt; 2725, 2684, 2643, 2602, 2562, 2521, 2481, 2441, 2401, 2362,&lt;BR /&gt; 2322, 2284, 2245, 2207, 2169, 2131, 2094, 2057, 2021, 1985,&lt;BR /&gt; 1949, 1914, 1879, 1845, 1810, 1777, 1744, 1711, 1679, 1648,&lt;BR /&gt; 1617, 1586, 1555};&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I execute step by step in debugging mode. It terminate after assign array TemperatureTable[124]={......}.&lt;/P&gt;&lt;P&gt;Then show message as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;No source available for "0x0001F1 (0x0001F1)() "&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It can work when elements of array less than 123. How to resolve the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jun 2017 17:22:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Array-over-123-elements/m-p/672373#M14110</guid>
      <dc:creator>aaronlee</dc:creator>
      <dc:date>2017-06-25T17:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Array over 123 elements</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Array-over-123-elements/m-p/672374#M14111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The reason for this is that the array is placed on the stack.&lt;/P&gt;&lt;P&gt;So you can extend the stacksize in the linker file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="stack.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24183iCE731FE30F5704FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="stack.png" alt="stack.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can place the array as global (before the main function), or declare it as a static array.&lt;/P&gt;&lt;P&gt;Also, there is an article &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-334387"&gt;S12Z constant, variable, code allocation in CodeWarrior&lt;/A&gt; you can refer to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 09:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Array-over-123-elements/m-p/672374#M14111</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-06-26T09:32:50Z</dc:date>
    </item>
  </channel>
</rss>

