<?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 Re: Vector Redirection Question in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Vector-Redirection-Question/m-p/155069#M8772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will be much better off making the bootloader run without interrupts.&amp;nbsp; Otherwise things get very complicated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will need to have the bootloader figure out how to jump to the application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by TurboBob on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-02-25&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;11:56 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2009 12:52:00 GMT</pubDate>
    <dc:creator>TurboBob</dc:creator>
    <dc:date>2009-02-26T12:52:00Z</dc:date>
    <item>
      <title>Vector Redirection Question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Vector-Redirection-Question/m-p/155068#M8771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently writing an I2C bootloader for the JM32.&lt;/P&gt;&lt;P&gt;The MCU exits from reset and a GPIO is checked for '1' or '0' to determine if an updated is needed (our host controller will toggle this GPIO if an update is needed).&lt;/P&gt;&lt;P&gt;My bootloader currently uses interrupts to catch the incoming I2C Bytes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't completely understand if I am able to use interrupts in both the bootloader and the application code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the bootloader project should I disable vector redirection since this is not intended to be field updated?&lt;/P&gt;&lt;P&gt;In the user application project should I enable vector redirection and when the program jumps to the user application it will redirect the vectors to their new location?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, do I tell the linker to place the bootloader in the top flash page by editing the PRM file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appriciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;S.B.D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 03:45:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Vector-Redirection-Question/m-p/155068#M8771</guid>
      <dc:creator>S_B_D</dc:creator>
      <dc:date>2009-02-23T03:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Vector Redirection Question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Vector-Redirection-Question/m-p/155069#M8772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will be much better off making the bootloader run without interrupts.&amp;nbsp; Otherwise things get very complicated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will need to have the bootloader figure out how to jump to the application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by TurboBob on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-02-25&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;11:56 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 12:52:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Vector-Redirection-Question/m-p/155069#M8772</guid>
      <dc:creator>TurboBob</dc:creator>
      <dc:date>2009-02-26T12:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Vector Redirection Question</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Vector-Redirection-Question/m-p/155070#M8773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to use segments and set the PRM file to locate that code in the boot segment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If doing this in separate projects, then you can set up the memory spaces to handle it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just finished getting my USB bootloader to work.&amp;nbsp; It is built as one project with the ap and the bootloader in one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by TurboBob on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-02-25&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;11:58 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 12:52:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Vector-Redirection-Question/m-p/155070#M8773</guid>
      <dc:creator>TurboBob</dc:creator>
      <dc:date>2009-02-26T12:52:48Z</dc:date>
    </item>
  </channel>
</rss>

