<?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: cse secureboot mpc5777C in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/cse-secureboot-mpc5777C/m-p/1816555#M24964</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210634"&gt;@Othmane1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secure boot is enabled on all production devices. And parallel boot mode is selected. This is configured in NXP factory by DCF record and it cannot be changed. The DCF record is not visible in the memory map, it's hidden for user.&lt;/P&gt;
&lt;P&gt;The device is configured in a way that SECURE_BOOT command is always executed by CSE during reset. If the BOOT_MAC_KEY is empty that nothing will happen and the process is just finished.&lt;/P&gt;
&lt;P&gt;To make it working: &lt;BR /&gt;1. It is necessary to program DCF records to define start address and size for secure boot:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1709036133430.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265302iF874B9A98810E311/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1709036133430.png" alt="lukaszadrapa_0-1709036133430.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This DCF configurator could help:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5777C-DCF-Configurator/ta-p/1104470" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5777C-DCF-Configurator/ta-p/1104470&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. Load MASTER_ECU_KEY and BOOT_MAC_KEY by using LOAD_KEY command&lt;/P&gt;
&lt;P&gt;3. Power cycle the device. The CSE will automatically calculate MAC of defined area and it will be stored automatically to BOOT_MAC slot. Afte next reset, you can just check CSE status register if secure boot was successful or not.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;And notice that there's following erratum which is important in case you want to calculate the BOOT_MAC by yourself:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_1-1709036152674.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265303iEB20EF98D04930FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1709036152674.png" alt="lukaszadrapa_1-1709036152674.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/errata/MPC5777C_3N45H.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/errata/MPC5777C_3N45H.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 12:17:16 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2024-02-27T12:17:16Z</dc:date>
    <item>
      <title>cse secureboot mpc5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/cse-secureboot-mpc5777C/m-p/1814737#M24950</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need someone to explain to me how exactly the secureboot command will be executed during reset as it was mentioned in the datasheet:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Othmane1_0-1708700433201.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/264790i104DCD42E87C76D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Othmane1_0-1708700433201.png" alt="Othmane1_0-1708700433201.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;from what i understand through going though the reference manual + some application notes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the secureboot command can be executed by the BAM right?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Othmane1_1-1708700601228.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/264791i93FF70050F84F708/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Othmane1_1-1708700601228.png" alt="Othmane1_1-1708700601228.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;the DCF records for the secureboot configuration is done in the factory and cannot be changed right?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Othmane1_5-1708700747043.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/264797i46AF4573A1ECC3B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Othmane1_5-1708700747043.png" alt="Othmane1_5-1708700747043.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;When i try to view the UTEST area i couldn't find any Record for that secureboot configuration&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Othmane1_6-1708700850077.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/264798iBC722A4FD3DAC5C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Othmane1_6-1708700850077.png" alt="Othmane1_6-1708700850077.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;what should i do if i want the secureboot command to be executed automatically after every reset ?&lt;/LI&gt;&lt;/UL&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>Fri, 23 Feb 2024 15:26:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/cse-secureboot-mpc5777C/m-p/1814737#M24950</guid>
      <dc:creator>Othmane1</dc:creator>
      <dc:date>2024-02-23T15:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: cse secureboot mpc5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/cse-secureboot-mpc5777C/m-p/1816555#M24964</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210634"&gt;@Othmane1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secure boot is enabled on all production devices. And parallel boot mode is selected. This is configured in NXP factory by DCF record and it cannot be changed. The DCF record is not visible in the memory map, it's hidden for user.&lt;/P&gt;
