<?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: LPC54608 Secondary bootloader jump and main app debugging</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Secondary-bootloader-jump-and-main-app-debugging/m-p/846254#M33695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks &lt;STRONG class=""&gt;&lt;SPAN class=""&gt;Carlos&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;for the answer,&lt;/P&gt;&lt;P&gt;but.... I'm using the MCUXpresso LinkServer Debugger with the OM13092 lpclink onboard debugger for my first tests and then I use an LPC_LINK2 debugger for my custom target board (via SWD connection), so I can't find the "&lt;EM style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: italic; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;add-symbol-file filename address&lt;/EM&gt;" equivalent settings you suggested for my debug configurations. I think your solution is right for the Segger debug interface, isn't it?&lt;/P&gt;&lt;P&gt;Is there an equivalent solution for the LinkServer debugger configuration for loading and debugging both the bootloader (@0x0000 address) and the main app (@0x8000 address) projects?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2018 15:11:23 GMT</pubDate>
    <dc:creator>cybaluke</dc:creator>
    <dc:date>2018-08-06T15:11:23Z</dc:date>
    <item>
      <title>LPC54608 Secondary bootloader jump and main app debugging</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Secondary-bootloader-jump-and-main-app-debugging/m-p/846252#M33693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i'm working with LPC54608 and MCUxpresso, I have already coded my main application and now I have to code a secondary bootloader, so I have some question about this:&lt;/P&gt;&lt;P&gt;1 - first I've moved the main app at the 0x8000 address (32kB sector) in flash using the MCUxpresso's memory setting option, but now I can't debug this app because when I launch the debug session the debugger doesn't break in the main function but jumps in a wrong RAM location (the flash memory from 0x0 to 0x7FFF is empty). What I'm missing to correctly debug the main relocated app?&lt;/P&gt;&lt;P&gt;2 - For my Secondary Bootloader first step I've tryed to make a bootloader that only should jump immediatly at the main app (at the flash address 0x8000) but I have some problems with the jump so&amp;nbsp; what is the right calling code to jump from&amp;nbsp; the secondary bootloader to main app?&lt;/P&gt;&lt;P&gt;3 - what is the right code to jump back from main app to the bootloader at 0x00000000 address?&lt;/P&gt;&lt;P&gt;4 - is it possible automatically upload the SecondaryBootloader firmware together the main app during the main app debugg session&amp;nbsp; launch?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 09:40:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Secondary-bootloader-jump-and-main-app-debugging/m-p/846252#M33693</guid>
      <dc:creator>cybaluke</dc:creator>
      <dc:date>2018-07-24T09:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Secondary bootloader jump and main app debugging</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Secondary-bootloader-jump-and-main-app-debugging/m-p/846253#M33694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cybaluke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which debugger connection are you using? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend you to use the LPC1700 secondary USB bootloader as reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.nxp.com/docs/en/application-note/AN10866.zip"&gt;http://cache.nxp.com/docs/en/application-note/AN10866.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the function used by the bootloader to jump to the application:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__asm void boot_jump( uint32_t address ){&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LDR SP, [R0]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;Load new stack pointer address&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LDR PC, [R0, #4]&amp;nbsp;&amp;nbsp;&amp;nbsp; ;Load new program counter address&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="" style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: 15px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;You can debug both the bootloader and the application by adding the following command to your debug Run Commands in the bootloader debug connection:&lt;/DIV&gt;&lt;DIV class="" style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: 15px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: 15px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;EM style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: italic; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;add-symbol-file filename address&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: 15px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt; &lt;/DIV&gt;&lt;DIV class="" style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: 15px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;EM style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: italic; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;As an example:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="" style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: 15px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;add-symbol-file C:\\Users\\Documents\\MCUXpressoIDE_10.xxx\\workspace\\MK64FN1M0xxx12_Project_2\\Debug\\MK64FN1M0xxx12_Project_2.axf 0x80000&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&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/79623i054ECDF3C7F82565/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 style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;The address 0x80000 corresponds to the first flash section of the second project which was previously flashed to the MCU:&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79627iCF6C74F1931CCE2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: 15px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 21:16:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Secondary-bootloader-jump-and-main-app-debugging/m-p/846253#M33694</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2018-08-03T21:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Secondary bootloader jump and main app debugging</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Secondary-bootloader-jump-and-main-app-debugging/m-p/846254#M33695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks &lt;STRONG class=""&gt;&lt;SPAN class=""&gt;Carlos&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;for the answer,&lt;/P&gt;&lt;P&gt;but.... I'm using the MCUXpresso LinkServer Debugger with the OM13092 lpclink onboard debugger for my first tests and then I use an LPC_LINK2 debugger for my custom target board (via SWD connection), so I can't find the "&lt;EM style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: italic; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;add-symbol-file filename address&lt;/EM&gt;" equivalent settings you suggested for my debug configurations. I think your solution is right for the Segger debug interface, isn't it?&lt;/P&gt;&lt;P&gt;Is there an equivalent solution for the LinkServer debugger configuration for loading and debugging both the bootloader (@0x0000 address) and the main app (@0x8000 address) projects?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 15:11:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Secondary-bootloader-jump-and-main-app-debugging/m-p/846254#M33695</guid>
      <dc:creator>cybaluke</dc:creator>
      <dc:date>2018-08-06T15:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Secondary bootloader jump and main app debugging</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Secondary-bootloader-jump-and-main-app-debugging/m-p/846255#M33696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any comment about my reply/question?&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV class=""&gt;&lt;P&gt;thanks &lt;STRONG class=""&gt;&lt;SPAN class=""&gt;Carlos&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;for the answer,&lt;/P&gt;&lt;P&gt;but.... I'm using the MCUXpresso LinkServer Debugger with the OM13092 lpclink onboard debugger for my first tests and then I use an LPC_LINK2 debugger for my custom target board (via SWD connection), so I can't find the "&lt;EM style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: italic; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;add-symbol-file filename address&lt;/EM&gt;" equivalent settings you suggested for my debug configurations. I think your solution is right for the Segger debug interface, isn't it?&lt;/P&gt;&lt;P&gt;Is there an equivalent solution for the LinkServer debugger configuration for loading and debugging both the bootloader (@0x0000 address) and the main app (@0x8000 address) projects?&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 14:11:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Secondary-bootloader-jump-and-main-app-debugging/m-p/846255#M33696</guid>
      <dc:creator>cybaluke</dc:creator>
      <dc:date>2018-09-20T14:11:30Z</dc:date>
    </item>
  </channel>
</rss>

