<?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: using Paged RAM</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127762#M751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;In order to get rid of that message you have to let the startup code know you have global variables in banked memory.&lt;/P&gt;&lt;P&gt;In order to do that add option -D__FAR_DATA to your compiler command line.&lt;/P&gt;&lt;P&gt;Make sure to rebuild the start12.c file with that option activated.&lt;/P&gt;&lt;P&gt;That should do the trick.&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2006 21:44:30 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2006-08-24T21:44:30Z</dc:date>
    <item>
      <title>using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127756#M745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I want to use the paged RAM area in MC9S12XDP512 controller. Can you please help me defining the sections for using this Paged section of RAM and how those functions to be defined(ie., whether it should be defined as FAR function).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanking you in advance,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 19:19:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127756#M745</guid>
      <dc:creator>opener</dc:creator>
      <dc:date>2006-08-22T19:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127757#M746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Find attached a technical note describing the different ways of defining paged variables on a HCS12X CPU. It also show the generated code in each case.&lt;/P&gt;&lt;P&gt;Note that this Technical note is part of the standard CodeWarrior for HCS12 V4.5 installation. You can find it in {Install}\Help\Pdf.&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/16BITCOMM/1900_TN248.pdf" rel="nofollow" target="_self"&gt;TN248.pdf&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-21&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;12:28 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 21:35:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127757#M746</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-08-22T21:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127758#M747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;You use modifiers with the data segment definition:&lt;BR /&gt;&lt;BR /&gt;#pragma DATA_SEG: Data Segment Definition&lt;BR /&gt;&lt;BR /&gt;#pragma DATA_SEG (Modif Name | DEFAULT).&lt;BR /&gt;&lt;BR /&gt;Modif:&lt;BR /&gt;__SHORT_SEG (compatibility alias: SHORT)&lt;BR /&gt;__DIRECT_SEG (compatibility alias: DIRECT)&lt;BR /&gt;__NEAR_SEG (compatibility alias: NEAR)&lt;BR /&gt;__CODE_SEG (compatibility alias: CODE)&lt;BR /&gt;__FAR_SEG (compatibility alias: FAR)&lt;BR /&gt;__DPAGE_SEG (compatibility alias: DPAGE)&lt;BR /&gt;__EPAGE_SEG (compatibility alias: EPAGE)&lt;BR /&gt;__PPAGE_SEG (compatibility alias: PPAGE)&lt;BR /&gt;__RPAGE_SEG (compatibility alias: RPAGE)&lt;BR /&gt;__GPAGE_SEG (compatibility alias: GPAGE)&lt;BR /&gt;&lt;BR /&gt;The compiler then takes care of everything on its own.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 22:41:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127758#M747</guid>
      <dc:creator>DanielM</dc:creator>
      <dc:date>2006-08-22T22:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127759#M748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i wanted to use the RAM area between 0x00_1000 to 0x0F_FFFF.&amp;nbsp; So, can you explain me, how i can use that area. For that how do i need to define that memory location in .prm file.&amp;nbsp; And also explain, how i can define those segments in&amp;nbsp;data segment definiton., like #pragma DATA_SEG&amp;nbsp; ..........&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 20:45:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127759#M748</guid>
      <dc:creator>opener</dc:creator>
      <dc:date>2006-08-23T20:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127760#M749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;in your source file you do:&lt;BR /&gt;&lt;BR /&gt;#pragma DATA_SEG __RPAGE_SEG MY_DATA&lt;BR /&gt;&lt;BR /&gt;..variable definitions go here..&lt;BR /&gt;&lt;BR /&gt;#pragma DATA_SEG DEFAULT&lt;BR /&gt;&lt;BR /&gt;in your header file you do:&lt;BR /&gt;&lt;BR /&gt;#pragma DATA_SEG __RPAGE_SEG MY_DATA&lt;BR /&gt;&lt;BR /&gt;extern ..variable declaration..&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;#pragma DATA_SEG&lt;BR /&gt;&lt;BR /&gt;and in your linker file you have to do:&lt;BR /&gt;&lt;BR /&gt;SEGMENTS&lt;BR /&gt; RAM_PAGED = READ_WRITE 0x001000'G TO 0x0FDFFF'G;&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;PLACEMENT&lt;BR /&gt; MY_DATA INTO RAM_PAGED;&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;or something of this sort anyway...&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 13:58:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127760#M749</guid>
      <dc:creator>DanielM</dc:creator>
      <dc:date>2006-08-24T13:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127761#M750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;i am defining the data segment similar way as your instruction, even then there is a warning message like&amp;nbsp;the following one,&amp;nbsp; when i am trying to access the paged RAM in FB page. &lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;WARNING L1128: Cutting value _Range beg data member from 0xFB1000 to 0x1000.&lt;/P&gt;&lt;P&gt;can you explain me what this states and how it related to my issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 16:19:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127761#M750</guid>
      <dc:creator>opener</dc:creator>
      <dc:date>2006-08-24T16:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127762#M751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;In order to get rid of that message you have to let the startup code know you have global variables in banked memory.&lt;/P&gt;&lt;P&gt;In order to do that add option -D__FAR_DATA to your compiler command line.&lt;/P&gt;&lt;P&gt;Make sure to rebuild the start12.c file with that option activated.&lt;/P&gt;&lt;P&gt;That should do the trick.&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 21:44:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127762#M751</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-08-24T21:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127763#M752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;please have a look at AN3219. It uses paging for variable LCD_data and it all works fine in there.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 21:54:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127763#M752</guid>
      <dc:creator>DanielM</dc:creator>
      <dc:date>2006-08-24T21:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127764#M753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi, I have set that compiler option, now that warning message is not coming. Thank you for your support.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 15:20:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127764#M753</guid>
      <dc:creator>opener</dc:creator>
      <dc:date>2006-08-25T15:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127765#M754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Do i need to define the functions that range as FAR function?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 17:47:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127765#M754</guid>
      <dc:creator>opener</dc:creator>
      <dc:date>2006-08-25T17:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127766#M755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello&lt;BR /&gt;&lt;BR /&gt;Not if you are building in banked memory model (option -Mb).&lt;BR /&gt;In banked memory model all functions are supposed to be located in banked flash (i.e. they are invoked with CALL instead of JSR).&lt;BR /&gt;&lt;BR /&gt;CrasyCat&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 20:18:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127766#M755</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-08-25T20:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127767#M756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;can we store any global variable in PAGED RAM? or is there any restriction like, the variables which are only global to that module(localised global) can be stored in PAGED RAM. ie., only variables which are defined static out side the function can be stored in FB or FC pages of the RAM?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 13:02:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127767#M756</guid>
      <dc:creator>opener</dc:creator>
      <dc:date>2006-08-30T13:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127768#M757</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;You can store any global variable in PAGED RAM. Just make sure to define and declare it with the appropriate pragma.&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>Wed, 30 Aug 2006 15:57:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127768#M757</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-08-30T15:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127769#M758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Crasycat,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In my application i am defining some variables to be in paged RAM (page FB) through #pragma definition by mentioning __RPAGE_SEG. There are also some variables which declared without __RPAGE_SEG pragma, so it will store in the linear addressing of FD page. How the page shifting will occur in my code, will it work properly or should i need to define all global variables as __RPAGE_SEG?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 18:28:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127769#M758</guid>
      <dc:creator>opener</dc:creator>
      <dc:date>2006-09-06T18:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127770#M759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;BAsically all variables, which are allocated in banked memory must be declared in either a __RPAGE_SEG or a __GPAGE_SEG section.&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>Thu, 07 Sep 2006 16:15:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127770#M759</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-09-07T16:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127771#M760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;i am using the GPAGE section by defining __GPAGE_SEG. but there is a warning "cutting value reg between fb1000 to 1000. how to eliminate this warning. i have tried including -D__FAR_DATA in compiling startup.c, still it is throwing same warning.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 20:54:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127771#M760</guid>
      <dc:creator>opener</dc:creator>
      <dc:date>2006-09-07T20:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: using Paged RAM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127772#M761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;This happens if you try to assign the address of an object allocated in banked memory to a pointer. You have to use far pointers instead.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Would need to see source code where this warning apply to help more.&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>Mon, 11 Sep 2006 18:26:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/using-Paged-RAM/m-p/127772#M761</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-09-11T18:26:26Z</dc:date>
    </item>
  </channel>
</rss>

