<?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>LPC MicrocontrollersのトピックRe: Custom bootloader memory config issue</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1561908#M50883</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208923"&gt;@BerkantCiftci2001&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The flash size of application should 0x80000 - 0x8000, because the total size of flash is 0x80000 (512k),&lt;/P&gt;
&lt;P&gt;bootloader uses 0x8000.&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, 30 Nov 2022 09:24:59 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2022-11-30T09:24:59Z</dc:date>
    <item>
      <title>Custom bootloader memory config issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1555688#M50744</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am a student Embedded systems and I am trying to make a small custom bootloader work on my LPC1758. What I am trying to do is flash my bootloader between 0x0000 and 0x8000. My next step (for testing purposes) is to flash my application after 0x8000. However, when I let the program run, It will crash when it jumps to the application address. (see image below.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="address.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200776i10B142A4ECFB9FEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="address.jpg" alt="address.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I had the feeling that I had to change my project memory settings. After some research and trials, I could't work it out. (first one is bootloader, second one is application)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="memory config bootloader.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200778iF99EB1A1313D7BA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="memory config bootloader.jpg" alt="memory config bootloader.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Memory config application.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200779i24FE825C14ECF17E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Memory config application.jpg" alt="Memory config application.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea how I should set this up correctly?&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: This is what I get back.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200781i1E5D42235CBC008F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="error.jpg" alt="error.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 15:51:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1555688#M50744</guid>
      <dc:creator>BerkantCiftci2001</dc:creator>
      <dc:date>2022-11-17T15:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom bootloader memory config issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1556836#M50769</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208923"&gt;@BerkantCiftci2001&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) First please confirm the application can work well without bootloader.&lt;/P&gt;
&lt;P&gt;2)Confirm bootloader program application image correctly.&lt;/P&gt;
&lt;P&gt;3) Confirm bootloader can jump to application.&lt;/P&gt;
&lt;P&gt;4) There is USB secondary bootloader for lpc1700, you can refer to the jump code :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc1700-arm-cortex-m3/scalable-mainstream-32-bit-microcontroller-mcu-based-on-arm-cortex-m3-core:LPC1759FBD80" target="_blank"&gt;https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc1700-arm-cortex-m3/scalable-mainstream-32-bit-microcontroller-mcu-based-on-arm-cortex-m3-core:LPC1759FBD80&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5) And there is debug application with MCUXpresso IDE method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/Lpc845-app-code-can-t-debug-after-bootloader/m-p/856989" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/Lpc845-app-code-can-t-debug-after-bootloader/m-p/856989&lt;/A&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 03:12:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1556836#M50769</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-11-21T03:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom bootloader memory config issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1559495#M50825</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;, Thanks for your reply! I would like to know more about the memory mapping. Should the application have a seperate size too? What I am trying is the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;flash bootloader.&lt;/LI&gt;&lt;LI&gt;flash my application second with second MCUXpresso instance.&lt;/LI&gt;&lt;LI&gt;let the bootloader code run through the jumping process.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This works good. But when I try to flash my application with my custom software, the bootloader gives me UNDEFINED INSTRUCTION. I checked the .hex file and this is written correctly into the memory.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 13:56:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1559495#M50825</guid>
      <dc:creator>BerkantCiftci2001</dc:creator>
      <dc:date>2022-11-24T13:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom bootloader memory config issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1561908#M50883</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208923"&gt;@BerkantCiftci2001&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The flash size of application should 0x80000 - 0x8000, because the total size of flash is 0x80000 (512k),&lt;/P&gt;
&lt;P&gt;bootloader uses 0x8000.&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, 30 Nov 2022 09:24:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1561908#M50883</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-11-30T09:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Custom bootloader memory config issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1562696#M50906</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seperated the Flash size for bootloader and application.&lt;/P&gt;&lt;P&gt;Should this also be done for the RAM?&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;bootloader start 0x10000000, size 0x2000&lt;/LI&gt;&lt;LI&gt;application start 0x10002000 size 0x6000&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I still get this error at jump while debugging bootloader :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202411iEE1D369F9E037F96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 09:12:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1562696#M50906</guid>
      <dc:creator>BerkantCiftci2001</dc:creator>
      <dc:date>2022-12-01T09:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom bootloader memory config issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1564159#M50934</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208923"&gt;@BerkantCiftci2001&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) From your screenshot, it application size still 0x80000:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1670223699441.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202914i59C016A0C2F6F918/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1670223699441.png" alt="Alice_Yang_0-1670223699441.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) RAM needn't.&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, 05 Dec 2022 07:02:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-bootloader-memory-config-issue/m-p/1564159#M50934</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-12-05T07:02:35Z</dc:date>
    </item>
  </channel>
</rss>

