<?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>8-bit MicrocontrollersのトピックRe: Doubts about RAM in MC9S08QE8 device</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Doubts-about-RAM-in-MC9S08QE8-device/m-p/219326#M19104</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helo everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I understood by myself, I have to use the zero page section, can you confirm that?&lt;/P&gt;&lt;P&gt;Giox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Aug 2010 16:54:28 GMT</pubDate>
    <dc:creator>Giox79</dc:creator>
    <dc:date>2010-08-22T16:54:28Z</dc:date>
    <item>
      <title>Doubts about RAM in MC9S08QE8 device</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Doubts-about-RAM-in-MC9S08QE8-device/m-p/219325#M19103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I have a doubt about my platform setup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using a&amp;nbsp;MC9S08QG8 device, and I have some problem running my program.&lt;/P&gt;&lt;P&gt;In fact it seems that I have some stack related problem, since after running a subroutine some global (.common section) variable change value. So I tried increasing the stack size but the linker tells me that it don't have enough space.&lt;/P&gt;&lt;P&gt;However looking at the .map file it seems to me that I still have some space:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Summary of section sizes per section type:&lt;/DIV&gt;&lt;DIV&gt;READ_ONLY (R): &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;144B (dec: &amp;nbsp; &amp;nbsp; 5195)&lt;/DIV&gt;&lt;DIV&gt;READ_WRITE (R/W): &amp;nbsp; &amp;nbsp; &amp;nbsp;160 (dec: &amp;nbsp; &amp;nbsp; &amp;nbsp;352)&lt;/DIV&gt;&lt;DIV&gt;NO_INIT (N/I): &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;55 (dec: &amp;nbsp; &amp;nbsp; &amp;nbsp; 85)&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm using 0x160 bytes in RAM, but QG8 device has 0x200 bytes of&amp;nbsp;RAM. Why I can't increase my stack size at 0xF0? (at present time 0xD0).&lt;/P&gt;&lt;P&gt;If I try, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of allocation space in segment RAM at address 0x18A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some one that can clarify this point?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I provide also my .map file (renamed with txt extension)&lt;/P&gt;&lt;P&gt;Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Aug 2010 16:20:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Doubts-about-RAM-in-MC9S08QE8-device/m-p/219325#M19103</guid>
      <dc:creator>Giox79</dc:creator>
      <dc:date>2010-08-22T16:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Doubts about RAM in MC9S08QE8 device</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Doubts-about-RAM-in-MC9S08QE8-device/m-p/219326#M19104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helo everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I understood by myself, I have to use the zero page section, can you confirm that?&lt;/P&gt;&lt;P&gt;Giox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Aug 2010 16:54:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Doubts-about-RAM-in-MC9S08QE8-device/m-p/219326#M19104</guid>
      <dc:creator>Giox79</dc:creator>
      <dc:date>2010-08-22T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Doubts about RAM in MC9S08QE8 device</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Doubts-about-RAM-in-MC9S08QE8-device/m-p/219327#M19105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are correct - the default RAM does not make use of zero page RAM.&amp;nbsp; You will therfore need to explicitly allocate some of your variables to zero page, using the appropriate pragma.&amp;nbsp; According to the map file, you are currently using six bytes within page zero (apparently required by the startup code), and 138 bytes within page 1 (it appears you are consuming 128 bytes within three array variables).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since total RAM usage for all variables is 144 bytes, and 160 bytes is available within zero page, all static ahd global variables could actually be placed within zero page&amp;nbsp;RAM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you could alter the PRM file so that default RAM lists the zero-page RAM section prior to the other RAM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Aug 2010 23:39:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Doubts-about-RAM-in-MC9S08QE8-device/m-p/219327#M19105</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-08-22T23:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Doubts about RAM in MC9S08QE8 device</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Doubts-about-RAM-in-MC9S08QE8-device/m-p/219328#M19106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello BigMac.&lt;/P&gt;&lt;P&gt;Many thanks for your reply.&lt;/P&gt;&lt;P&gt;It confirms that I was on the right direction :-D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks also for the analysis of my .prm file, you have been very kind.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;&lt;P&gt;Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 03:36:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Doubts-about-RAM-in-MC9S08QE8-device/m-p/219328#M19106</guid>
      <dc:creator>Giox79</dc:creator>
      <dc:date>2010-08-23T03:36:53Z</dc:date>
    </item>
  </channel>
</rss>

