<?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: Copy vector to RAM in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Copy-vector-to-RAM/m-p/418664#M23871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2015 08:44:50 GMT</pubDate>
    <dc:creator>xavierbuhot</dc:creator>
    <dc:date>2015-06-23T08:44:50Z</dc:date>
    <item>
      <title>Copy vector to RAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Copy-vector-to-RAM/m-p/418661#M23868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know the goal of the RAM copy of the vector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my kinetis K60 example there is in the start function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Copy the vector table to RAM */&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (__VECTOR_RAM != __VECTOR_TABLE)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (n = 0; n &amp;lt; 0x410; n++)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __VECTOR_RAM[n] = __VECTOR_TABLE[n];&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Point the VTOR to the new copy of the vector table */&lt;/P&gt;&lt;P&gt;&amp;nbsp; write_vtor((uint32)__VECTOR_RAM);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the main advantage to copy the vector table into the RAM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 09:32:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Copy-vector-to-RAM/m-p/418661#M23868</guid>
      <dc:creator>xavierbuhot</dc:creator>
      <dc:date>2015-06-22T09:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Copy vector to RAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Copy-vector-to-RAM/m-p/418662#M23869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN class="notranslate"&gt;However in some application, we need move vector table to other address. A typical usage is developing boot loader code. The boot loader code occupies the first region of the FLASH memory (the lowest memory address space starting from 0x0000000).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN class="notranslate"&gt;This placement moves at the beginning of the available memory space and it is necessary to shift this address in the user application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN class="notranslate"&gt;for more information, please see this document that may help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;A href="https://community.nxp.com/docs/DOC-103961"&gt;Interrupt Vector Redirection Method in Kinetis&lt;/A&gt; &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN class="notranslate"&gt;can this answer help you?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&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, 22 Jun 2015 11:03:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Copy-vector-to-RAM/m-p/418662#M23869</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-06-22T11:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Copy vector to RAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Copy-vector-to-RAM/m-p/418663#M23870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xavier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another obvious reason is if you want to dynamically change the interrupt handlers.&amp;nbsp; For example, some of the Kinetis SDK code does this i.e. it installs an interrupt handler as part of the setup rather than hard coding in the vector table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I generally prefer the VT in ROM unless there is a real need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 11:19:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Copy-vector-to-RAM/m-p/418663#M23870</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2015-06-22T11:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Copy vector to RAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Copy-vector-to-RAM/m-p/418664#M23871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 08:44:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Copy-vector-to-RAM/m-p/418664#M23871</guid>
      <dc:creator>xavierbuhot</dc:creator>
      <dc:date>2015-06-23T08:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Copy vector to RAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Copy-vector-to-RAM/m-p/418665#M23872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are welcome! &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&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, 23 Jun 2015 08:55:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Copy-vector-to-RAM/m-p/418665#M23872</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-06-23T08:55:40Z</dc:date>
    </item>
  </channel>
</rss>

