<?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のトピックRe: linera ram paging doubt</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173497#M5982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;whether we can pre allocate all the global variables in paged ram...so that i can&lt;/LI&gt;&lt;LI&gt;have enough space for stack and default ram??....&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You need to use #pragma DATA_SEG&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="109702" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/109702" jivemacro="thread" title="https://community.freescale.com/thread/109702"&gt;https://community.freescale.com/thread/109702&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;whether we can jump from one ram page to other non-linearly? in sense!!!&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;RAM FE(non paged) - &amp;gt; RAM F8(paged) - &amp;gt; RAM FA(paged)&amp;nbsp; like that!!!!&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I've problems understanding your request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2012 14:55:51 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2012-06-20T14:55:51Z</dc:date>
    <item>
      <title>linera ram paging doubt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173494#M5979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have doubt in linear ram addresing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;for ex:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Im using MC9S12XEQ512&amp;nbsp; microcontroller where the ram memory is 32kb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where 8kb is non-paged ram and remaining 24kb belongs to paged ram&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;my placement in linker file goes like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;case 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.stack,&lt;/P&gt;&lt;P&gt;.shared data,&lt;/P&gt;&lt;P&gt;.default ram&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into RAM ,RAM FD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i declare a huge array which is shared between both non-paged and paged ram?&amp;nbsp; my microcontroller is getting reset!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so my doubt whether a large array can share RAM ( WHICH IS NON PAGED) and RAM_FD( paged) ??.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Whether ram jumping should be linear i.e&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RAM FF (NON PAGED) - &amp;gt; RAM FE( NON PAGED) -&amp;gt; RAM FD(PAGED) -&amp;gt;RAM FC(PAGED). -&amp;gt;RAM FB(PAGED)....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 01:59:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173494#M5979</guid>
      <dc:creator>FIDDO</dc:creator>
      <dc:date>2012-06-20T01:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: linera ram paging doubt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173495#M5980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paged RAM requires more difficult addressing.&amp;nbsp;You can't place default RAM&amp;nbsp;and stack in paged memory segments, code won't work. You may put default RAM to paged memory only when using large memory model, but stack still has to be placed in nonbanked memory.&lt;/P&gt;&lt;P&gt;Use search to find how to use paged RAM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 11:50:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173495#M5980</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-06-20T11:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: linera ram paging doubt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173496#M5981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks kef... one more doubt....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;whether we can pre allocate all the global variables in paged ram...so that i can have enough space for stack and default ram??....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;whether we can jump from one ram page to other non-linearly? in sense!!! &amp;nbsp;RAM FE(non paged) - &amp;gt; RAM F8(paged) - &amp;gt; RAM FA(paged) &amp;nbsp;like that!!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;im sorry if this question sounds stupid!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 13:19:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173496#M5981</guid>
      <dc:creator>FIDDO</dc:creator>
      <dc:date>2012-06-20T13:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: linera ram paging doubt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173497#M5982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;whether we can pre allocate all the global variables in paged ram...so that i can&lt;/LI&gt;&lt;LI&gt;have enough space for stack and default ram??....&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You need to use #pragma DATA_SEG&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="109702" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/109702" jivemacro="thread" title="https://community.freescale.com/thread/109702"&gt;https://community.freescale.com/thread/109702&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;whether we can jump from one ram page to other non-linearly? in sense!!!&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;RAM FE(non paged) - &amp;gt; RAM F8(paged) - &amp;gt; RAM FA(paged)&amp;nbsp; like that!!!!&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I've problems understanding your request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 14:55:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173497#M5982</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-06-20T14:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: linera ram paging doubt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173498#M5983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kef,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;sorry for confusing you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MICROCONTROLLER : MC9S12XEQ512VAGR&lt;/P&gt;&lt;P&gt;&amp;nbsp;1 . if i want to store array say, i.e unsigned int ru_var[200] in to&amp;nbsp; paged ram&amp;nbsp; ( RAM_FA)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; i did it in this way,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;# pragma DATA_SEG&amp;nbsp; _GPAGE_SEG RAM_ALLOC&lt;/P&gt;&lt;P&gt;static unsigned int ru_var[200]=0 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# pragma DATA_SEG DEFAULT&lt;/P&gt;&lt;P&gt;//..................REST OF THE VARIABLES.....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;/**********************************************LINKER FILE *************************************************/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PLACEMENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RAM_ALLOC&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp; RAM_FA&amp;nbsp; ( RAM_FA is allocated by default in the linker file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*********************************** ************************************************************************/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;whereever extern is used, i did like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma push&lt;/P&gt;&lt;P&gt;# pragma DATA_SEG&amp;nbsp; _GPAGE_SEG RAM_ALLOC&lt;/P&gt;&lt;P&gt;&amp;nbsp;variable.................&lt;/P&gt;&lt;P&gt;#pragma pop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/***************************************************************************************************************/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i didn't get any problem&amp;nbsp; while compiling and linking.&lt;/P&gt;&lt;P&gt;While checking the map file ......Array is not allocated in the corresponding RAM page(RAM_FA).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is&amp;nbsp; there any problem in the way of implementation!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help me out kef!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 22:06:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173498#M5983</guid>
      <dc:creator>FIDDO</dc:creator>
      <dc:date>2012-06-21T22:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: linera ram paging doubt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173499#M5984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with two underscopes, __GPAGE_SEG instead of _GPAGE_SEG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 23:48:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173499#M5984</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-06-21T23:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: linera ram paging doubt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173500#M5985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks kef....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jun 2012 00:55:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/linera-ram-paging-doubt/m-p/173500#M5985</guid>
      <dc:creator>FIDDO</dc:creator>
      <dc:date>2012-06-23T00:55:03Z</dc:date>
    </item>
  </channel>
</rss>

