<?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: Secondary bootloader for LPC11U24 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Secondary-bootloader-for-LPC11U24/m-p/570161#M20002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Saraswathi C,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem wich you describe is kind of the same to the issue I am furrently facing.&lt;/P&gt;&lt;P&gt;I was wondering if you have been able to figure out an solution or workaround to this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;H.W. Noorlander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Nov 2016 10:08:06 GMT</pubDate>
    <dc:creator>harrienoorlande</dc:creator>
    <dc:date>2016-11-04T10:08:06Z</dc:date>
    <item>
      <title>Secondary bootloader for LPC11U24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Secondary-bootloader-for-LPC11U24/m-p/570160#M20001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by saraswathi on Mon May 27 07:15:42 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on secondary bootloader for LPC11U24. I am using USB interrupt at secondary bootloader and application code. Hence I can't redirect the interrupt to application. For this reason I am using remapping of interrupts to RAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I reffered the post &lt;/SPAN&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?t=3615&lt;/A&gt;&lt;SPAN&gt; and copied the following code to to my application main.c file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B]#define VECTOR_IN_RAM_LENGTH&amp;nbsp; 47&amp;nbsp;&amp;nbsp; //stackpointer not counted&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; uint32_t vector_in_ram[VECTOR_IN_RAM_LENGTH] __attribute__ ((section ("vtable")));[/B]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B]&amp;nbsp; uint32_t *p = (uint32_t *) 0x1000;[/B]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B]&amp;nbsp; __disable_irq();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; // copy the interrupt vector table on base RAM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; for (i=0; i&amp;lt;VECTOR_IN_RAM_LENGTH; i++)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vector_in_ram&lt;/SPAN&gt;&lt;I&gt; = *(p + i);&lt;BR /&gt;&amp;nbsp; LPC_SYSCON-&amp;gt;SYSMEMREMAP = 0x1;&lt;BR /&gt;&amp;nbsp; __enable_irq();[/B]&lt;BR /&gt; &lt;BR /&gt;I am just modifying here "uint32_t *p = (uint32_t *) 0x4000;" since my application start address is 4000.&lt;BR /&gt; &lt;BR /&gt;With only this much change the interrupts are not working at application. What other modifications I need to do at application main.c?&lt;BR /&gt;What needs to be added at bootloader code?&lt;BR /&gt; &lt;BR /&gt;Also, I giving the memory mapping of both the projects.&lt;BR /&gt;The memory mapping selected for bootloader is as follows:&lt;BR /&gt;/* Define each memory region */&lt;BR /&gt;MFlash32 (rx) : ORIGIN = 0x0, LENGTH = 0x3000 /* 12k */&lt;BR /&gt;RamLoc8 (rwx) : ORIGIN = 0x100000c0, LENGTH = 0x1f40 /* 7k */&lt;BR /&gt;RamUsb2 (rwx) : ORIGIN = 0x20004000, LENGTH = 0x800 /* 2k */&lt;BR /&gt; &lt;BR /&gt;/* Define a symbol for the top of each memory region */&lt;BR /&gt;__top_MFlash32 = 0x0 + 0x3000;&lt;BR /&gt;__top_RamLoc8 = 0x100000c0 + 0x1f40;&lt;BR /&gt;__top_RamUsb2 = 0x20004000 + 0x800;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;The memory mapping selected for application is as follows:&lt;BR /&gt;/* Define each memory region */&lt;BR /&gt;MFlash32 (rx) : ORIGIN = 0x4000, LENGTH = 0x4000 /* 16k */&lt;BR /&gt;RamLoc8 (rwx) : ORIGIN = 0x100000c0, LENGTH = 0x1f40 /* 7k */&lt;BR /&gt;RamUsb2 (rwx) : ORIGIN = 0x20004000, LENGTH = 0x800 /* 2k */&lt;BR /&gt;&lt;BR /&gt;/* Define a symbol for the top of each memory region */&lt;BR /&gt;__top_MFlash32 = 0x4000 + 0x4000;&lt;BR /&gt;__top_RamLoc8 = 0x100000c0 + 0x1f40;&lt;BR /&gt;__top_RamUsb2 = 0x20004000 + 0x800;&lt;BR /&gt; &lt;BR /&gt;Can anyone guide me how to solve this issue?&lt;BR /&gt; &lt;BR /&gt;With regards&lt;BR /&gt;Saraswathi C&lt;/I&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:23:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Secondary-bootloader-for-LPC11U24/m-p/570160#M20001</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Secondary bootloader for LPC11U24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Secondary-bootloader-for-LPC11U24/m-p/570161#M20002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Saraswathi C,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem wich you describe is kind of the same to the issue I am furrently facing.&lt;/P&gt;&lt;P&gt;I was wondering if you have been able to figure out an solution or workaround to this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;H.W. Noorlander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 10:08:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Secondary-bootloader-for-LPC11U24/m-p/570161#M20002</guid>
      <dc:creator>harrienoorlande</dc:creator>
      <dc:date>2016-11-04T10:08:06Z</dc:date>
    </item>
  </channel>
</rss>

