<?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 MC9S12XDP512 - How to jump specified startup code in flash in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-jump-specified-startup-code-in-flash/m-p/154173#M4581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Microcontroller : mc9s12xdp512&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two startup code created in codewarrior and it is stored in two different address of flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How I can jump to specified startup code according with the MODE value(i.e. how I can jump to specified address in FLASH) and please give the sequence (in codewarrior).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sathish&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--&lt;BR /&gt;Alban Edit: Please &lt;STRONG&gt;always&lt;/STRONG&gt; include FSL Part Number in Message Subject line.&lt;BR /&gt;&lt;A&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Alban on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-10-10&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;08:45 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 13:42:55 GMT</pubDate>
    <dc:creator>sathish_K</dc:creator>
    <dc:date>2007-10-10T13:42:55Z</dc:date>
    <item>
      <title>MC9S12XDP512 - How to jump specified startup code in flash</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-jump-specified-startup-code-in-flash/m-p/154173#M4581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Dear All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Microcontroller : mc9s12xdp512&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two startup code created in codewarrior and it is stored in two different address of flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How I can jump to specified startup code according with the MODE value(i.e. how I can jump to specified address in FLASH) and please give the sequence (in codewarrior).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sathish&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--&lt;BR /&gt;Alban Edit: Please &lt;STRONG&gt;always&lt;/STRONG&gt; include FSL Part Number in Message Subject line.&lt;BR /&gt;&lt;A&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Alban on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-10-10&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;08:45 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 13:42:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-jump-specified-startup-code-in-flash/m-p/154173#M4581</guid>
      <dc:creator>sathish_K</dc:creator>
      <dc:date>2007-10-10T13:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XDP512 - How to jump specified startup code in flash</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-jump-specified-startup-code-in-flash/m-p/154174#M4582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;From the reset vector:&lt;BR /&gt;&lt;BR /&gt;void reset (void)&lt;BR /&gt;{&lt;BR /&gt;asm LDS #$2100; // or where ever you have the stack...&lt;BR /&gt;&lt;BR /&gt;if(MODE == something)&lt;BR /&gt;{&lt;BR /&gt;runSomeCode();&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;runSomeOtherCode();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yes, this will leave stuff on the stack permanently, so you will have to reset the stack pointer yet again on top of main().&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 17:12:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-jump-specified-startup-code-in-flash/m-p/154174#M4582</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2007-10-10T17:12:46Z</dc:date>
    </item>
  </channel>
</rss>

