<?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: How to program a new image if I start secure boot? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937882#M37352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="347303" data-username="827529957@qq.com" href="https://community.nxp.com/people/827529957@qq.com" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;Kunsen Chen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;If the&amp;nbsp;&lt;/SPAN&gt;secure boot is turned on, we can't&amp;nbsp;program a new image with it anymore.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&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, 06 Sep 2019 02:45:42 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2019-09-06T02:45:42Z</dc:date>
    <item>
      <title>How to program a new image if I start secure boot?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937881#M37351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. I have read "AN12352&amp;nbsp;LPC54S0xx Execute In Place with Secure Boot"，I know that the image can be downloaded before the secure boot is turned on, but if I start secure boot , can I still program a new image?&lt;/P&gt;&lt;P&gt;2. If the answer of the first question is OK, then the way to start a new image after booting safely is to enter ISP mode and download it using blhost?&lt;/P&gt;&lt;P&gt;3. I try to use blhost to program an image to the external flash refer to the "Getting Started with LPC540xx-LPC54S0xx Flashloader User's Guide", but one of the steps failed. I failed in the process of erasing the program. I guess I have error in configuring the external flash, but I dont't know how to configure it. I think the configureation method described in th manual is difficult to understand. Is there any good advice? The following is my operation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87800i32E65E3C25FE9F64/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.bmp" alt="pastedImage_1.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87842i4B16B82975837F27/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.bmp" alt="pastedImage_2.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87883iEA6B19DCC7F796A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.bmp" alt="pastedImage_3.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87925iAC20E28592B5973A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.bmp" alt="pastedImage_4.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87843iEED143FF38C51EB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.bmp" alt="pastedImage_6.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2019 03:35:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937881#M37351</guid>
      <dc:creator>827529957</dc:creator>
      <dc:date>2019-09-03T03:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to program a new image if I start secure boot?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937882#M37352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="347303" data-username="827529957@qq.com" href="https://community.nxp.com/people/827529957@qq.com" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;Kunsen Chen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;If the&amp;nbsp;&lt;/SPAN&gt;secure boot is turned on, we can't&amp;nbsp;program a new image with it anymore.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&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, 06 Sep 2019 02:45:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937882#M37352</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-09-06T02:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to program a new image if I start secure boot?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937883#M37353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer,but is this mentioned in the manula? Or in which manual is mentioned? I hope you can provide help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 01:33:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937883#M37353</guid>
      <dc:creator>827529957</dc:creator>
      <dc:date>2019-09-11T01:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to program a new image if I start secure boot?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937884#M37354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="347303" data-username="827529957@qq.com" href="https://community.nxp.com/people/827529957@qq.com" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;Kunsen Chen&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;No, it doesn't mention in this manual.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;But according&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;this AN (also can find same in LPC54s018 UM), "Modifying the OTP is a one-time operation and is not reversed",&amp;nbsp;Secure boot enable bit field is one-time bit. Once it is enabled, there is no way to change it back.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;in AN12352, flashloader.exe is only for plain image. flashloader.exe can not work for non-plain image if boot enable bit is enabled, thus we can't program the image in the same way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;By checking&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with the author of AN12352, I can confirm it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Have a nice day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Jun Zhang&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 08:47:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937884#M37354</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-09-11T08:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to program a new image if I start secure boot?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937885#M37355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If IAP can be used to program after encryption?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 02:35:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937885#M37355</guid>
      <dc:creator>827529957</dc:creator>
      <dc:date>2019-09-18T02:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to program a new image if I start secure boot?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937886#M37356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IAP can be used to program after enabling secure boot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 02:18:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937886#M37356</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-09-19T02:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to program a new image if I start secure boot?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937887#M37357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is to say, after the LPC54S018 is securely booted, neither the ISP nor the JTAG can download the program, but the IAP is OK. Am I right?&lt;/P&gt;&lt;P&gt;Sincerely thank you for your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 02:38:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937887#M37357</guid>
      <dc:creator>827529957</dc:creator>
      <dc:date>2019-09-19T02:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to program a new image if I start secure boot?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937888#M37358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All ISP, JTAG. IAP can be used to program after enabling secure boot. but you must use it program &lt;STRONG&gt;signed image,&lt;/STRONG&gt; otherwise, it can't pass secure boot check.&lt;/P&gt;&lt;P&gt;It's not possible to program flash with IDE debug, because it't not a signed image when debugging code.&lt;/P&gt;&lt;P&gt;it's not possible to program flash with&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;AN12352&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;flashloader.exe because it is only for plain image&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 03:37:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937888#M37358</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-09-19T03:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to program a new image if I start secure boot?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937889#M37359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, I understand a bit, but I still have doubts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since IDE debug and AN12352 flashloader.exe can't download the encrypted image after securely booting, then which tool should I use to download the encrypted image after encrypting the image. Or, Is there any document can help me solve this question? What can I do to download an encrypted image after securely booting?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 04:09:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937889#M37359</guid>
      <dc:creator>827529957</dc:creator>
      <dc:date>2019-09-19T04:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to program a new image if I start secure boot?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937890#M37360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any LPC flash tool can work for it. for example, MCUXpresso IDE GUI Flash Tool.&lt;/P&gt;&lt;P&gt;The key point is not Flash tool, but the image must be signed, and must be correctly signed. Otherwise secure boot can not recognize it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't forget using elftosb-gui to sign the image first.&lt;/P&gt;&lt;P&gt;If you can't connect board, check OTP setting, make sure the jtag interface is not disabled&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 07:57:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937890#M37360</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-09-19T07:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to program a new image if I start secure boot?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937891#M37361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am confused now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, as described in the chapter 4 of the manual "LPC54xx_LPC54S0xx(UM11060)" . There are three policies for secure boot: 1. Enforce authentication(corresponding to signed image); 2. Enforce encryption (corresponding to encrypted image) 3. Enforce both authentication and encryption.(corresponding signed and encrypted image). And what I used is the second policy "Enforce encryption". So the image I need is encrypted image and not signed image.&lt;/P&gt;&lt;P&gt;Second, as you said, "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The key point is not Flash tool, but the image must be signed, and must be correctly signed. Otherwise secure boot can not recognize it.&amp;nbsp;&lt;/SPAN&gt;".&amp;nbsp; that is to say, the image which is correctly signed can be download and run successfully. Howerver, I just used encrypted boot refer&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"AN12352&amp;nbsp;LPC54S0xx Execute In Place with Secure Boot". Is it means, only signed images can use the way you said and only encrypted images can't be download after secure boot?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 09:24:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937891#M37361</guid>
      <dc:creator>827529957</dc:creator>
      <dc:date>2019-09-19T09:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to program a new image if I start secure boot?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937892#M37362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you use the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;second policy "Enforce encryption", this is same as signed one, you must use encrypted image to program with ISP, JTAG or IAP.&amp;nbsp; &amp;nbsp;elftosb.exe can be used for encryption. you must make sure the encryption is correct, otherwise it can't pass secure boot check.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;It's not possible to program flash with IDE debug, because it's only for plain image&amp;nbsp;when debugging code.&lt;/P&gt;&lt;P style="border: 0px;"&gt;it's not possible to program flash with&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;AN12352&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;flashloader.exe because it is only for plain image&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2019 03:22:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-program-a-new-image-if-I-start-secure-boot/m-p/937892#M37362</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-09-20T03:22:53Z</dc:date>
    </item>
  </channel>
</rss>

