<?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: LPC55S06 custom bootloader doens't jump to application in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1820571#M55554</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I share in a private way?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 13:27:01 GMT</pubDate>
    <dc:creator>MarcoGiammarini</dc:creator>
    <dc:date>2024-03-04T13:27:01Z</dc:date>
    <item>
      <title>LPC55S06 custom bootloader doens't jump to application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1808939#M55427</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;we developed a custom bootloader for the LPC55S06 (we know that the microcontroller has a bootloader inside). The bootloader is at 0x0 and the application is at 0xE000. The application was relocated at this address by using linker script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the bootloader start, everything is ok until the jump to the application where it jump into a RAM address. We can't understand why. The code is the same that we use a lot of times for M4 and M0 core.&lt;/P&gt;&lt;P&gt;The code is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    static uint32_t s_stackPointer = 0;
    uint32_t  *vect_mem = 0;
    vect_mem = (uint32_t*)APP_VECTOR_TABLE;

    s_stackPointer = vect_mem[0];
    static void (*farewellBootloader)(void) = 0;
    farewellBootloader = (void (*)(void))vect_mem[1];

    if (is_valid_application_location((uint32_t)farewellBootloader))
    {
        GPIO_PinWrite(BOARD_INITPINS_LED_ACTIVE_GPIO,
                        BOARD_INITPINS_LED_ACTIVE_PORT,
                        BOARD_INITPINS_LED_ACTIVE_PIN,1);
    	// Set the VTOR to the application vector table address.
    	SCB-&amp;gt;VTOR = (uint32_t)vect_mem;

    	// Set stack pointers to the application stack pointer.
    	__set_MSP(s_stackPointer);
    	__set_PSP(s_stackPointer);

    	// Jump to the application.
        farewellBootloader();
    }
    else
    {
        // TODO app is not valid
        while(1){
            GPIO_PortToggle(BOARD_INITPINS_LED_ERROR_GPIO,
                            BOARD_INITPINS_LED_ERROR_PORT,
                            (1 &amp;lt;&amp;lt; BOARD_INITPINS_LED_ERROR_PIN));

        App_mDelay(1000);
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where&amp;nbsp;#define APP_VECTOR_TABLE 0x0000E000&lt;/P&gt;&lt;P&gt;Where is the error?!&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 08:17:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1808939#M55427</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2024-02-15T08:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 custom bootloader doens't jump to application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1812504#M55472</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/21218"&gt;@MarcoGiammarini&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) I haven't find issue with your code.&lt;/P&gt;
&lt;P&gt;You can first test whether application can well without bootloader.&amp;nbsp;To do this, edit the launch configuration (by double clicking on the .launch file that will have been created in your project) and change the "reset handling" option to "SOFT".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1708497105975.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/264196i8192AA7244B0F802/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1708497105975.png" alt="Alice_Yang_0-1708497105975.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Detail you can refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/Lpc845-app-code-can-t-debug-after-bootloader/m-p/856989?lightbox-message-images-856990=72023i52D2A9BFBF1DD821" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/Lpc845-app-code-can-t-debug-after-bootloader/m-p/856989?lightbox-message-images-856990=72023i52D2A9BFBF1DD821&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Pay attention do not erased application code when program bootloader project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 06:33:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1812504#M55472</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-02-21T06:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 custom bootloader doens't jump to application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1812748#M55480</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for yuor reply.&lt;/P&gt;&lt;P&gt;On the launch file, there isn't the flag that you mention:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoGiammarini_0-1708512219396.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/264272iDC727FA8CD6FDB14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoGiammarini_0-1708512219396.png" alt="MarcoGiammarini_0-1708512219396.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can I do/check other flags?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 10:45:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1812748#M55480</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2024-02-21T10:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 custom bootloader doens't jump to application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1817647#M55516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible that the problem is the REDLIB? We can't find any other ideas to solve the issue.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 16:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1817647#M55516</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2024-02-28T16:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 custom bootloader doens't jump to application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1820524#M55550</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/21218"&gt;@MarcoGiammarini&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Share your application project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 12:02:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1820524#M55550</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-03-04T12:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 custom bootloader doens't jump to application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1820571#M55554</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I share in a private way?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 13:27:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1820571#M55554</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2024-03-04T13:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 custom bootloader doens't jump to application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1822250#M55577</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/21218"&gt;@MarcoGiammarini&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I received your projects. Which IDE do you used?&lt;/P&gt;
&lt;P&gt;After import it into MCUXprsso IDE, it seems not works well. Not shows the code you mentioned above.&lt;/P&gt;
&lt;P&gt;Just as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1709713761985.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/266748i95F6B28246AC8B34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1709713761985.png" alt="Alice_Yang_0-1709713761985.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Also linker file not right.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 08:30:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1822250#M55577</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-03-06T08:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 custom bootloader doens't jump to application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1823277#M55587</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;, I miss some parts of the project. Usually we save the application code outside the project. I'll send you now the correct version!&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 10:52:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1823277#M55587</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2024-03-07T10:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 custom bootloader doens't jump to application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1826399#M55628</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you find anything on my code? I don't have any other ideas to fix it!&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 15:54:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1826399#M55628</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2024-03-12T15:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 custom bootloader doens't jump to application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1829759#M55676</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/21218"&gt;@MarcoGiammarini&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about send a project that I can directly build. You can send your project to others to test first.&lt;/P&gt;
&lt;P&gt;Without any change, on my side:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1710654696216.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/268796iFD9D27BCAF6B7DE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1710654696216.png" alt="Alice_Yang_0-1710654696216.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I think maybe there is issue with the linker file of application project. While project can not build well on my side, so I don't know which linker file do you used. Use IDE to config? Or use the files under linkscripts folder?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_1-1710654842397.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/268797i35B06E74A282A0A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_1-1710654842397.png" alt="Alice_Yang_1-1710654842397.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 05:54:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1829759#M55676</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-03-17T05:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 custom bootloader doens't jump to application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1830232#M55684</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am so sorry, but from my side both project compile well with MCUXpresso. I tried different PC to check it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoGiammarini_0-1710756560677.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/268946iA91C7B9896D8D643/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoGiammarini_0-1710756560677.png" alt="MarcoGiammarini_0-1710756560677.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For the application project, I am using the linker file inside the folder of your screenshot. When I compile for using the application without the bootloader I am using the configuration without the _BOOT at the end, instead when I compile the application project to put it on the specific part where the bootloader jump I am using the configuration with _BOOT at the end.&lt;/P&gt;&lt;P&gt;Thanks for yuor help&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 10:40:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1830232#M55684</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2024-03-18T10:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S06 custom bootloader doens't jump to application</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1831585#M55693</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/21218"&gt;@MarcoGiammarini&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because I can not build your project on my side, recommend you use a simple led SDK project, not your own project.&amp;nbsp; confirm it can works well. Then change flash start address to 0xE000. Build, confirm the .hex file start address is 0xE000. Program it into your chip. Then use bootloader to test.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 02:22:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-custom-bootloader-doens-t-jump-to-application/m-p/1831585#M55693</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-03-20T02:22:22Z</dc:date>
    </item>
  </channel>
</rss>

