<?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: LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1165084#M42511</link>
    <description>&lt;P&gt;I know it's working because i have some debug statement in the console&lt;/P&gt;&lt;P&gt;So i know :&lt;/P&gt;&lt;P&gt;* that secure boot is accepting my fw (else it would go to isp mode)&lt;/P&gt;&lt;P&gt;* it's starting to boot (the serial messages)&lt;/P&gt;&lt;P&gt;But it crashes very quickly after that.&lt;/P&gt;&lt;P&gt;My guess is that some things are not initialized properly and the chip configuration is different if you use secure boot or not.&lt;/P&gt;&lt;P&gt;Since it is not re-initialized properly by my app, it crashes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(the app is just running freeRTOS and blinking one of the onboard LED)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tres&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 09:53:48 GMT</pubDate>
    <dc:creator>trescurieux</dc:creator>
    <dc:date>2020-10-09T09:53:48Z</dc:date>
    <item>
      <title>LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1156993#M42340</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I managed to generate and flash a secure boot 2 capsule, so far so good&lt;/P&gt;&lt;P&gt;But i raised 2 questions :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q1: Other fields&amp;nbsp; of CMPA/CFPA&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;There are some parts that are a bit unclear , for example the BOOT_CFG/SPI_CFG/SDIO_CFG fields ?&lt;/P&gt;&lt;P&gt;The SECURE_BOOT_CFG is detailed both in the UM and the secure boot Application note, but i couldnt locate the details of the ones above&lt;/P&gt;&lt;P&gt;Any hint for these would be appreciated.&lt;/P&gt;&lt;P&gt;Q2 Debugging&lt;/P&gt;&lt;P&gt;--------------------&lt;/P&gt;&lt;P&gt;My test App works fine in "plain" mode but crashes pretty quickly in "secure boot" mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;TrustZone is NOT enabled, it crashes as soon as FreeRTOS is started.&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default, debug is not possible with a secure boot firmware. I suppose it's due to the field CC_SOCU_PIN &amp;amp; CC_SOCU_DFLT being both to zero so debug is disabled by default.&lt;/P&gt;&lt;P&gt;Is that the case ?&lt;/P&gt;&lt;P&gt;I tried to enable it (CC_SOCU_PIN=1F 00 00 00 and CC_SOCU_DEFLT=00 00 00 00 in CMPA), but it didnt work and actually sort of bricked the board&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the 2nd question :&lt;/P&gt;&lt;P&gt;What is the right way to enable debug over SWD in secure boot mode , when you dont care about securing the debug link ? (that will happen later)&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Tres&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 14:36:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1156993#M42340</guid>
      <dc:creator>trescurieux</dc:creator>
      <dc:date>2020-09-22T14:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1157546#M42350</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;A id="link_13" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #333f48;" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/154477" target="_self"&gt;&lt;SPAN class=""&gt;trescurieux&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;Q1:&amp;nbsp; Please tell me&amp;nbsp; where is "SPI_CFG/SDIO_CFG" you mentioned.&lt;/P&gt;
&lt;P&gt;Q2: If you haven't enable"Seal security configuration ", you can try to program a empty file to CMPA&lt;/P&gt;
&lt;P&gt;refer to:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="left: 111.735px; top: 1051.97px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.9384);"&gt;Until the CMPA is not sealed (HASH of CMPA written), you can change the configuration. The empty CMPA is&lt;/SPAN&gt;&lt;SPAN style="left: 140.97px; top: 1071.97px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.936401);"&gt;attached. Use "blhost -p COMxx write-memory 0x9E400 CMPA_empty.bin". This is not applicable to the LPC55S69 0A&lt;/SPAN&gt;&lt;SPAN style="left: 140.97px; top: 1091.97px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.938063);"&gt;silicon.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="left: 140.97px; top: 1091.97px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.938063);"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="left: 140.97px; top: 1091.97px; font-size: 15px; font-family: sans-serif; transform: scaleX(0.938063);"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 07:34:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1157546#M42350</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-09-23T07:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1157777#M42352</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;Q1: It is mentioned in the AN12283 (secure boot) page 8 (it is also mentioned in the LPC55S6x user manual)&lt;/P&gt;&lt;P&gt;They are field No 0 and 1 of CMPA header (offset 0 &amp;amp; 4)&lt;/P&gt;&lt;P&gt;Q2: Unfortunately i cannot get the board to go to ISP mode any longer. I'm afraid i've really bricked it. I bought a few in advance, not a real problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the question 2 stands : How to enable SWD debug (without authentication) when secure boot is enabled ? So that i can debug why it crashes only when secure boot is enabled ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Tres&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 13:28:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1157777#M42352</guid>
      <dc:creator>trescurieux</dc:creator>
      <dc:date>2020-09-23T13:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1158297#M42362</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Tres,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Q1, yes there isn't more description about "SPI_CFG/SDIO_CFG", I think this is a issue in UM, I will&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;take a ticket about this, thanks for your sharing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Q2, If&amp;nbsp; you haven't config the CC_SOCU part, after successful enable secure boot, the debug function can work well. If enable secure boot failed, the debug also can't work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 04:14:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1158297#M42362</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-09-24T04:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1158585#M42369</link>
      <description>&lt;P&gt;Thank you for your reply&lt;/P&gt;&lt;P&gt;This is what i tried&lt;/P&gt;&lt;P&gt;CC_SOCU_PIN= 0x1F 00 00 00&lt;/P&gt;&lt;P&gt;CC_SOCU DEFLT= 00 00 00 00&lt;/P&gt;&lt;P&gt;I though that would enable debug by default on all domains, but it seems that did exactly the opposite.&lt;/P&gt;&lt;P&gt;What would be the value to put in SOCU_PIN &amp;amp; SOCU_DEFAULT to enable all debug by default ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My aim is to do debugging to check why it crashes in secure boot and not in "plain" mode&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Tres&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:46:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1158585#M42369</guid>
      <dc:creator>trescurieux</dc:creator>
      <dc:date>2020-09-24T09:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1159224#M42392</link>
      <description>&lt;P&gt;Hello Tres,&lt;/P&gt;
