<?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: LPC1754 BootLoader+APP(IAP updata)</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000291#M39296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to modify the internal RC crystal oscillator,but communication produces anomalies.&lt;/P&gt;&lt;P&gt;Maybe there is no improvement, can you help me see.&lt;/P&gt;&lt;P&gt;IAP_reinvoke has not been added yet.&lt;/P&gt;&lt;P&gt;External crystal is 12M, serial baud rate is 115200.&lt;/P&gt;&lt;P&gt;Following are my modified parameters:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define CLOCK_SETUP           1&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define SCS_Val               0x00000000&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define CLKSRCSEL_Val         0x00000001&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PLL0_SETUP            1&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PLL0CFG_Val           0x0000000F&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PLL1_SETUP            0&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PLL1CFG_Val           0x00000023&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define CCLKCFG_Val           0x00000003&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define USBCLKCFG_Val         0x00000000&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PCLKSEL0_Val          0x00000000&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PCLKSEL1_Val          0x00000000&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PCONP_Val             0x042887DE&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define CLKOUTCFG_Val         0x00000000‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Excuse me, do you have the official original of the &amp;lt;system_LPC17xx.c&amp;gt; file, as well as the configuration function of the serial port, I suspect the system clock problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2020 07:34:54 GMT</pubDate>
    <dc:creator>836383635</dc:creator>
    <dc:date>2020-03-04T07:34:54Z</dc:date>
    <item>
      <title>LPC1754 BootLoader+APP(IAP updata)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000283#M39288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-0" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;english: &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-0" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;I recently used the LPC1754 chip, and after adding BootLoader, the app and BootLoader were merged into.bin or.hex through Jlink to burn, the machine could run normally. With the serial port upgrade (custom protocol, bin file upgrade), the app would run and enter the hardware interrupt.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;Even more bizarre is the problem of upgrading multiple machines, most of which are normal and some of which are not.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-2" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;After the program ran, I used Jlink to read the program of the chip, and compared with the upgraded bin file, there was no difference. Then I used Jlink to burn the program, and the program ran normally.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;(app and BootLoader are bare, without real-time system)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-0" data-v-4c8ee738=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BootLoader and app stacks are modified without any help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System startup file startup_lpc17x.s, app blocked CRP_Key program segment, BootLoader did not block.&lt;SPAN style="background-color: #ffffff;"&gt;App and BootLoader blocked and unblocked have tried, no help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;(&lt;SPAN style="background-color: #ffffff;"&gt;The procedure is as follows:&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;/*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;; IF :LNOT::DEF:NO_CRP&lt;BR /&gt;; AREA |.ARM.__at_0x02FC|, CODE, READONLY&lt;BR /&gt;;CRP_Key DCD 0xFFFFFFFF&lt;BR /&gt;; ENDIF&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;&lt;SPAN class="" data-group="0-0" data-v-4c8ee738="" style="background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Finally, the upgrade can be normal after the upgrade of the machine is normal, abnormal is not fixed.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" data-v-4c8ee738="" style="background-color: #ffffff;"&gt;Excuse me boss, how to solve this problem, tangle me for a long time.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;&lt;SPAN class="" data-group="0-1" data-v-4c8ee738="" style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;&lt;SPAN class="" data-group="0-1" data-v-4c8ee738="" style="background-color: #ffffff;"&gt;中文：&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;我最近用了LPC1754芯片，加了BootLoader后，app和BootLoader合并成.bin或者.hex通过Jlink烧录，机器都能正常运行，用串口升级（自定义协议，bin文件升级），app就会跑飞，进入硬件中断。更奇葩的问题就是，升级多台机器，大部分机器升级都正常，小部分不正常。在程序跑飞后，我用Jlink读取芯片的程序，跟升级的bin文件比较，并无差异，再用Jlink烧录，程序就正常运行。（app和BootLoader都是裸机，没有实时系统）&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BootLoader和app的堆栈都进行修改，没有任何帮助。 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;系统启动文件startup_LPC17xx.s中，app屏蔽了CRP_Key程序段，BootLoader没有屏蔽。app和BootLoader屏蔽和不屏蔽都尝试过，没帮助。&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;（程序如下：）&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-size: 15px;"&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;/*&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-size: 15px;"&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;; IF :LNOT::DEF:NO_CRP&lt;BR /&gt;; AREA |.ARM.__at_0x02FC|, CODE, READONLY&lt;BR /&gt;;CRP_Key DCD 0xFFFFFFFF&lt;BR /&gt;; ENDIF&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-size: 15px;"&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" data-group="1-1" data-v-4c8ee738=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;最后，升级后能正常的机器再升级也正常，有异常的也是不能修复。请问大佬，这个问题怎么解决，纠结我好久了。&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 06:25:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000283#M39288</guid>
      <dc:creator>836383635</dc:creator>
      <dc:date>2020-02-21T06:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 BootLoader+APP(IAP updata)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000284#M39289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/836383635@qq.com"&gt;836383635@qq.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to clarify some things to make sure I'm understanding the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You're using the ROM Bootloader to update your&amp;nbsp;firmware&amp;nbsp;but sometimes the update is not executed and if you read the image using an external debugger is the same as the previous image.&lt;/P&gt;&lt;P&gt;- Updating the flash image using the external debugger always works but using the ROM Bootloader sometimes fails.&lt;/P&gt;&lt;P&gt;- The devices that fail the update can't be recovered.&lt;/P&gt;&lt;P&gt;- The CRP is not enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I understanding correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case, first at the devices that can't be recovered I will suggest doing a mass erase, it could be that the ROM Code got stuck with the previous firmware and erasing it could help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know your findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 19:06:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000284#M39289</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-02-26T19:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 BootLoader+APP(IAP updata)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000285#M39290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thank you for your advice.&amp;nbsp;And you understand it correctly. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I tried, but &lt;SPAN style="color: #666666; background-color: #ffffff; font-size: 14px;"&gt;It didn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;【&lt;SPAN style="color: #333333;"&gt;Erase the entire program, re-burn the &lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 15px;"&gt;Bootloader&lt;/SPAN&gt;, and then use the bin file to upgrade.】&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-0" data-v-4c8ee738=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I added and closed the total interrupt （__disable_irq();&amp;nbsp;NVIC_SystemReset(); ） before app upgrade reset and BootLoader reset or jump.Total interrupt is enabled（__enable_irq();） at the main entry of both app and BootLoader.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Do you have any other Suggestions？Or shall I show you my program?【Could you tell me your email address?】&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 02:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000285#M39290</guid>
      <dc:creator>836383635</dc:creator>
      <dc:date>2020-02-27T02:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 BootLoader+APP(IAP updata)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000286#M39291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/836383635@qq.com"&gt;836383635@qq.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As another suggestion could you try using the following tool to update the binary?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.flashmagictool.com/" title="http://www.flashmagictool.com/"&gt;Flash Magic - Welcome&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 15:22:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000286#M39291</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-02-27T15:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 BootLoader+APP(IAP updata)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000287#M39292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;I'm glad to receive your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;This tool is already in use.But this is not easy to upgrade the machine software.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Upgrade mode of the machine: there is an upper computer interface, which establishes a connection with LPC1754 through serial communication. The upper computer reads the upgrade package of the U disk and sends the data to the lower computer to update the app.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;So I hope to solve this IAP upgrade problem instead of using an ISP.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #666666;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I&amp;nbsp;&lt;SPAN class="" data-group="2_2"&gt;hope&lt;/SPAN&gt; &lt;SPAN class="" data-group="3_3"&gt;you&lt;/SPAN&gt; &lt;SPAN class="" data-group="4_4"&gt;can&lt;/SPAN&gt; &lt;SPAN class="" data-group="5_5"&gt;help&lt;/SPAN&gt; &lt;SPAN class="" data-group="6_6"&gt;me&lt;/SPAN&gt;&amp;nbsp;, thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 01:49:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000287#M39292</guid>
      <dc:creator>836383635</dc:creator>
      <dc:date>2020-02-28T01:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 BootLoader+APP(IAP updata)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000288#M39293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/836383635@qq.com" rel="noopener noreferrer" target="_blank"&gt;836383635@qq.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the user manual from the LPC17xx it mentions the next about the IAP_Reinvoke:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/102673i14A8DE396193F4DB/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So before you call the Reinvoke command you need to change the System Clock, if you're using the LPCOpen you could try the following routine to call the IAP_reinvoke:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* Disable interrupt mode so it doesn't fire during FLASH updates */&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;__disable_irq&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token function"&gt;Chip_Clock_SetCPUClockSource&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SYSCTL_CCLKSRC_SYSCLK&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;/* Disconnect the Main PLL if it is connected already */&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Chip_Clock_IsMainPLLConnected&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;Chip_Clock_DisablePLL&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SYSCTL_MAIN_PLOnlyL&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; SYSCTL_PLL_CONNECT&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;/* Disable the PLL if it is enabled */&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Chip_Clock_IsMainPLLEnabled&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;Chip_Clock_DisablePLL&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SYSCTL_MAIN_PLL&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; SYSCTL_PLL_ENABLE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;/* Write to the last sector */&lt;/SPAN&gt;
