<?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: MPC5777C CSE CSE_ECR= 0X02 command sequence error in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CSE-CSE-ECR-0X02-command-sequence-error/m-p/1842965#M25243</link>
    <description>&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;Are there any docs that mention this point?&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 07:10:28 GMT</pubDate>
    <dc:creator>WeoWang</dc:creator>
    <dc:date>2024-04-09T07:10:28Z</dc:date>
    <item>
      <title>MPC5777C CSE CSE_ECR= 0X02 command sequence error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CSE-CSE-ECR-0X02-command-sequence-error/m-p/1839205#M25188</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;
&lt;P&gt;Customer currently do CSE key load&amp;amp;erase( with a for loop, first load key and then erase key about 10000 times) test&amp;nbsp;experiment.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhongling_Lang_1-1712049463213.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/271493iB5F01DEF946B3A6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Zhongling_Lang_1-1712049463213.png" alt="Zhongling_Lang_1-1712049463213.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But after the 10000 times test, and power on the MCU again, the key can not be loaded or erased any more and the CSE_ECR = 0x02 reported command sequence error, and other CSE command also have this error when send to CSE. And&amp;nbsp;&lt;SPAN&gt;CANCEL is the only command the CSE will accept without 0x02 error. This issue also same with this ticket, but it doesn't have a correct answer: &lt;A href="https://community.nxp.com/t5/MPC5xxx/MPC5777C-CSE-Problem/m-p/589107#M4239" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/MPC5xxx/MPC5777C-CSE-Problem/m-p/589107#M4239&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;So question is how to handle this issue, since in this case the key can not be loaded or erased any more and the CSE command also can not be accepted by CSE core.&lt;/P&gt;
&lt;P&gt;I compared the normal(replaced with new chip on EVB) and issue chip and found that the SR_BFN bit and CSE_ECR bit are different, SR_BFN bit means secure boot finished but i don't enable the secure boot on the issue chip.&lt;/P&gt;
&lt;P&gt;error one:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhongling_Lang_0-1712054067056.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/271540i982396339D098A01/image-size/large?v=v2&amp;amp;px=999" role="button" title="Zhongling_Lang_0-1712054067056.png" alt="Zhongling_Lang_0-1712054067056.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;normal one:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhongling_Lang_2-1712054216233.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/271542i6994110AC9C4007B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Zhongling_Lang_2-1712054216233.png" alt="Zhongling_Lang_2-1712054216233.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 10:48:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CSE-CSE-ECR-0X02-command-sequence-error/m-p/1839205#M25188</guid>
      <dc:creator>Zhongling_Lang</dc:creator>
      <dc:date>2024-04-02T10:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C CSE CSE_ECR= 0X02 command sequence error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CSE-CSE-ECR-0X02-command-sequence-error/m-p/1842209#M25235</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/173861"&gt;@Zhongling_Lang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;most likely, this is caused by unexpected reset or by too short timeout before power cycle of the MCU (the more erase cycles is performed on the flash, the more time is needed to erase the flash).&lt;/P&gt;
&lt;P&gt;If erase operation triggered by DEBUG_CHAL+DEBUG_AUTH commands is terminated by unexpected reset, it will make the CSE unusable and there's no way to recover.&lt;/P&gt;
&lt;P&gt;Anyway, this is not expected use-case in real application. DEBUG_CHAL+DEBUG_AUTH should be used only during development, not in the field.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 08:05:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CSE-CSE-ECR-0X02-command-sequence-error/m-p/1842209#M25235</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2024-04-08T08:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C CSE CSE_ECR= 0X02 command sequence error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CSE-CSE-ECR-0X02-command-sequence-error/m-p/1842965#M25243</link>
      <description>&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;Are there any docs that mention this point?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 07:10:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CSE-CSE-ECR-0X02-command-sequence-error/m-p/1842965#M25243</guid>
      <dc:creator>WeoWang</dc:creator>
      <dc:date>2024-04-09T07:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5777C CSE CSE_ECR= 0X02 command sequence error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CSE-CSE-ECR-0X02-command-sequence-error/m-p/1842981#M25244</link>
      <description>&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;It sounds make sense, if this point should pay attention about Key erase, it should figure out in doc, because in our normal debug process we may have unexpected restart or power on the board again when calling the&amp;nbsp;&lt;SPAN&gt;DEBUG_CHAL+DEBUG_AUTH.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 07:21:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5777C-CSE-CSE-ECR-0X02-command-sequence-error/m-p/1842981#M25244</guid>
      <dc:creator>Zhongling_Lang</dc:creator>
      <dc:date>2024-04-09T07:21:16Z</dc:date>
    </item>
  </channel>
</rss>

