<?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: Migrating from LPC1343 to LPC1347 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Migrating-from-LPC1343-to-LPC1347/m-p/757477#M30473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="31320" data-username="Magnetron" href="https://community.nxp.com/people/Magnetron"&gt;Denys Yurchenko&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;for 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;According to your states, you suspect that the macro &lt;SPAN&gt;#define init_msdstate()&lt;/SPAN&gt; &lt;BR /&gt;&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;P&gt;&lt;SPAN&gt;#define init_msdstate() *((uint32_t *)(&lt;/SPAN&gt;&lt;SPAN&gt;0x200040&lt;/SPAN&gt;&lt;SPAN&gt;54)) = 0x00000000 cause this issue, and I'd like to share some suggestion about this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Whether you had tried assign the storage state machine in RAM1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Whether you can assure USBSRAM bit has became 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2018 02:53:07 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2018-01-03T02:53:07Z</dc:date>
    <item>
      <title>Migrating from LPC1343 to LPC1347</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Migrating-from-LPC1343-to-LPC1347/m-p/757476#M30472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, ALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm successfully migrate&amp;nbsp;SW from&amp;nbsp;LPC1343 to LPC1347, except FW upgrade via USB IAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my SW code that run on LPC1343 and not run on LPC1347:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define init_msdstate() *((uint32_t *)(0x10000054)) = 0x00000000&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;/* Disable SYSTICK timer and interrupt before calling into ISP */&lt;BR /&gt; SysTick-&amp;gt;CTRL &amp;amp;= ~(SysTick_CTRL_ENABLE_Msk | SysTick_CTRL_TICKINT_Msk);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Initialize Storage state machine */&lt;BR /&gt; init_msdstate();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * Set stack pointer to ROM value (reset default) This must be the last&lt;BR /&gt; * piece of code executed before calling ISP, because most C expressions&lt;BR /&gt; * and function returns will fail after the stack pointer is changed.&lt;BR /&gt; */&lt;BR /&gt; __set_MSP( * ( (uint32_t *)&amp;nbsp;0x1FFF0000 ) );&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * Invoke ISP. We call "iap_entry" to invoke&lt;BR /&gt; * ISP because the ISP entry is done through the same&lt;BR /&gt; * command interface as IAP.&lt;BR /&gt; */&lt;BR /&gt; flash_LPC13XX_IAP_ReInvokeISP();&lt;/P&gt;&lt;P&gt;/* Code will never return! */&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I use RAM2 for USB drivers, I changed&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;#define init_msdstate() to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define init_msdstate() *((uint32_t *)(&lt;/SPAN&gt;&lt;SPAN&gt;0x200040&lt;/SPAN&gt;&lt;SPAN&gt;54)) = 0x00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BUT, it still doesn't works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 09:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Migrating-from-LPC1343-to-LPC1347/m-p/757476#M30472</guid>
      <dc:creator>Magnetron</dc:creator>
      <dc:date>2018-01-02T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating from LPC1343 to LPC1347</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Migrating-from-LPC1343-to-LPC1347/m-p/757477#M30473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="31320" data-username="Magnetron" href="https://community.nxp.com/people/Magnetron"&gt;Denys Yurchenko&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;for 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;According to your states, you suspect that the macro &lt;SPAN&gt;#define init_msdstate()&lt;/SPAN&gt; &lt;BR /&gt;&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;P&gt;&lt;SPAN&gt;#define init_msdstate() *((uint32_t *)(&lt;/SPAN&gt;&lt;SPAN&gt;0x200040&lt;/SPAN&gt;&lt;SPAN&gt;54)) = 0x00000000 cause this issue, and I'd like to share some suggestion about this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Whether you had tried assign the storage state machine in RAM1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Whether you can assure USBSRAM bit has became 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 02:53:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Migrating-from-LPC1343-to-LPC1347/m-p/757477#M30473</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-01-03T02:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating from LPC1343 to LPC1347</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Migrating-from-LPC1343-to-LPC1347/m-p/757478#M30474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Yes, I tried use RAM1 instead RAM2. The same result, not working.&lt;/P&gt;&lt;P&gt;2. What is&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;USBSRAM?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 08:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Migrating-from-LPC1343-to-LPC1347/m-p/757478#M30474</guid>
      <dc:creator>Magnetron</dc:creator>
      <dc:date>2018-01-03T08:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating from LPC1343 to LPC1347</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Migrating-from-LPC1343-to-LPC1347/m-p/757479#M30475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="31320" data-objecttype="3" href="https://community.nxp.com/people/Magnetron"&gt;Denys Yurchenko&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I was wondering if you can introduce the demo code in details, and it will help me to figure out the root cause of issue.&lt;/P&gt;&lt;P&gt;Regrading to the &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;USBSRAM&lt;/SPAN&gt; bit, it is used to enable or disable the USB SRAM block which has been indicated in the Table 19 in reference manual.&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/34592i2601AF826D9D0948/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;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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>Thu, 04 Jan 2018 02:44:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Migrating-from-LPC1343-to-LPC1347/m-p/757479#M30475</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-01-04T02:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating from LPC1343 to LPC1347</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Migrating-from-LPC1343-to-LPC1347/m-p/757480#M30476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;O'key. I found the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why, but if I change this line&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;__set_MSP( * ( (uint32_t *)&amp;nbsp;0x1FFF0000 ) );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;to this one&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;__set_MSP( * ( (uint32_t *)&amp;nbsp;0x00000000 ) );&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;and USB bootloader running!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;BUT, if I apply optimization by size, the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;USB bootloader not running.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;I think it is because a BUG in compiler in LPCXpresso 8.2.2 that I use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;I find WORKAROUND for this BUG, I use volatile value assigned to zero, like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;volatile uint32_t topOfStack = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;__set_MSP( * ( (uint32_t *)&amp;nbsp;topOfStack&lt;SPAN style="background-color: #ffffff;"&gt;) );&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;I prefer to use _vStackTop value defined in linker script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&amp;nbsp; &amp;nbsp; PROVIDE(_vStackTop = DEFINED(__user_stack_top) ? __user_stack_top : __top_Ram);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;So finally, this is my&amp;nbsp;ReInvokeISP function that run on LPC1347&amp;nbsp;with ANY optimization:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#define init_msdstate() *((uint32_t *)(0x10000054)) = 0x00000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extern void _vStackTop(void);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;.......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;void ReInvokeISP()&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;/* Disable IRQ specific interrupts */&lt;/P&gt;&lt;P&gt;/* DON'T use __disable_irq()&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;BR /&gt; &lt;STRONG&gt;NVIC_DisableIRQ(PIN_INT0_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(PIN_INT1_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(PIN_INT2_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(PIN_INT3_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(PIN_INT4_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(PIN_INT5_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(PIN_INT6_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(PIN_INT7_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(GINT0_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(GINT1_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(RIT_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(SSP1_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(I2C_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(CT16B0_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(CT16B1_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(CT32B0_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(CT32B1_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(SSP0_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(USART_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(USB_IRQ_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(USB_FIQ_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(ADC_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(BOD_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(FMC_IRQn);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; NVIC_DisableIRQ(USBWAKEUP_IRQn);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;&amp;nbsp;* Don't use NVIC_DisableIRQ(WDT_IRQn);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;* because you need WDT&amp;nbsp;for MCU reset after firmware.bin replacement&lt;/P&gt;&lt;P&gt;&amp;nbsp;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Disable SYSTICK timer and interrupt before calling into ISP */&lt;BR /&gt; &lt;STRONG&gt;SysTick-&amp;gt;CTRL &amp;amp;= ~(SysTick_CTRL_ENABLE_Msk | SysTick_CTRL_TICKINT_Msk);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Initialize Storage state machine */&lt;BR /&gt; &lt;STRONG&gt;init_msdstate();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * Reset main stack pointer. This must be the last piece of code&lt;BR /&gt; * executed before calling ISP, because most C expressions and&lt;BR /&gt; * function returns will fail after the stack pointer is changed.&lt;BR /&gt; */&lt;BR /&gt; &lt;STRONG&gt;__set_MSP((uint32_t) &amp;amp;_vStackTop);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * Invoke ISP. We call "iap_entry" to invoke&lt;BR /&gt; * ISP because the ISP entry is done through the same&lt;BR /&gt; * command interface as IAP.&lt;BR /&gt; */&lt;BR /&gt; &lt;STRONG&gt;flash_LPC13XX_IAP_ReInvokeISP();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Code will never return! */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached useful drivers that can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a good day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 08:20:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Migrating-from-LPC1343-to-LPC1347/m-p/757480#M30476</guid>
      <dc:creator>Magnetron</dc:creator>
      <dc:date>2018-01-04T08:20:32Z</dc:date>
    </item>
  </channel>
</rss>

