<?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>CodeWarrior Development ToolsのトピックHow to move the MC9S12DP512  interrupt vector</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-move-the-MC9S12DP512-interrupt-vector/m-p/711918#M6330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,I now use MC9S12DP512 do BootLoader encountered a problem, MC9S12DP512 has no IVBR register, so, how to move the interrupt vector?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Oct 2017 09:15:07 GMT</pubDate>
    <dc:creator>peijinwang</dc:creator>
    <dc:date>2017-10-21T09:15:07Z</dc:date>
    <item>
      <title>How to move the MC9S12DP512  interrupt vector</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-move-the-MC9S12DP512-interrupt-vector/m-p/711918#M6330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,I now use MC9S12DP512 do BootLoader encountered a problem, MC9S12DP512 has no IVBR register, so, how to move the interrupt vector?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Oct 2017 09:15:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-move-the-MC9S12DP512-interrupt-vector/m-p/711918#M6330</guid>
      <dc:creator>peijinwang</dc:creator>
      <dc:date>2017-10-21T09:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to move the MC9S12DP512  interrupt vector</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-move-the-MC9S12DP512-interrupt-vector/m-p/711919#M6331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peijing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For MC9S12DP, One solution is to use secondary vector jump table for bootloader.&lt;/P&gt;&lt;P&gt;See&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN2153.pdf" title="https://www.nxp.com/docs/en/application-note/AN2153.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN2153.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;demo code&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/webapp/Download?colCode=AN2153SW&amp;amp;appType=license" title="https://www.nxp.com/webapp/Download?colCode=AN2153SW&amp;amp;appType=license"&gt;https://www.nxp.com/webapp/Download?colCode=AN2153SW&amp;amp;appType=license&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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>Mon, 23 Oct 2017 08:57:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-move-the-MC9S12DP512-interrupt-vector/m-p/711919#M6331</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-10-23T08:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to move the MC9S12DP512  interrupt vector</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-move-the-MC9S12DP512-interrupt-vector/m-p/711920#M6332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, thank you for your reply! After reading AN2153 ,I have a few questions puzzled.&lt;/P&gt;&lt;P&gt;1.how to use&amp;nbsp;C language to write the second interrupt vector jump table?&lt;/P&gt;&lt;P&gt;2.My Bootloader only lack the second interrupt vector &lt;SPAN&gt;jump&amp;nbsp;&lt;/SPAN&gt;table, how to add the &lt;SPAN&gt;the second interrupt vector jump table&lt;/SPAN&gt;&amp;nbsp;use assembly language ? The following is my assembly boot code：&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xref main ;&lt;/P&gt;&lt;P&gt;xdef _BootStart ;&lt;BR /&gt;AppResetVect: equ $effe ; here is stored reset vector of user application&lt;BR /&gt;StackTop: equ $3000 ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;_BootStart: ;&lt;BR /&gt; nop ;wait a few cycles for stabilization of the signal&lt;BR /&gt; nop&lt;BR /&gt; nop&lt;BR /&gt; nop&lt;BR /&gt; nop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ldd AppResetVect ;&lt;BR /&gt; cpd #$ffff ;&lt;BR /&gt; beq GoBoot ; if the application reset vector is not available&lt;BR /&gt; ; then start the bootloader&lt;BR /&gt; ldx AppResetVect ;&lt;BR /&gt; jmp 0,x ; jump to the application&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;GoBoot:&amp;nbsp;&lt;/P&gt;&lt;P&gt;lds #StackTop ;&amp;nbsp;&lt;BR /&gt; jmp main&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 13:06:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-move-the-MC9S12DP512-interrupt-vector/m-p/711920#M6332</guid>
      <dc:creator>peijinwang</dc:creator>
      <dc:date>2017-10-23T13:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to move the MC9S12DP512  interrupt vector</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-move-the-MC9S12DP512-interrupt-vector/m-p/711921#M6333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peijin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In C, I suggest you use inline assembly to implement jump table&lt;/P&gt;&lt;P&gt;asm jmp ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an example to implement jump table in assembly&lt;/P&gt;&lt;P&gt;MyCode:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SECTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;entry1: NOP&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOP&lt;BR /&gt;entry2: NOP&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOP&lt;BR /&gt;entry3: NOP&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOP&lt;BR /&gt;main:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JMP [goto2,pcr]&lt;BR /&gt;goto1: DC.W entry1&lt;BR /&gt;goto2: DC.W entry2&lt;BR /&gt;goto3: DC.W entry3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Tue, 24 Oct 2017 07:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-move-the-MC9S12DP512-interrupt-vector/m-p/711921#M6333</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-10-24T07:13:07Z</dc:date>
    </item>
  </channel>
</rss>

