<?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: secondary bootloader lpc54608 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868854#M34616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                Thanks for answering. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Making the comparison as you indicate, the contents vary. Should they be the same? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modifying the secondary bootloader firmware so that before jumping to the application, disable the following modules :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          EEPROM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          SPIFI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          RTC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          Watchdog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          Debug console&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          Gpio1 , Gpio2, Gpio3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still giving the hard fault, but I cannot continue with the debugger. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is necessary to disable something more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to debug the application once the bootloader jumps to it, from the debugger? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My debugger is the OM13092 board, with the SWD connector plugged into my board and I use the MCUXpresso IDE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Alice_Yang  &lt;/P&gt;&lt;P&gt;Enviado el: martes, 19 de marzo de 2019 23:08&lt;/P&gt;&lt;P&gt;Para: miguel ibarra &amp;lt;migueli@cointech.com.ar&amp;gt;&lt;/P&gt;&lt;P&gt;Asunto: You have been mentioned by Alice_Yang in Re: secondary bootloader lpc54608 in NXP Community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt; NXP Community &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have been mentioned &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by Alice_Yang &amp;lt;https://community.nxp.com/people/Alice_Yang?et=notification.mention&amp;gt;  in Re: secondary bootloader lpc54608 in NXP Community - View Alice_Yang's reference to you &amp;lt;https://community.nxp.com/message/1127185?commentID=1127185&amp;amp;et=notification.mention#comment-1127185&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Mar 2019 16:12:27 GMT</pubDate>
    <dc:creator>miguelibarra</dc:creator>
    <dc:date>2019-03-20T16:12:27Z</dc:date>
    <item>
      <title>secondary bootloader lpc54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868852#M34614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i have the following problem with a secondary bootloader in LPC54608 custom board. It is very similar to evaluation kit OM13092. &lt;/P&gt;&lt;P&gt;If i load the application program to the address 0x8000 with the JFlash program and later load the bootloader to the 0x0 address, after the reset the secondary bootloader jump to the application program and work OK.&lt;/P&gt;&lt;P&gt;But if the secondary bootloader load the aplication program from SPIFI to RAM and then to flash address 0x8000, after reset the secondary bootloader jump to the application program but&amp;nbsp;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;it does not work properly&lt;/SPAN&gt;&lt;/SPAN&gt; ( hard fault ). &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;We compare how the flash (address 0 to 0x7ffff) is after being recorded, by the jflash and by the secondary bootloader and there are no differences. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;If run the application program from address 0x0 ( without secondary bootloader) work OK. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;The only way that works is to delete everything with the JFlash, load the application in 0x8000 and then the bootloader.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;that could be happening?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;Best Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 20:42:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868852#M34614</guid>
      <dc:creator>miguelibarra</dc:creator>
      <dc:date>2019-03-18T20:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: secondary bootloader lpc54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868853#M34615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="337873" data-username="miguelibarra" href="https://community.nxp.com/people/miguelibarra"&gt;miguel ibarra&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Please compare application memory data using bootloader load&amp;nbsp; from 0x8000 with only&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt; run the application program from address 0x0 ( without secondary bootloader). &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;Also please pay attention that, before jump to application code, please deinitialize (disable clock) the modules initialized &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;in bootlaoder project. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 02:07:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868853#M34615</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-03-20T02:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: secondary bootloader lpc54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868854#M34616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                Thanks for answering. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Making the comparison as you indicate, the contents vary. Should they be the same? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modifying the secondary bootloader firmware so that before jumping to the application, disable the following modules :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          EEPROM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          SPIFI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          RTC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          Watchdog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          Debug console&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          Gpio1 , Gpio2, Gpio3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still giving the hard fault, but I cannot continue with the debugger. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is necessary to disable something more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to debug the application once the bootloader jumps to it, from the debugger? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My debugger is the OM13092 board, with the SWD connector plugged into my board and I use the MCUXpresso IDE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Alice_Yang  &lt;/P&gt;&lt;P&gt;Enviado el: martes, 19 de marzo de 2019 23:08&lt;/P&gt;&lt;P&gt;Para: miguel ibarra &amp;lt;migueli@cointech.com.ar&amp;gt;&lt;/P&gt;&lt;P&gt;Asunto: You have been mentioned by Alice_Yang in Re: secondary bootloader lpc54608 in NXP Community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt; NXP Community &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have been mentioned &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by Alice_Yang &amp;lt;https://community.nxp.com/people/Alice_Yang?et=notification.mention&amp;gt;  in Re: secondary bootloader lpc54608 in NXP Community - View Alice_Yang's reference to you &amp;lt;https://community.nxp.com/message/1127185?commentID=1127185&amp;amp;et=notification.mention#comment-1127185&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 16:12:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868854#M34616</guid>
      <dc:creator>miguelibarra</dc:creator>
      <dc:date>2019-03-20T16:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: secondary bootloader lpc54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868855#M34617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello miguel,&lt;/P&gt;&lt;P&gt;1) "But if the secondary bootloader load the aplication program from SPIFI to RAM and then to flash address 0x8000, "&lt;/P&gt;&lt;P&gt;-&amp;gt; After this , compare the data from 0x8000 with hex file of application , they are should be the same.&lt;/P&gt;&lt;P&gt;2) "If i load the application program to the address 0x8000 with the JFlash program and later load the bootloader to the 0x0 address, after the reset the secondary bootloader jump to the application program and work OK."&lt;/P&gt;&lt;P&gt;-&amp;gt; Do you meaning, when use JFlash&amp;nbsp; flashing Appplicaiton and bootloader, bootloader can jump to APP, APP also can work well ? When using using bootloader get APP code , the flash it to ox8000, it can't work ? If yes, I think you need check 0x8000 memory as 1).&lt;/P&gt;&lt;P&gt;3) "It is possible to debug the application once the bootloader jumps to it, from the debugger? ", can debug Disassembly&lt;/P&gt;&lt;P&gt;code :&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/75319iC04DB2A16DE554A8/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;This can Check whether it jump to 0x8000 successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2019 06:14:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868855#M34617</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-03-22T06:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: secondary bootloader lpc54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868856#M34618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Hi Alice :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Sorry for the delay in answering I&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; was without access to the company's mail. About the problem , I was able to make the comparison between, the memory in 0x8000 recorded in the micro by the bootloader, and the .bin file of the compiler, &amp;nbsp;and both are equal. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;If the application is well recorded by the bootloader, Can the problem be some configuration? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;When for example we flashing the application in 0x8000 and then the bootloader , using the Jflash &amp;nbsp;program, the bootloader when start detect a header valid in 0x8000 and jump to the application. If not application header valid is detected the bootloader try load application from 0x10000000 SPIFI . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The only difference when the application is loaded from SPIFI is that the bootloader use rams for buffering and then flashing. After the bootloader finish of flashing jump to the application with this ram uninitialized. &amp;nbsp;Can be this a problem? &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The same application compiled for 0x0000 work OK always, (without the bootloader). &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;-&amp;gt; Do you meaning, when use JFlash&amp;nbsp; flashing Appplicaiton and bootloader, bootloader can jump to APP, APP also can work well ? &amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="color: #70ad47; font-size: 10.5pt; "&gt;YES&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When using using bootloader get APP code , the flash it to ox8000, it can't work ? &lt;/SPAN&gt;&lt;STRONG style="color: #70ad47; font-size: 10.5pt; "&gt;YES &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;If yes, I think you need check 0x8000 memory as 1).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Best Regards. &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 13:40:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868856#M34618</guid>
      <dc:creator>miguelibarra</dc:creator>
      <dc:date>2019-04-12T13:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: secondary bootloader lpc54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868857#M34619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello miguel,&lt;/P&gt;&lt;P&gt;If the application code from 0x8000 is the same with two method(directly flash to 0x8000 and copy from SPIFI),&lt;/P&gt;&lt;P&gt;also both can jump to 0x8000, I think it should work. Have you checked debug Disassembly, when copy from SPIFI , does it can jump to 0x8000 ?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; "the application with this ram uninitialized."-&amp;gt;What about the ram? Application used?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 03:23:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868857#M34619</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-04-18T03:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: secondary bootloader lpc54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868858#M34620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                We find the problem , the SystemCoreClock variable it was not initialized, after setting the clock frequency, maintained the default value of 12000000. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only add this line to code  and it started to work well.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SystemCoreClock variable is used when flashing ram to flash. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice, kind regards. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De: Alice_Yang  &lt;/P&gt;&lt;P&gt;Enviado el: jueves, 18 de abril de 2019 00:24&lt;/P&gt;&lt;P&gt;Para: miguel ibarra &amp;lt;migueli@cointech.com.ar&amp;gt;&lt;/P&gt;&lt;P&gt;Asunto: Re:  - Re: secondary bootloader lpc54608&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt; NXP Community &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: secondary bootloader lpc54608 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Alice_Yang &amp;lt;https://community.nxp.com/people/Alice_Yang?et=watches.email.thread&amp;gt;  in LPC Microcontrollers - View the full discussion &amp;lt;https://community.nxp.com/message/1140967?commentID=1140967&amp;amp;et=watches.email.thread#comment-1140967&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 14:04:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868858#M34620</guid>
      <dc:creator>miguelibarra</dc:creator>
      <dc:date>2019-04-18T14:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: secondary bootloader lpc54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868859#M34621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi miguel ibarra,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Can you share your example to me ? I follow your step, but can't get it work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:fsi159085@gmail.com"&gt;fsi159085@gmail.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:11:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868859#M34621</guid>
      <dc:creator>tinglee</dc:creator>
      <dc:date>2020-03-05T09:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: secondary bootloader lpc54608</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868860#M34622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi miguel,&lt;BR /&gt;&lt;BR /&gt;I am also following this topic bcoz I stuck same point. Could you share your code with me too ?&lt;BR /&gt;&lt;A href="mailto:ffatihozen@gmail.com"&gt;ffatihozen@gmail.com&lt;/A&gt;&lt;BR /&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 14:05:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/secondary-bootloader-lpc54608/m-p/868860#M34622</guid>
      <dc:creator>fatihozen</dc:creator>
      <dc:date>2020-03-13T14:05:31Z</dc:date>
    </item>
  </channel>
</rss>

