<?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: Using an MC9S12C64 in place of an MC9S12C32 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-an-MC9S12C64-in-place-of-an-MC9S12C32/m-p/600308#M13394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BOB,&lt;/P&gt;&lt;P&gt;According to the datasheet 0x4000-0x7FFF is on chip 16k fixed Flash EEPROM for C64. this range of memory doesn't exist in C32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11846i3DCE1006A38BB139/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need port a C32 project to C64. Basically we need at least:&lt;/P&gt;&lt;P&gt;1. replace prm file with a C64 prm file (create a new C64 project with wizard can generate a correct prm file )&lt;/P&gt;&lt;P&gt;2. replace header file with a C64 header file.&lt;/P&gt;&lt;P&gt;3. when launch hiwave debugger, change chip to C64 (debugger menu "HC12MultilinkCyclonePro", "Set derivative")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use banked memory model, the code can access page or non-paged memory with default access.&lt;/P&gt;&lt;P&gt;prm file is to define the memory allocation. User can modify prm file for own requirement&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11886i7EF8090424625191/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this prm file, the default code is allocated in PAGE_3A, PAGE_3B,PAGE_3C, PAGE_3D in order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2017 05:49:50 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2017-01-11T05:49:50Z</dc:date>
    <item>
      <title>Using an MC9S12C64 in place of an MC9S12C32</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-an-MC9S12C64-in-place-of-an-MC9S12C32/m-p/600307#M13393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the projects that I worked on several years ago used an MC9S12C32 device.&amp;nbsp; I remember that I was running into a memory issue where I was overrunning the available Flash memory (0xC000-0xFFFF) by just a little bit.&amp;nbsp; I got around the problem at the time by consolidating some of the routines that handled sending text to my LCD, and that worked OK at the time.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm faced with making new changes to that code, which will certainly put me over the 16K requirement.&amp;nbsp; I'm not sure if I should try using&amp;nbsp;16K Paged memory at 0x8000 to 0xBFFF in the C32 device, or try replacing the C32 device with a C64 device.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) If I were to replace my C32 device with a C64 device, will CodeWarrior automatically use the extra memory bank at 0x4000-0x7FFF without me having to do anything with any special Page registers?&amp;nbsp; How does the compiler know which device is the target MCU? (Sorry, it's been awhile...)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) Would it be just as easy (no involvement or special definitions by me) to stick with the C32 device and use the Paged memory at 0x8000-0xBFFF?&amp;nbsp; If this is more desirable, what do I have to do in my C-Code to let the CodeWarrior compiler use this Paged memory? (I would just want to use one extra 16K Page, not worry about Page-Switching that bank of memory).&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Bob P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 14:21:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-an-MC9S12C64-in-place-of-an-MC9S12C32/m-p/600307#M13393</guid>
      <dc:creator>bpaehr</dc:creator>
      <dc:date>2017-01-09T14:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using an MC9S12C64 in place of an MC9S12C32</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-an-MC9S12C64-in-place-of-an-MC9S12C32/m-p/600308#M13394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BOB,&lt;/P&gt;&lt;P&gt;According to the datasheet 0x4000-0x7FFF is on chip 16k fixed Flash EEPROM for C64. this range of memory doesn't exist in C32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11846i3DCE1006A38BB139/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need port a C32 project to C64. Basically we need at least:&lt;/P&gt;&lt;P&gt;1. replace prm file with a C64 prm file (create a new C64 project with wizard can generate a correct prm file )&lt;/P&gt;&lt;P&gt;2. replace header file with a C64 header file.&lt;/P&gt;&lt;P&gt;3. when launch hiwave debugger, change chip to C64 (debugger menu "HC12MultilinkCyclonePro", "Set derivative")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use banked memory model, the code can access page or non-paged memory with default access.&lt;/P&gt;&lt;P&gt;prm file is to define the memory allocation. User can modify prm file for own requirement&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11886i7EF8090424625191/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this prm file, the default code is allocated in PAGE_3A, PAGE_3B,PAGE_3C, PAGE_3D in order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 05:49:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-an-MC9S12C64-in-place-of-an-MC9S12C32/m-p/600308#M13394</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-01-11T05:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using an MC9S12C64 in place of an MC9S12C32</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-an-MC9S12C64-in-place-of-an-MC9S12C32/m-p/600309#M13395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jennie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp; That helps a lot.&amp;nbsp; I will probably go with the C64 route since there is little change in price between the C32 and C64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 13:49:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-an-MC9S12C64-in-place-of-an-MC9S12C32/m-p/600309#M13395</guid>
      <dc:creator>bpaehr</dc:creator>
      <dc:date>2017-01-13T13:49:39Z</dc:date>
    </item>
  </channel>
</rss>

