<?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: lpc1768 flash and vector table for an application in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516328#M1623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Wed Sep 24 07:00:15 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I send my binarry output file my second dword file is ok?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:22:04 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:22:04Z</dc:date>
    <item>
      <title>lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516302#M1597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Tue Sep 16 22:41:41 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hello ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to jump to an address ( for example 0xa000)( sector 10 in lpc1768) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use this code but it it;s not working! what is the reason?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;asm("MOV R2 , #0Xa000");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm("BLX R2");&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516302#M1597</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516303#M1598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Tue Sep 16 22:51:59 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What's in sector 10? An executable code or a vector table?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516303#M1598</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516304#M1599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pacman on Tue Sep 16 23:43:35 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Would the following work ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;asm("movw r2,#0xa001; blx r2");&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516304#M1599</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516305#M1600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Tue Sep 16 23:56:47 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Pacman&lt;/STRONG&gt;&lt;BR /&gt;Would the following work ?&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;asm("movw r2,#0xa001; blx r2");&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And what's in your 0xa001?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516305#M1600</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516306#M1601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wmues on Wed Sep 17 00:37:24 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Bit 0 of your address must be set to 1, because it's a marker of THUMB mode. And the Cortex-M3 is a THUMB arm controller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But why not make it in C?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void (*mycall) (void) = (void (*)(void)) 0xa001;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mycall();&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516306#M1601</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516307#M1602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Wed Sep 17 00:43:01 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;my application program will be statrt at this address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and I need this code for my bootloader.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516307#M1602</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516308#M1603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Wed Sep 17 00:49:14 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: dariush_abbasi868&lt;/STRONG&gt;&lt;BR /&gt;my application program will be statrt at this address.&lt;BR /&gt;and I need this code for my bootloader.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then this sector is including a vector table&amp;nbsp; :exmark: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To start an user application it's necessary to set SP, PC and vector table as described in AN10866:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;__asm void boot_jump( uint32_t address ){
&amp;nbsp;&amp;nbsp; LDR SP, [R0];Load new stack pointer address
&amp;nbsp;&amp;nbsp; LDR PC, [R0, #4];Load new program counter address
}

