<?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: LPC11U68 secondary bootloader MTB conflicts with ram vectors? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-secondary-bootloader-MTB-conflicts-with-ram-vectors/m-p/730557#M29548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;To disable the MTB feature, I have another idea, the LPC11U68 contains the Cortex M0+ core which integrates the Vector Table Offset Register (VTOR), it support to relocate the interrupt vector.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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, 18 Jun 2018 10:29:27 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2018-06-18T10:29:27Z</dc:date>
    <item>
      <title>LPC11U68 secondary bootloader MTB conflicts with ram vectors?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-secondary-bootloader-MTB-conflicts-with-ram-vectors/m-p/730553#M29544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a secondary bootloader for the LPC11U68 chip which jumps to our main program at 0x4004.&lt;/P&gt;&lt;P&gt;In the main program I copy the interrupt vectors to an array set to a ram array set to be located at vtable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt; int32_t vector_in_ram[AQUA_CPU_INTERRUPTS] __attribute__ ((section ("vtable")));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I then set the interrupts to be used from the ram.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;LPC_SYSCTL-&amp;gt;SYSMEMREMAP = 0x1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that the LPC11U68 chip maps the MTB trace in the local SRAM starting at address 0x1000 0000.&lt;/P&gt;&lt;P&gt;The vtable is located by the link script to 0x10000300 whereas for my use it should be at the MTB trace address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"When the MAP bits in the SYSMEMREMAP register are set to 0x0 or 0x1, the boot&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ROM or RAM respectively are mapped to the bottom 512 bytes of the memory map&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(addresses 0x0000 0000 to 0x0000 0200)."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I disable the MTB trace in release code and change the link script just to remove it leaving everything else as is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my project Preprocessor defines there is __MTB_BUFFER_SIZE=256.&lt;/P&gt;&lt;P&gt;I removed it and recompiled but it did not help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 12:43:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-secondary-bootloader-MTB-conflicts-with-ram-vectors/m-p/730553#M29544</guid>
      <dc:creator>kiryat8</dc:creator>
      <dc:date>2018-03-05T12:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11U68 secondary bootloader MTB conflicts with ram vectors?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-secondary-bootloader-MTB-conflicts-with-ram-vectors/m-p/730554#M29545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #646464; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.9994px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="290018" data-username="kiryat8" href="https://community.nxp.com/people/kiryat8" style="margin: 0px; padding: 0px; border: 0px; font-weight: 600; font-style: normal; font-size: 11.9994px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #5e89c1; fill: #5e89c1; text-decoration: none; transition: color 0.1s linear; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;David Kaplan&lt;/A&gt;,&lt;/P&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;You can remove the Dbg_MTB.ini to disable the MTB trace feature.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44530iE1EBF3DF3516904E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px; text-align: center;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt; Fig 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px; text-align: left;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;Hope it helps.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;Have a great day,&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;TIC&lt;/DIV&gt;&lt;P&gt;&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, 06 Mar 2018 03:18:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-secondary-bootloader-MTB-conflicts-with-ram-vectors/m-p/730554#M29545</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-03-06T03:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11U68 secondary bootloader MTB conflicts with ram vectors?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-secondary-bootloader-MTB-conflicts-with-ram-vectors/m-p/730555#M29546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could not find a Dbg_MTB in the NXP or my project directory nor could I find a dialog as in the photo.&lt;/P&gt;&lt;P&gt;I use the MCUXpresso IDE v10.1.1_606 IDE and just need to remove the MTB stuff if possible from my release (not debug) link script so that I can use the ram interrupt vector which I understand start a 0x0 in the ram.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 04:06:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-secondary-bootloader-MTB-conflicts-with-ram-vectors/m-p/730555#M29546</guid>
      <dc:creator>kiryat8</dc:creator>
      <dc:date>2018-03-06T04:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11U68 secondary bootloader MTB conflicts with ram vectors?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-secondary-bootloader-MTB-conflicts-with-ram-vectors/m-p/730556#M29547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another related question, please.&lt;/P&gt;&lt;P&gt;I tied to bypass the problem moving the interrupt vectors to ram in my main program by using interrupt jumps in my bootloader program. This I understand will add just the jump commands latency. My main program uses the USB rom serial code. I seem to have a problem using the bootloader jump method with the USB when my main program is located at 0x4000. The program seems to start and I can seem debug printout on an uart port but stalls apparently in the USB initialization. The main program works when located at address 0. I saw on the forum where there were problems with the CAN rom interface in a similar situation. It my just be a bug somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;&amp;nbsp;** Function name:&amp;nbsp;&amp;nbsp; USB_IRQHandler&lt;BR /&gt;&amp;nbsp;**&lt;BR /&gt;&amp;nbsp;** Description:&amp;nbsp;&amp;nbsp; &amp;nbsp; Redirects CPU to application defined handler&lt;BR /&gt;&amp;nbsp;**&lt;BR /&gt;&amp;nbsp;** Parameters:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; None&lt;BR /&gt;&amp;nbsp;**&lt;BR /&gt;&amp;nbsp;** Returned value:&amp;nbsp; None&lt;BR /&gt;&amp;nbsp;**&lt;BR /&gt;&amp;nbsp;*****************************************************************************/&lt;BR /&gt;void USB_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Re-direct interrupt, get handler address from application vector table */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;asm volatile("ldr r0, =0x4098");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;asm volatile("ldr r0, [r0]");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;asm volatile("mov pc, r0");&lt;BR /&gt;} // USB_IRQHandler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;&amp;nbsp;** Function name:&amp;nbsp;&amp;nbsp; USB_FIQHandler&lt;BR /&gt;&amp;nbsp;**&lt;BR /&gt;&amp;nbsp;** Description:&amp;nbsp;&amp;nbsp; &amp;nbsp; Redirects CPU to application defined handler&lt;BR /&gt;&amp;nbsp;**&lt;BR /&gt;&amp;nbsp;** Parameters:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; None&lt;BR /&gt;&amp;nbsp;**&lt;BR /&gt;&amp;nbsp;** Returned value:&amp;nbsp; None&lt;BR /&gt;&amp;nbsp;**&lt;BR /&gt;&amp;nbsp;*****************************************************************************/&lt;BR /&gt;void USB_FIQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Re-direct interrupt, get handler address from application vector table */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;asm volatile("ldr r0, =0x409C");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;asm volatile("ldr r0, [r0]");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;asm volatile("mov pc, r0");&lt;BR /&gt;} // USB_FIQHandler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;BR /&gt;&amp;nbsp;** Function name:&amp;nbsp;&amp;nbsp; USBWakeup_IRQHandler&lt;BR /&gt;&amp;nbsp;**&lt;BR /&gt;&amp;nbsp;** Description:&amp;nbsp;&amp;nbsp; &amp;nbsp; Redirects CPU to application defined handler&lt;BR /&gt;&amp;nbsp;**&lt;BR /&gt;&amp;nbsp;** Parameters:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; None&lt;BR /&gt;&amp;nbsp;**&lt;BR /&gt;&amp;nbsp;** Returned value:&amp;nbsp; None&lt;BR /&gt;&amp;nbsp;**&lt;BR /&gt;&amp;nbsp;*****************************************************************************/&lt;BR /&gt;void USBWakeup_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Re-direct interrupt, get handler address from application vector table */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;asm volatile("ldr r0, =0x40B8");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;asm volatile("ldr r0, [r0]");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;asm volatile("mov pc, r0");&lt;BR /&gt;} // USBWakeup_IRQHandler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 05:45:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-secondary-bootloader-MTB-conflicts-with-ram-vectors/m-p/730556#M29547</guid>
      <dc:creator>kiryat8</dc:creator>
      <dc:date>2018-03-06T05:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11U68 secondary bootloader MTB conflicts with ram vectors?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-secondary-bootloader-MTB-conflicts-with-ram-vectors/m-p/730557#M29548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;To disable the MTB feature, I have another idea, the LPC11U68 contains the Cortex M0+ core which integrates the Vector Table Offset Register (VTOR), it support to relocate the interrupt vector.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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, 18 Jun 2018 10:29:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-secondary-bootloader-MTB-conflicts-with-ram-vectors/m-p/730557#M29548</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-06-18T10:29:27Z</dc:date>
    </item>
  </channel>
</rss>

