<?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: MC9S12XDP512 - How to store  two different startup code in a flash</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150594#M4265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;New Question = New Tread with appropriate subject line.&lt;BR /&gt;&lt;BR /&gt;This thread is closed.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 13:26:11 GMT</pubDate>
    <dc:creator>Alban</dc:creator>
    <dc:date>2007-10-10T13:26:11Z</dc:date>
    <item>
      <title>MC9S12XDP512 - How to store  two different startup code in a flash</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150587#M4258</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;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm using MC9S12XDP512 microcontroller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How I can store the two different startup code in a flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first startup code used as a normal mode operation and the second startup code used for debugging (i.e. using this I'll modify the normal mode operation code in flash). How I can jump to the specified startup code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please any one help....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sathish.&lt;/SPAN&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;/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-09-27&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;01:38 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 16:31:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150587#M4258</guid>
      <dc:creator>sathish_K</dc:creator>
      <dc:date>2007-09-27T16:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to store  two different startup code in a flash</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150588#M4259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Why can't you use a compiler switch?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 17:01:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150588#M4259</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2007-09-27T17:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to store  two different startup code in a flash</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150589#M4260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I don't think I'm getting this.&lt;BR /&gt;&lt;BR /&gt;Do you mean you want to test in your program and then decide how it boots? In that case, you have to 'split' your startup code. Figure out what you need to get the part started enough to do your test, like look for a pin held high or low and then make the decision which path to take.&lt;BR /&gt;&lt;BR /&gt;But I still don't get this. Do you mean you want to use all templates and/or examples and do something custom? In that case, you're going to have to write your own startup code and figure out how and where to put your 'test'.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 17:10:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150589#M4260</guid>
      <dc:creator>mke_et</dc:creator>
      <dc:date>2007-09-27T17:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XDP512 - How to store  two different startup code in a flash</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150590#M4261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;Hi&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;i understood like this&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;Among the two codes, one is a boot loader and this is used to flash the second code (application). If it is like that, you can write the start address of bootloader startup code at reset address (0xFFFE). And from the bootloader code, you can jump to the&amp;nbsp; of application start address.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;Regards&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;Ang&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 19:43:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150590#M4261</guid>
      <dc:creator>ang</dc:creator>
      <dc:date>2007-09-27T19:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XDP512 - How to store  two different startup code in a flash</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150591#M4262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ok, here is my take. He basically has two different places he wants to jump to on startup.&lt;BR /&gt;&lt;BR /&gt;So you need some way to indicate which place to start. Assume you have a switch or jumper.&lt;BR /&gt;&lt;BR /&gt;The startup vector is programmed to jump to some code that reads the jumper and jumps to the desired place.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or am I jumping around too much :smileyhappy:.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 23:21:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150591#M4262</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2007-09-27T23:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XDP512 - How to store  two different startup code in a flash</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150592#M4263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;satish.K,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If I understood your request, you want your software to know if MCU is running in debugging mode or in normal mode?&amp;nbsp;Do you want your software to know if BDM pod is connected or not? If so then check MODE register. Normally, for debugging we are using special single chip mode (MODE==0). Normal single chip mpde is MODE==0x80. You can find MODE bits values for example from Figure 17-5. Mode Transition Diagram when MCU is Unsecured.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 13:55:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150592#M4263</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2007-09-28T13:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XDP512 - How to store  two different startup code in a flash</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150593#M4264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks for ur information and i have another one question.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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;BR /&gt;&lt;BR /&gt;Microcontroller : mc9s12xdp512&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;stathish.K&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 12:36:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150593#M4264</guid>
      <dc:creator>sathish_K</dc:creator>
      <dc:date>2007-10-10T12:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12XDP512 - How to store  two different startup code in a flash</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150594#M4265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;New Question = New Tread with appropriate subject line.&lt;BR /&gt;&lt;BR /&gt;This thread is closed.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 13:26:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12XDP512-How-to-store-two-different-startup-code-in-a-flash/m-p/150594#M4265</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-10-10T13:26:11Z</dc:date>
    </item>
  </channel>
</rss>