void execute_user_code(void)
{
/* Change the Vector Table to the USER_FLASH_START 
in case the user application uses interrupts */
SCB-&amp;gt;VTOR = USER_FLASH_START &amp;amp; 0x1FFFFF80;

boot_jump(USER_FLASH_START);
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516308#M1603</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516309#M1604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Wed Sep 17 00:52:11 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void (*mycall) (void) = (void (*)(void)) 0x0001;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mycall();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at first I&amp;nbsp; am going to tesst reset (0x00) !!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;by above code my program is hanging and goes to&amp;nbsp; cstartup.s file B Default_Handler line!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my compiler is IAR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but by asm("movw r2,#0xa001; blx r2"); it go to the next line and do nothing?!!!!!!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what's wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516309#M1604</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516310#M1605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Wed Sep 17 00:57:31 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Then this sector is including a vector table Exclamation Mark&lt;BR /&gt;&lt;BR /&gt;To start an user application it's necessary to set SP, PC and vector table as described in AN10866:&lt;BR /&gt;&lt;BR /&gt;__asm void boot_jump( uint32_t address ){&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LDR SP, [R0];Load new stack pointer address&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LDR PC, [R0, #4];Load new program counter address&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void execute_user_code(void)&lt;BR /&gt;{&lt;BR /&gt;/* Change the Vector Table to the USER_FLASH_START &lt;BR /&gt;in case the user application uses interrupts */&lt;BR /&gt;SCB-&amp;gt;VTOR = USER_FLASH_START &amp;amp; 0x1FFFFF80;&lt;BR /&gt;&lt;BR /&gt;boot_jump(USER_FLASH_START);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to call this two function at first an then use jump or not?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if I want ti jump to another sector this two function the same?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516310#M1605</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516311#M1606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Wed Sep 17 01:22:29 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Please read AN10866&amp;nbsp; :exmark:&amp;nbsp; :exmark: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AN10866 is describing that the first word in a vector table is the stack pointer and [color=#f00]the second word is the program start address[/color].&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you just have to define the correct start address of your first application code sector in USER_FLASH_START and then call function execute_user_code()...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516311#M1606</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516312#M1607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Wed Sep 17 08:59:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi dariush,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure, if you also want to relocate your vector table. If you just want to jump you can used method mentioned by Wumes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you want to jump at ADDRESS location you can use&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void (*mycall) (void) = (void (*)(void)) ADDRESS+1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mycall();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will have to put a function at location ADDRESS so that you can test it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is another app note which explains it in more detail.&amp;nbsp; It also uses c code to jump.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Fan11257-spi-secondary-boot-loader" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/an11257-spi-secondary-boot-loader&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It may be helpful for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516312#M1607</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516313#M1608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Wed Sep 17 09:32:49 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mc&lt;/STRONG&gt;&lt;BR /&gt;Not sure, if you also want to relocate your vector table.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course. He's talking about a bootloader&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AN11257 is relocating the vector table in user application&amp;nbsp; :exmark: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think that his user application is doing that. Therefore I would strongly recommend to load new SP and vector table in bootloader code as described above....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course that's also doable in C:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
void execute_user_code(void)
{
 void (*user_code_entry)(void);

 unsigned *p;// used for loading address of reset handler from user flash

 /* Change the Vector Table to the USER_FLASH_START
 in case the user application uses interrupts */

 SCB-&amp;gt;VTOR = (USER_START_SECTOR_ADDRESS &amp;amp; 0x1FFFFF80);

 // Load contents of second word of user flash - the reset handler address
 // in the applications vector table
 p = (unsigned *)(USER_START_SECTOR_ADDRESS +4);
 // Set user_code_entry to be the address contained in that second word
 // of user flash
 user_code_entry = (void *) *p;
 // Jump to user application
&amp;nbsp; user_code_entry();
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516313#M1608</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516314#M1609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by whitecoe on Wed Sep 17 09:38:42 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Also - watch the setup of your stack pointer. Lots of previous posts about this if you do a forum search for something like "bootloader stack", for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Flpc1768-secondary-usb-bootloader-lock%23comment-1133905" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/lpc1768-secondary-usb-bootloader-lock#comment-1133905&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516314#M1609</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516315#M1610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Sat Sep 20 00:39:08 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hello &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As I am a beginner , at first I want to have a application that start from sector 10 (0xa000) and everything in it is from 0xa000&amp;nbsp; (vector table&amp;nbsp; and flash) and it can work by itself without secondary boot loader. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is it possible ?&amp;nbsp; I am working with Iar and :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img=220x150]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi59.tinypic.com%2F2d8nu5v.jpg%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://i59.tinypic.com/2d8nu5v.jpg[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img=50x70]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fhttp%3A%2F%2Fi62.tinypic.com%2F2r5u8h0.jpg%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://http://i62.tinypic.com/2r5u8h0.jpg[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img=220x150]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi62.tinypic.com%2F122292b.jpg%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://i62.tinypic.com/122292b.jpg[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when i select rom adress at 0xa000 and vector in 00 it's working but at 00 i have something and i want to use this part for my boot loader at future ! when i select vector address at 0xa00 and rom both at a000 it's not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what is wrong? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;maybe I have to do something in VTOR !!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516315#M1610</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516316#M1611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Sat Sep 20 05:41:43 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;BY default boot vector and ram address are 00 and when I program in 0o address there are something and after that some ff and from 0x300&amp;nbsp; start my application ( why 0x300? ) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and when I change both of them to 0xa000&amp;nbsp; and SCB-&amp;gt;VTOR =&amp;nbsp; 0XA000; at 0xa00 start but I can not find 0x300(!)&amp;nbsp; and data are continual . &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and program not working .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516316#M1611</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516317#M1612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Mon Sep 22 03:47:34 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;pls help me &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516317#M1612</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516318#M1613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kabikov on Mon Sep 22 04:41:32 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you write your own bootloader that start your program form 0xA000?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you ignore interrupt and turn off preferential that used in bootloader?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516318#M1613</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516319#M1614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Mon Sep 22 06:04:18 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hello &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my own boot loader stat at 00 and in this program i will jump to 0xa000 ( in this part I havenot any problem )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my problem is in my application .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when i use application in 00 address and also it's vectors is is working by itself ( without bootloader) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when I want to use it for application I have to set its start address at 0xa00 and also it's vector address because I have to use 00 address for bootlaoder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how I can set all of my application&amp;nbsp; program in a000 (rom and vectors ) and when i jump to this address application run .&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516319#M1614</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516320#M1615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kabikov on Mon Sep 22 09:24:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You say jump to 0xA000... But this is stack pointer for your firmware. Do you set new stack pointer from 0xA000? You should jump to address contains in 0xA004. Are you sure that your bootloader upload firmware correctly (CRC)? Are you reserve memory for IAP as described?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;May be you post your code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516320#M1615</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1768 flash and vector table for an application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516321#M1616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dariush_abbasi868 on Mon Sep 22 23:32:53 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you kabiko !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;first and at time point I want to make a application that start from 0xa000( without any bootloader)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have this application , and it's working in the address 00, in the pictures i attached what i have to do to it start from 0xa000 (every thing in .bin output file such as vectores and rom )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what i have to do for this ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after that I am going to add this application to my bootloader .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;first pls help me to make my application alone. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:21:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1768-flash-and-vector-table-for-an-application/m-p/516321#M1616</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:21:59Z</dc:date>
    </item>
  </channel>
</rss>