ret_code &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Chip_IAP_ReinvokeISP&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;__WFI&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:32:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000288#M39293</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-11-02T14:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 BootLoader+APP(IAP updata)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000289#M39294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I am glad to see your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I use register operation mode, so I don't know how to modify your function mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I checked the information about IAP_reinvoke, but I could not understand the purpose of this operation.&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;After the machine upgrade exception, I have tested the working state of the external passive crystal oscillator and it is normal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;This is the clock configuration flie.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;system_LPC17xx.c&amp;gt;.Are there any configuration errors?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;In BootLoader, I used IIC1, serial port 3,&amp;nbsp;timer 1and timer 0. &amp;nbsp;In the APP, I use serial port 0, serial port 2, serial port 3, timer 0, PWM1, IIC1 and ADC.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 06:58:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000289#M39294</guid>
      <dc:creator>836383635</dc:creator>
      <dc:date>2020-03-03T06:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 BootLoader+APP(IAP updata)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000290#M39295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Zchao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I mean with the routine that I send you is that you should disable the PLL and run using the internal oscillator before calling the IAP_Reinvoke command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I see in your configuration your using the PLL feed by the external oscillator to run your application so try to change it to using the IRC with the PLL disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 18:15:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000290#M39295</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-03-03T18:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 BootLoader+APP(IAP updata)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000291#M39296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to modify the internal RC crystal oscillator,but communication produces anomalies.&lt;/P&gt;&lt;P&gt;Maybe there is no improvement, can you help me see.&lt;/P&gt;&lt;P&gt;IAP_reinvoke has not been added yet.&lt;/P&gt;&lt;P&gt;External crystal is 12M, serial baud rate is 115200.&lt;/P&gt;&lt;P&gt;Following are my modified parameters:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define CLOCK_SETUP           1&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define SCS_Val               0x00000000&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define CLKSRCSEL_Val         0x00000001&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PLL0_SETUP            1&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PLL0CFG_Val           0x0000000F&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PLL1_SETUP            0&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PLL1CFG_Val           0x00000023&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define CCLKCFG_Val           0x00000003&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define USBCLKCFG_Val         0x00000000&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PCLKSEL0_Val          0x00000000&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PCLKSEL1_Val          0x00000000&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define PCONP_Val             0x042887DE&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define CLKOUTCFG_Val         0x00000000‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Excuse me, do you have the official original of the &amp;lt;system_LPC17xx.c&amp;gt; file, as well as the configuration function of the serial port, I suspect the system clock problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 07:34:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000291#M39296</guid>
      <dc:creator>836383635</dc:creator>
      <dc:date>2020-03-04T07:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1754 BootLoader+APP(IAP updata)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000292#M39297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zchao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you try using the software attached? This software was done using the LPCOpen software but you could use it as a base for your project. Also, you need to import the three folders to your workspace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 17:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1754-BootLoader-APP-IAP-updata/m-p/1000292#M39297</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-03-09T17:21:53Z</dc:date>
    </item>
  </channel>
</rss>