&lt;P&gt;The device is configured in a way that SECURE_BOOT command is always executed by CSE during reset. If the BOOT_MAC_KEY is empty that nothing will happen and the process is just finished.&lt;/P&gt;
&lt;P&gt;To make it working: &lt;BR /&gt;1. It is necessary to program DCF records to define start address and size for secure boot:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1709036133430.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265302iF874B9A98810E311/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1709036133430.png" alt="lukaszadrapa_0-1709036133430.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This DCF configurator could help:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5777C-DCF-Configurator/ta-p/1104470" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5777C-DCF-Configurator/ta-p/1104470&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. Load MASTER_ECU_KEY and BOOT_MAC_KEY by using LOAD_KEY command&lt;/P&gt;
&lt;P&gt;3. Power cycle the device. The CSE will automatically calculate MAC of defined area and it will be stored automatically to BOOT_MAC slot. Afte next reset, you can just check CSE status register if secure boot was successful or not.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;And notice that there's following erratum which is important in case you want to calculate the BOOT_MAC by yourself:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_1-1709036152674.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265303iEB20EF98D04930FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1709036152674.png" alt="lukaszadrapa_1-1709036152674.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/errata/MPC5777C_3N45H.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/errata/MPC5777C_3N45H.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 12:17:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/cse-secureboot-mpc5777C/m-p/1816555#M24964</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2024-02-27T12:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: cse secureboot mpc5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/cse-secureboot-mpc5777C/m-p/2035556#M27218</link>
      <description>&lt;P&gt;can you please further explain the erratum?&lt;/P&gt;&lt;P&gt;does it mean that the GENERATE_MAC command that I can use to calculate the MAC of the software doesn't work?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 10:37:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/cse-secureboot-mpc5777C/m-p/2035556#M27218</guid>
      <dc:creator>Othmane1</dc:creator>
      <dc:date>2025-01-29T10:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: cse secureboot mpc5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/cse-secureboot-mpc5777C/m-p/2035997#M27222</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210634"&gt;@Othmane1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GENERATE_MAC command works as expected. &lt;/P&gt;
&lt;P&gt;The erratum says that CSE does not calculate correctly only the BOOT_MAC. SHE specification requires to calculate the BOOT_MAC like:&lt;/P&gt;
&lt;P&gt;CMAC( BOOT_MAC_KEY (“0...0“ 96 | SIZE | DATA))&lt;/P&gt;
&lt;P&gt;However, CSE is doing only (CMAC( BOOT_MAC_KEY (DATA)))&lt;/P&gt;
&lt;P&gt;If you calculate BOOT_MAC offline by some external tools, it's necessary to take this into account.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 06:04:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/cse-secureboot-mpc5777C/m-p/2035997#M27222</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-01-30T06:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: cse secureboot mpc5777C</title>
      <link>https://community.nxp.com/t5/MPC5xxx/cse-secureboot-mpc5777C/m-p/2036007#M27223</link>
      <description>&lt;P&gt;Now i understand.&lt;/P&gt;&lt;P&gt;i have other questions:&lt;/P&gt;&lt;P&gt;1.the official way to do secureboot on cse is to first flash the UTEST (DCF) address and length of the code then load the boot_mac_key right?&lt;/P&gt;&lt;P&gt;2.Does the previous method apply to the HSM too?&lt;/P&gt;&lt;P&gt;3.I saw in some old documentation of CSE that we can specify the address and length by following this table attached, is both method for secure boot can be used?&lt;/P&gt;&lt;P&gt;4.if I don't want to erase the keys every time I update the software (due to the secure boot failing for mismatch of boot_mac) can I just use the function&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SECURITY_GenerateMac to calculate the new MAC then load it using LOAD_key function then flash the new software?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;5.I saw that the driver of the case provide&amp;nbsp; the&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;CSE_DRV_SecureBoot function which I don't know when can it be used? since the secure boot is always done after POR!! or is there another scenario where it can be used?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SECBOOT.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/321881i37DED10B34B8B7D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="SECBOOT.PNG" alt="SECBOOT.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 06:17:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/cse-secureboot-mpc5777C/m-p/2036007#M27223</guid>
      <dc:creator>Othmane1</dc:creator>
      <dc:date>2025-01-30T06:17:54Z</dc:date>
    </item>
  </channel>
</rss>

