<?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: LPC5536 bootloader issue in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-bootloader-issue/m-p/1649949#M52497</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217254"&gt;@AlvinLin1933&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The BOOT ROM of lpc5536 support dual image, how about directly use it? There is a simple demo under blow thread:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/Internal-flash-dual-image-boot-on-LPC5536/td-p/1589897" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/Internal-flash-dual-image-boot-on-LPC5536/td-p/1589897&lt;/A&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 May 2023 05:52:32 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2023-05-15T05:52:32Z</dc:date>
    <item>
      <title>LPC5536 bootloader issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-bootloader-issue/m-p/1649851#M52494</link>
      <description>&lt;P&gt;MCU is LPC5536JBD64, refer the AN13497, when run to&amp;nbsp; _set_PSP(s_stackPointer), will report HardFault interrupt. Please refer below and attached, need your advise or how to locate the HardFault details.&lt;/P&gt;&lt;P&gt;void JumpToImage(uint32_t addr)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;uint32_t sp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;uint32_t pc;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if(Bsp_Flash_Read(addr,(uint8_t *)&amp;amp;sp,4) == 0)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if(Bsp_Flash_Read(addr+4,(uint8_t *)&amp;amp;pc,4) == 0)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if ((sp == 0xffffffff) || (pc == 0xffffffff)||(sp == 0x0)||(pc == 0x0))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; typedef void(*app_entry_t)(void);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; static uint32_t s_stackPointer = 0;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; static uint32_t s_applicationEntry = 0;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; static app_entry_t s_application = 0;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; s_stackPointer = sp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; s_applicationEntry = pc;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; s_application = (app_entry_t)s_applicationEntry;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; INT_ALL_DISABLE();//跳转前，关闭中断，防止跳转后主程序误跳到中断处理&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; // Change MSP and PSP&lt;BR /&gt;&amp;nbsp; &amp;nbsp; __set_MSP(s_stackPointer);&lt;BR /&gt;&amp;nbsp; &lt;FONT color="#FF0000"&gt;&amp;nbsp; __set_PSP(s_stackPointer);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; SCB-&amp;gt;VTOR = addr;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; // Jump to application&lt;BR /&gt;&amp;nbsp; &amp;nbsp; s_application();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; // Should never reach here.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; __NOP();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 03:10:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-bootloader-issue/m-p/1649851#M52494</guid>
      <dc:creator>AlvinLin1933</dc:creator>
      <dc:date>2023-05-15T03:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536 bootloader issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-bootloader-issue/m-p/1649949#M52497</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217254"&gt;@AlvinLin1933&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The BOOT ROM of lpc5536 support dual image, how about directly use it? There is a simple demo under blow thread:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/Internal-flash-dual-image-boot-on-LPC5536/td-p/1589897" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/Internal-flash-dual-image-boot-on-LPC5536/td-p/1589897&lt;/A&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 05:52:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-bootloader-issue/m-p/1649949#M52497</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-05-15T05:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5536 bootloader issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-bootloader-issue/m-p/1650014#M52501</link>
      <description>&lt;P&gt;Hi Alice :&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Attached the referenced demo and document.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 06:53:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5536-bootloader-issue/m-p/1650014#M52501</guid>
      <dc:creator>AlvinLin1933</dc:creator>
      <dc:date>2023-05-15T06:53:12Z</dc:date>
    </item>
  </channel>
</rss>