&lt;P&gt;1) "I though that would enable debug by default on all domains,"&lt;/P&gt;
&lt;P&gt;-&amp;gt; Yes, do not config "CC_SOCU_PIN/CC_SOCU DEFLT", then every domains can debug.&lt;/P&gt;
&lt;P&gt;2) While if enable secure boot failed, no matter how to config , no domains can debug.&lt;/P&gt;
&lt;P&gt;About enable secure boot, please strictly fellow up the&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com.cn/docs/en/application-note/AN12283.pdf" target="_blank"&gt;https://www.nxp.com.cn/docs/en/application-note/AN12283.pdf&lt;/A&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 08:52:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1159224#M42392</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-09-25T08:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1160836#M42427</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thank you for your reply&lt;/P&gt;&lt;P&gt;The secure boot *is* working&lt;/P&gt;&lt;P&gt;The problem is the app is crashing quickly in secure boot mode, and it is&amp;nbsp; working fine in non secure boot mode&lt;/P&gt;&lt;P&gt;I 'm looking for a way to debug the app in secure boot mode, so that i can check why it crashes and fix it&lt;/P&gt;&lt;P&gt;It's fine if i have to lower the overall security temporarily&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Tres&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:48:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1160836#M42427</guid>
      <dc:creator>trescurieux</dc:creator>
      <dc:date>2020-09-29T16:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1165065#M42508</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #333f48;" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/154477" target="_self"&gt;&lt;SPAN class=""&gt;trescurieux&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you know "The secure boot *is* working" ?&lt;/P&gt;
&lt;P&gt;If the secure boot configure well, and program a SB2 file (APP+singed+security), it can work well.&lt;/P&gt;
&lt;P&gt;And at this time, also can debug(Do not erase,program, just debug).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 09:20:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1165065#M42508</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-10-09T09:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1165076#M42510</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thank you for you reply&lt;/P&gt;&lt;P&gt;Indeed, i will retry and disable erase/program in the debugger, that might be the main issue&lt;/P&gt;&lt;P&gt;Tres&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 09:50:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1165076#M42510</guid>
      <dc:creator>trescurieux</dc:creator>
      <dc:date>2020-10-09T09:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1165084#M42511</link>
      <description>&lt;P&gt;I know it's working because i have some debug statement in the console&lt;/P&gt;&lt;P&gt;So i know :&lt;/P&gt;&lt;P&gt;* that secure boot is accepting my fw (else it would go to isp mode)&lt;/P&gt;&lt;P&gt;* it's starting to boot (the serial messages)&lt;/P&gt;&lt;P&gt;But it crashes very quickly after that.&lt;/P&gt;&lt;P&gt;My guess is that some things are not initialized properly and the chip configuration is different if you use secure boot or not.&lt;/P&gt;&lt;P&gt;Since it is not re-initialized properly by my app, it crashes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(the app is just running freeRTOS and blinking one of the onboard LED)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tres&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 09:53:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1165084#M42511</guid>
      <dc:creator>trescurieux</dc:creator>
      <dc:date>2020-10-09T09:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1165864#M42531</link>
      <description>&lt;P&gt;Yes, it can't erase and program, you can also test Attach function to debug.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1602486268884.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127212i8876CD5272330E7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1602486268884.png" alt="Alice_Yang_0-1602486268884.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 07:04:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1165864#M42531</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-10-12T07:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69: Secure boot, debug and programming the other fields of CFPA/CMPA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1166595#M42542</link>
      <description>&lt;P&gt;Indeed the "attach to running" method worked&lt;/P&gt;&lt;P&gt;Just need to figure out why it crashes now&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 08:15:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Secure-boot-debug-and-programming-the-other-fields-of/m-p/1166595#M42542</guid>
      <dc:creator>trescurieux</dc:creator>
      <dc:date>2020-10-13T08:15:22Z</dc:date>
    </item>
  </channel>
</rss>

