<?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 Migrate from HCS12 to HCX12 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Migrate-from-HCS12-to-HCX12/m-p/296503#M10236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I have two projects with mc9s12dg256 (256KB flash, 12KB RAM)&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;The first one uses 220KB flash and the whole 12KB of RAM.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;The second uses 32 KB of flash and 2KB of RAM.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Now I have to merge the two projects to mc9sxdt512 controller.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I have successfully moved the first project to mc9sxdt512 (many thanks to &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;Edward Karpicz&lt;/SPAN&gt;&lt;SPAN&gt; for his excellent answer at this post:&lt;/SPAN&gt;&lt;A class="jive-link-message-small" data-containerid="2017" data-containertype="14" data-objectid="334626" data-objecttype="2" href="https://community.freescale.com/message/334626#334626"&gt;https://community.freescale.com/message/334626#334626&lt;/A&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;The problem is that the first project uses the whole unpaged RAM, so the second project has to use the paged RAM. &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Unfortunately moving pointers and variables to paged RAM is not so easy. The project implements Can Open and it was developed by another person. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I am wondering if there is any kind of solution to have more linear unpaged RAM (Actually I need 14KB)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Thank you&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Nikos &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 11:07:30 GMT</pubDate>
    <dc:creator>Eric_t</dc:creator>
    <dc:date>2014-03-14T11:07:30Z</dc:date>
    <item>
      <title>Migrate from HCS12 to HCX12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Migrate-from-HCS12-to-HCX12/m-p/296503#M10236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I have two projects with mc9s12dg256 (256KB flash, 12KB RAM)&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;The first one uses 220KB flash and the whole 12KB of RAM.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;The second uses 32 KB of flash and 2KB of RAM.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Now I have to merge the two projects to mc9sxdt512 controller.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I have successfully moved the first project to mc9sxdt512 (many thanks to &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;Edward Karpicz&lt;/SPAN&gt;&lt;SPAN&gt; for his excellent answer at this post:&lt;/SPAN&gt;&lt;A class="jive-link-message-small" data-containerid="2017" data-containertype="14" data-objectid="334626" data-objecttype="2" href="https://community.freescale.com/message/334626#334626"&gt;https://community.freescale.com/message/334626#334626&lt;/A&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;The problem is that the first project uses the whole unpaged RAM, so the second project has to use the paged RAM. &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Unfortunately moving pointers and variables to paged RAM is not so easy. The project implements Can Open and it was developed by another person. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I am wondering if there is any kind of solution to have more linear unpaged RAM (Actually I need 14KB)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Thank you&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Nikos &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 11:07:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Migrate-from-HCS12-to-HCX12/m-p/296503#M10236</guid>
      <dc:creator>Eric_t</dc:creator>
      <dc:date>2014-03-14T11:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate from HCS12 to HCX12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Migrate-from-HCS12-to-HCX12/m-p/296504#M10237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;looking at the memory map (see attachment) there are two ways how to create linear RAM. However, nothing is direct access.&lt;/P&gt;&lt;P&gt;1) use global address to access RAM (linear space from 0F_B000-0F_FFFF)&lt;/P&gt;&lt;P&gt;2) use XGATE as a support device for RAM addrssing&lt;/P&gt;&lt;P&gt;3) use special routine which is converting your, let's say, imaginary linear space to paged space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first approach looks to be the easiest - far pointer is the solution. In the attached XDP512 - RAM addressing - CW45 you will see how to do that.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 13:15:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Migrate-from-HCS12-to-HCX12/m-p/296504#M10237</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2014-04-09T13:15:14Z</dc:date>
    </item>
  </channel>
</rss>

