<?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: MC9S12DT256 : have problem to when set __stack=0x3FFF</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT256-have-problem-to-when-set-stack-0x3FFF/m-p/214576#M8972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Lundin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2012 06:18:49 GMT</pubDate>
    <dc:creator>lx</dc:creator>
    <dc:date>2012-03-15T06:18:49Z</dc:date>
    <item>
      <title>MC9S12DT256 : have problem to when set __stack=0x3FFF</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT256-have-problem-to-when-set-stack-0x3FFF/m-p/214574#M8970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using MC9S12DT256MFUE. It supposes to have 12k RAM. But when I set&amp;nbsp;__stack=0x3FFF, the stack was unable to update, i.e. when calling a sub-routine, the return address was not saved in the stack. The stack works if I set&amp;nbsp;__stack=0x2FFF. Is there any other registers I need to initialize?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 07:02:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT256-have-problem-to-when-set-stack-0x3FFF/m-p/214574#M8970</guid>
      <dc:creator>lx</dc:creator>
      <dc:date>2012-03-09T07:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT256 : have problem to when set __stack=0x3FFF</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT256-have-problem-to-when-set-stack-0x3FFF/m-p/214575#M8971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you might need to set the INITRM register, and possibly also INITRG and INITEE. These registers map the memory to certain addresses.Check the MMC part of the manual for details of how to set them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a figure in the introduction chapter of the manual, displaying the default memory layout for the part out of reset. Registers, RAM and EEPROM may overlap. If that happens, registers take precedence over RAM, which takes precedence over EEPROM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should set INITRM, INITRG and INITEE immediately after setting the stack pointer, at the very beginning of your program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also make sure that the stack etc are properly mapped to the correct addresses. This is compiler-dependent. If you are using Codewarrior, this is done in the .prm file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 23:29:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT256-have-problem-to-when-set-stack-0x3FFF/m-p/214575#M8971</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2012-03-09T23:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT256 : have problem to when set __stack=0x3FFF</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT256-have-problem-to-when-set-stack-0x3FFF/m-p/214576#M8972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Lundin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 06:18:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT256-have-problem-to-when-set-stack-0x3FFF/m-p/214576#M8972</guid>
      <dc:creator>lx</dc:creator>
      <dc:date>2012-03-15T06:18:49Z</dc:date>
    </item>
  </channel>
</rss>

