<?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>MCU BootloaderのトピックPutting vector table in RAM</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/Putting-vector-table-in-RAM/m-p/897296#M941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working on a project that uses a mcuboot and application on the same flash memory. So far everything is working fine, but I have ran into a problem. The application uses MQX and has a special start of file signature that it needs for mcuboot configuration parameters. This is the same spot as the vector table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was pointed to&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4367.pdf"&gt;this guide&lt;/A&gt;&amp;nbsp;that said to set MQX_ROM_VECTORS to 0 and compile. It appears that the vector reset table is no longer at 0 and is getting put in the RAM area, but when I try to program my board I get the following error .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75230i1756E043A7AFD7C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I don't have MQX_ROM_VECTORS set to 0 and have a base version of the project, everything programs and builds just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the linker file I am using.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How do I get the vector table into RAM?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2019 14:37:59 GMT</pubDate>
    <dc:creator>vrg6</dc:creator>
    <dc:date>2019-04-30T14:37:59Z</dc:date>
    <item>
      <title>Putting vector table in RAM</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Putting-vector-table-in-RAM/m-p/897296#M941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working on a project that uses a mcuboot and application on the same flash memory. So far everything is working fine, but I have ran into a problem. The application uses MQX and has a special start of file signature that it needs for mcuboot configuration parameters. This is the same spot as the vector table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was pointed to&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4367.pdf"&gt;this guide&lt;/A&gt;&amp;nbsp;that said to set MQX_ROM_VECTORS to 0 and compile. It appears that the vector reset table is no longer at 0 and is getting put in the RAM area, but when I try to program my board I get the following error .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75230i1756E043A7AFD7C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I don't have MQX_ROM_VECTORS set to 0 and have a base version of the project, everything programs and builds just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the linker file I am using.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How do I get the vector table into RAM?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 14:37:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Putting-vector-table-in-RAM/m-p/897296#M941</guid>
      <dc:creator>vrg6</dc:creator>
      <dc:date>2019-04-30T14:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Putting vector table in RAM</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Putting-vector-table-in-RAM/m-p/897297#M942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Typically you don't put vector table directly to RAM for internal flash targets. The vector table is located physically in internal flash in non-volatile memory and the startup code makes a copy from flash to RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general with the supported toolchain, all need is to build BSP and PSP with #define MQX_ROM_VECTORS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In user configuration of your board user_config.h:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define&amp;nbsp;MQX_ROM_VECTORS&amp;nbsp;0&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define&amp;nbsp;BSPCFG_ENABLE_ITTYF&amp;nbsp;1&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;#define&amp;nbsp;BSP_DEFAULT_IO_CHANNEL&amp;nbsp;"ittyf:"&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Build MQX libraries. Then build /mqx/examples/hello2 application for internal flash Debug target. Load hello2 executable to MCU and run.&lt;/P&gt;&lt;P&gt;I break in idle task, in debugger I can see Cortex-M4 VTOR = 0x1FFF0000. At address 0x1FFF0000 I can see vector table, most of vectors point to _int_kernel_isr().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if this helps,&lt;/P&gt;&lt;P&gt;have a nice day!&lt;/P&gt;&lt;P&gt;Soledad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 17:50:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Putting-vector-table-in-RAM/m-p/897297#M942</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2019-05-02T17:50:23Z</dc:date>
    </item>
  </channel>
</rss>

