<?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: Problem using paged memory</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-using-paged-memory/m-p/752066#M15119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume, the error message means you are writing to the wrong address.&lt;/P&gt;&lt;P&gt;For writing to flash must be used global address, because only global address is accepted for writing.&lt;/P&gt;&lt;P&gt;Local address 0x4000 corresponds to Global address 0x34000.&lt;/P&gt;&lt;P&gt;I attached memory map for the S12G.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For better understanding, here is detailed description about difference between local and global address:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/636153?commentID=636153#comment-636153" title="https://community.nxp.com/message/636153?commentID=636153#comment-636153"&gt;https://community.nxp.com/message/636153?commentID=636153#comment-636153&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and useful examples:&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-93792"&gt;S12G Examples Pack&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2018 13:19:42 GMT</pubDate>
    <dc:creator>dianabatrlova</dc:creator>
    <dc:date>2018-02-20T13:19:42Z</dc:date>
    <item>
      <title>Problem using paged memory</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-using-paged-memory/m-p/752065#M15118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been using CodeWarrior IDE v5.9.0 build 5294 (Development Studio for S12(X) v5.2 build 151201) on a Windows7 machine for about a year to upload assembly code to the DEVKIT S12G128 board without any problems. Last week I started using paged memory as my project has exceeded 64K. I now receive an error message when trying to upload code to the DEVKIT S12G128.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't even upload the following simple program:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image 2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16003i8C900C9816916E97/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image 2.png" alt="Image 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Pressing "Make" assembles this program without a problem, and I can view the main.asm.o.lst file but when I connect the DEVKIT S12G128 and press "Debug" I receive the following error messages:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image 4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14572i8698987EA113760F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image 4.png" alt="Image 4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image 5.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14621iD0E6FEA00CD3B183/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image 5.gif" alt="Image 5.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried opening a new project and also tried uploading from another computer with the same version of CodeWarrior, but the same error messages appear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned above, programs that do not have paged memory upload without any problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 07:36:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-using-paged-memory/m-p/752065#M15118</guid>
      <dc:creator>danielmilutinov</dc:creator>
      <dc:date>2018-02-16T07:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using paged memory</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-using-paged-memory/m-p/752066#M15119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume, the error message means you are writing to the wrong address.&lt;/P&gt;&lt;P&gt;For writing to flash must be used global address, because only global address is accepted for writing.&lt;/P&gt;&lt;P&gt;Local address 0x4000 corresponds to Global address 0x34000.&lt;/P&gt;&lt;P&gt;I attached memory map for the S12G.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For better understanding, here is detailed description about difference between local and global address:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/636153?commentID=636153#comment-636153" title="https://community.nxp.com/message/636153?commentID=636153#comment-636153"&gt;https://community.nxp.com/message/636153?commentID=636153#comment-636153&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and useful examples:&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-93792"&gt;S12G Examples Pack&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 13:19:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-using-paged-memory/m-p/752066#M15119</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2018-02-20T13:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using paged memory</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-using-paged-memory/m-p/752067#M15120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana, thanks for your reply. Can you please tell me what changes I need to make to the code? Do you mean I should change it to:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image 7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18396iAE0899C4D117AF99/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image 7.png" alt="Image 7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What about ORG $FFFE? Are you saying that all addresses must be changed to global when using paged memory? Can someone please show me what changes need to be made to the code to get it to work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 01:53:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-using-paged-memory/m-p/752067#M15120</guid>
      <dc:creator>danielmilutinov</dc:creator>
      <dc:date>2018-02-21T01:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using paged memory</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-using-paged-memory/m-p/752068#M15121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very sorry for confusing information, forget my first response please.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to use local address as you do at first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your error will happen, when you use&amp;nbsp;PAGE_0AStart:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;equ&amp;nbsp; &amp;nbsp;$00028000 -&amp;gt; this address is global and you are accessing out of memory.&lt;/P&gt;&lt;P&gt;When you want to access on the PAGE 0xA, you need to use alternative addressing for PPAGE.&lt;/P&gt;&lt;P&gt;So, address&amp;nbsp;will be&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;$0A8000&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19109i3D61A3C9E6018454/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;P&gt;&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; ORG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$4000&lt;/P&gt;&lt;P&gt;entry: &amp;nbsp;&amp;nbsp;&amp;nbsp;LDS &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#$4000&lt;BR /&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;LDAA &amp;nbsp;&amp;nbsp;&amp;nbsp;#$01&lt;BR /&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; CALL &amp;nbsp;&amp;nbsp;&amp;nbsp;sub1&lt;BR /&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;INCA&lt;BR /&gt;loop: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BRA &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;loop&lt;/P&gt;&lt;P&gt;;-------------------&lt;BR /&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; ORG &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;$0A8000&lt;/STRONG&gt; &lt;BR /&gt;sub1: &amp;nbsp;&amp;nbsp;&amp;nbsp;INCA&lt;BR /&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;RTC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:13:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-using-paged-memory/m-p/752068#M15121</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2018-02-21T14:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using paged memory</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-using-paged-memory/m-p/752069#M15122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You are a champion, that works perfectly!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you very much for all of your help!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 09:32:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Problem-using-paged-memory/m-p/752069#M15122</guid>
      <dc:creator>danielmilutinov</dc:creator>
      <dc:date>2018-02-22T09:32:40Z</dc:date>
    </item>
  </channel>
</rss>

