<?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: Problem with pointer to unsigned long in S12XEP100 with Banked Memory model in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-with-pointer-to-unsigned-long-in-S12XEP100-with-Banked/m-p/145534#M3926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even though the S12 is a 16 bit MCU, the large model probably allows pointers larger than 16 bits, while the banked model doesn't. You have to use non-standard far pointers for addresses larger than 16 bits, or alternatively write inline assembler to handle the page registers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Sep 2010 19:03:00 GMT</pubDate>
    <dc:creator>Lundin</dc:creator>
    <dc:date>2010-09-06T19:03:00Z</dc:date>
    <item>
      <title>Problem with pointer to unsigned long in S12XEP100 with Banked Memory model</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-with-pointer-to-unsigned-long-in-S12XEP100-with-Banked/m-p/145533#M3925</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;I am using code warrior for S12XEP100 target.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having problem with pointers to&amp;nbsp;unsigned long location, when I enable Banked Memory model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000ff;"&gt;unsigned long * src, *dest;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000ff;"&gt;Function_Copy (length)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000ff;"&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000ff;"&gt;src=(unsigned long *) 0x100000;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000ff;"&gt;do&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000ff;"&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000ff;"&gt;*dest = *src;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000ff;"&gt;counter++;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #0000ff;"&gt;} while( counter &amp;lt; length)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SW works fine, in Large Memory Model. But once I&amp;nbsp;switch to Banked Memory Model it doesn't.&lt;/P&gt;&lt;P&gt;Can anyone help me with this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 17:05:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-with-pointer-to-unsigned-long-in-S12XEP100-with-Banked/m-p/145533#M3925</guid>
      <dc:creator>sep2kor</dc:creator>
      <dc:date>2010-09-06T17:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with pointer to unsigned long in S12XEP100 with Banked Memory model</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-with-pointer-to-unsigned-long-in-S12XEP100-with-Banked/m-p/145534#M3926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even though the S12 is a 16 bit MCU, the large model probably allows pointers larger than 16 bits, while the banked model doesn't. You have to use non-standard far pointers for addresses larger than 16 bits, or alternatively write inline assembler to handle the page registers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 19:03:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-with-pointer-to-unsigned-long-in-S12XEP100-with-Banked/m-p/145534#M3926</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2010-09-06T19:03:00Z</dc:date>
    </item>
  </channel>
</rss>

