<?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のトピックBoot from internal flash after attempting boot from external flash without success?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Boot-from-internal-flash-after-attempting-boot-from-external/m-p/2125673#M58441</link>
    <description>&lt;P&gt;In our hardware we only use the internal flash of a LPC5534.&lt;BR /&gt;The ISP-pins (PIO0_7 and PIO0_5) are pulled up externally, but PIO0_5 is also connected to an external comparator.&lt;BR /&gt;Under normal circumstances both PIO0_5 and PIO0_7 are HIGH during boot, which selects the "AUTO boot"-mode and loads the image from internal flash.&lt;/P&gt;&lt;P&gt;After switching to a different vendor of the comparator, we now see that PIO0_5 may be LOW during power-up, which selects the "FLEXSPI boot"-mode, and the&amp;nbsp;LPC553x will therefore start the boot sequence with looking for a valid image in the external flash (which doesn't exist), followed by an attempt to boot from the recovery boot device&amp;nbsp;(which also doesn't exist) and finally entering the ISP boot mode (where there is also nothing connected to boot from).&lt;/P&gt;&lt;P&gt;Therefore the boot sequence fails and the CPU never starts up.&lt;/P&gt;&lt;P&gt;Is there ANY way to configure a boot sequence for the LPC553x which attempts to load the image from the internal flash after looking for a valid image in the external flash?&lt;BR /&gt;So basically a way to still load the image from internal flash even though the "FLEXSPI boot"-mode has been selected via the ISP-pins?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jun 2025 13:37:31 GMT</pubDate>
    <dc:creator>JPE</dc:creator>
    <dc:date>2025-06-30T13:37:31Z</dc:date>
    <item>
      <title>Boot from internal flash after attempting boot from external flash without success?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Boot-from-internal-flash-after-attempting-boot-from-external/m-p/2125673#M58441</link>
      <description>&lt;P&gt;In our hardware we only use the internal flash of a LPC5534.&lt;BR /&gt;The ISP-pins (PIO0_7 and PIO0_5) are pulled up externally, but PIO0_5 is also connected to an external comparator.&lt;BR /&gt;Under normal circumstances both PIO0_5 and PIO0_7 are HIGH during boot, which selects the "AUTO boot"-mode and loads the image from internal flash.&lt;/P&gt;&lt;P&gt;After switching to a different vendor of the comparator, we now see that PIO0_5 may be LOW during power-up, which selects the "FLEXSPI boot"-mode, and the&amp;nbsp;LPC553x will therefore start the boot sequence with looking for a valid image in the external flash (which doesn't exist), followed by an attempt to boot from the recovery boot device&amp;nbsp;(which also doesn't exist) and finally entering the ISP boot mode (where there is also nothing connected to boot from).&lt;/P&gt;&lt;P&gt;Therefore the boot sequence fails and the CPU never starts up.&lt;/P&gt;&lt;P&gt;Is there ANY way to configure a boot sequence for the LPC553x which attempts to load the image from the internal flash after looking for a valid image in the external flash?&lt;BR /&gt;So basically a way to still load the image from internal flash even though the "FLEXSPI boot"-mode has been selected via the ISP-pins?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 13:37:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Boot-from-internal-flash-after-attempting-boot-from-external/m-p/2125673#M58441</guid>
      <dc:creator>JPE</dc:creator>
      <dc:date>2025-06-30T13:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Boot from internal flash after attempting boot from external flash without success?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Boot-from-internal-flash-after-attempting-boot-from-external/m-p/2125865#M58443</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/45059"&gt;@JPE&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Unfortunately, there is no way of changing the boot process. This boot flow is strictly designed to be executed following "26.2.1 Top-level boot flow" of the RM. If you need to boot from internal flash, you must follow the conditions stated on this diagram.&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 20:49:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Boot-from-internal-flash-after-attempting-boot-from-external/m-p/2125865#M58443</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2025-06-30T20:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Boot from internal flash after attempting boot from external flash without success?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Boot-from-internal-flash-after-attempting-boot-from-external/m-p/2126263#M58447</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/186731"&gt;@EdwinHz&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thanks for your fast response, even though that it was not what I had hoped for.&lt;/P&gt;&lt;P&gt;The diagram &lt;SPAN&gt;26.2.1 &lt;/SPAN&gt;with the "&lt;SPAN&gt;Top-level boot flow" also shows, that it should be possible to set a "Default Boot source" in the CMPA to the value 3 for locking the boot sequence to internal flash and ignoring the ISP-pins.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also found an Application Note (AN13543) which in Table 1 (chapter 1.3) describes how to set the "Boot selection" via the setting of the "CMPA &amp;gt; BOOT_CFG &amp;gt; DEFAULT_BOOT_SOURCE".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you confirm this and point me to some resources describing the programming of the CMPA configuration?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR. Jörn&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 08:45:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Boot-from-internal-flash-after-attempting-boot-from-external/m-p/2126263#M58447</guid>
      <dc:creator>JPE</dc:creator>
      <dc:date>2025-07-01T08:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Boot from internal flash after attempting boot from external flash without success?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Boot-from-internal-flash-after-attempting-boot-from-external/m-p/2128797#M58458</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/45059"&gt;@JPE&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can write on the CMPA by following the example shown on the following community post:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC552x-How-to-write-CMPA-to-disable-debug-subdomains-from/td-p/1248237" target="_blank"&gt;Solved: LPC552x: How to write CMPA to disable debug subdomains from application? - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Or by using &lt;A href="https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-secure-provisioning-tool:MCUXPRESSO-SECURE-PROVISIONING" target="_self"&gt;Secure Provisioning Tool&lt;/A&gt;. For more information on how to do this on SPT, please look into the &lt;A href="https://www.nxp.com/webapp/Download?colCode=MCUXSPTUG" target="_self"&gt;User Guide&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 22:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Boot-from-internal-flash-after-attempting-boot-from-external/m-p/2128797#M58458</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2025-07-04T22:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Boot from internal flash after attempting boot from external flash without success?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Boot-from-internal-flash-after-attempting-boot-from-external/m-p/2129104#M58463</link>
      <description>&lt;P&gt;Thanks Edwin!&lt;/P&gt;&lt;P&gt;We'll look in to that, but we're also investigating a solution in HW so we can avoid reprogramming the CMPA during manufacturing.&lt;/P&gt;&lt;P&gt;The problem with the code example to reprogram the CMPA internally is, that the MCU might never start up, so we can't execute any code...&lt;BR /&gt;And for the external programming we need to have access to the ISP-pins, which are not accessible on our PCB and therefore we would have to program the chips before they are mounted.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 07:37:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Boot-from-internal-flash-after-attempting-boot-from-external/m-p/2129104#M58463</guid>
      <dc:creator>JPE</dc:creator>
      <dc:date>2025-07-07T07:37:09Z</dc:date>
    </item>
  </channel>
</rss>

