<?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: Fail During Secure S32K148 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Fail-During-Secure-S32K148/m-p/1456363#M15372</link>
    <description>&lt;P&gt;Hi Nevzat,&lt;/P&gt;
&lt;P&gt;If the partition was not erased, the EraseAllBlocks command and partition command would just return Access Error. So, to catch these error it's highly recommended to check the return value of these functions.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 11:10:58 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2022-05-11T11:10:58Z</dc:date>
    <item>
      <title>Fail During Secure S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Fail-During-Secure-S32K148/m-p/1451170#M15211</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/159987"&gt;@jiri_kral&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/1452"&gt;@BlackNight&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a project which the security is needed for with S32K148 board. I activated secure boot by using csec_boot_protection_s32k148 example project before many times. Then, unsecure for any other jobs. Thus, there was no problem.&lt;/P&gt;&lt;P&gt;However, after a while, I tried to activate the secure booting again by using the same example project (csec_boot_protection_s32k148) but in the eraseKeys() -&amp;gt;&amp;nbsp;CSEC_DRV_InitRNG() -&amp;gt;&amp;nbsp;&lt;STRONG&gt;CSEC_WaitCommandCompletion()&lt;/STRONG&gt; the program crashes and watchdog occurs. All my trials, the program fails in that function which is attached to this question. I solve this problem by enabling the 'Emergency Kinetis Device Recovery by Full Chip Erase' option from the IDE-&amp;gt;Debugger tab. After this, the eraseKeys() is stepped over succesfully.&lt;/P&gt;&lt;P&gt;As a result, I want to that what was the problem before deleting the full chip. Is there any workaround to avoid this problem? I am using some batch scripts to flash and run code to board with GDB server and console, so I want to erase full chip from the GDB terminal but I cannot? Any idea?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fdgb.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178406i55A92EB3C10498E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fdgb.PNG" alt="fdgb.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fgdfg.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178407i8D7578CFA1058A58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fgdfg.PNG" alt="fgdfg.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 08:27:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Fail-During-Secure-S32K148/m-p/1451170#M15211</guid>
      <dc:creator>nevozade</dc:creator>
      <dc:date>2022-04-29T08:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fail During Secure S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Fail-During-Secure-S32K148/m-p/1452513#M15245</link>
      <description>&lt;P&gt;Hi Nevzat,&lt;BR /&gt;this is not easy question. From functional point of view, I can't see a reason for such behavior. Is it possible to reproduce the issue or did you see that only once?&lt;BR /&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 05:07:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Fail-During-Secure-S32K148/m-p/1452513#M15245</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2022-05-04T05:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fail During Secure S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Fail-During-Secure-S32K148/m-p/1455713#M15344</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Sorry for late answer, but I face with that problem many times but not always which makes the thing interesting. I though that the partition of the FLASH done before is different from the boot protection project's partition configurations. Thus, when I run the code from RAM without cleaning the FLASH with, the oldest partition blocks me to do the new partition and initializations. Is it possible being something like that?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 13:12:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Fail-During-Secure-S32K148/m-p/1455713#M15344</guid>
      <dc:creator>nevozade</dc:creator>
      <dc:date>2022-05-10T13:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fail During Secure S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Fail-During-Secure-S32K148/m-p/1456363#M15372</link>
      <description>&lt;P&gt;Hi Nevzat,&lt;/P&gt;
&lt;P&gt;If the partition was not erased, the EraseAllBlocks command and partition command would just return Access Error. So, to catch these error it's highly recommended to check the return value of these functions.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 11:10:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Fail-During-Secure-S32K148/m-p/1456363#M15372</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2022-05-11T11:10:58Z</dc:date>
    </item>
  </channel>
</rss>

