<?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: When using Csec module, the key failed to be loaded, please help to see what the problem is in S32K</title>
    <link>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1628091#M21871</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I seem to understand how to update the secret key, I can simply think that after setting the authorization secret key, if I use SDK, I can directly complete the update of the secret key through loadKey function, need to pay attention to the parameter Settings, is that right?&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 07:08:26 GMT</pubDate>
    <dc:creator>ZEROOO</dc:creator>
    <dc:date>2023-04-05T07:08:26Z</dc:date>
    <item>
      <title>When using Csec module, the key failed to be loaded, please help to see what the problem is</title>
      <link>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1626721#M21808</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;When I use Csec module, I fail to update the loading key. After executing setAuthKey, I directly load the key using loadKey (line 184, line 185). In this case, the loading of the key is successful, and the return value is 1. Call loadKey, and the load will continue to fail, return the value of 0, what is the problem?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_0-1680512083879.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217479i5D2784792240F35A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_0-1680512083879.png" alt="ZEROooo_0-1680512083879.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The following is a case where the loadKey return value is not success when debugging with IC5000.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_1-1680512180100.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217480i4A38D8F82ADBC3C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_1-1680512180100.png" alt="ZEROooo_1-1680512180100.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>Mon, 03 Apr 2023 08:56:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1626721#M21808</guid>
      <dc:creator>ZEROOO</dc:creator>
      <dc:date>2023-04-03T08:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: When using Csec module, the key failed to be loaded, please help to see what the problem is</title>
      <link>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1627822#M21858</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200586"&gt;@ZEROOO&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you mean that loadkey at line 184 and 185 is working and loadkey at 189 and 196 is not working? If yes, it makes sense because the counters need to be updated.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1680627432797.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217734i0677A69A9E113D4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1680627432797.png" alt="lukaszadrapa_0-1680627432797.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But there's also next point - I really do not recommend to mix SDK and AN5401 together. More rework would be necessary in this case. For example, M1-M3 values are calculated inside the loadkey function. The calculate_M1_to_M5 won't have effect here at all.&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>Tue, 04 Apr 2023 17:01:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1627822#M21858</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-04-04T17:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: When using Csec module, the key failed to be loaded, please help to see what the problem is</title>
      <link>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1628055#M21866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Lukas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I still don't understand something about the key update. In AN5401, calculate_M1_to_M5 is used to update the key first, which is to obtain the value of M1-M3, so LOAD_KEY is used to load and update the key. This is the idea of AN5401, right? In SDK, firstly, setAuthKey is used to load MASTER_ECU_KEY and set it as authorization Key, and then loadKey is used to update key. Is it because loadKey in SDK already includes M1-M3 calculation? So after setting setAuthKey, you can load updates directly using loadKey? loadKey in SDK only calculates M1-M3, M4-M5 is not needed in the process of updating key, then what is the function of computeM4M5 used for?&lt;/P&gt;&lt;P&gt;AN5401：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_0-1680674247578.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217803i4647044251C6922D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_0-1680674247578.png" alt="ZEROooo_0-1680674247578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;SDK：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_1-1680674260101.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217804iF6E593DE2CED60EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_1-1680674260101.png" alt="ZEROooo_1-1680674260101.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_2-1680674313146.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217805iD208B62ED7E35506/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_2-1680674313146.png" alt="ZEROooo_2-1680674313146.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 05:59:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1628055#M21866</guid>
      <dc:creator>ZEROOO</dc:creator>
      <dc:date>2023-04-05T05:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: When using Csec module, the key failed to be loaded, please help to see what the problem is</title>
      <link>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1628086#M21870</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200586"&gt;@ZEROOO&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LOAD_KEY and loadKey are not the same functions. Just open the functions in SDK example to see what's inside:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1680677996920.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217816i1A28013E619DA5A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1680677996920.png" alt="lukaszadrapa_0-1680677996920.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="lukaszadrapa_1-1680678004056.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217817i37095C599ABA285A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1680678004056.png" alt="lukaszadrapa_1-1680678004056.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 07:00:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1628086#M21870</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-04-05T07:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: When using Csec module, the key failed to be loaded, please help to see what the problem is</title>
      <link>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1628091#M21871</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I seem to understand how to update the secret key, I can simply think that after setting the authorization secret key, if I use SDK, I can directly complete the update of the secret key through loadKey function, need to pay attention to the parameter Settings, is that right?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 07:08:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1628091#M21871</guid>
      <dc:creator>ZEROOO</dc:creator>
      <dc:date>2023-04-05T07:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: When using Csec module, the key failed to be loaded, please help to see what the problem is</title>
      <link>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1628437#M21881</link>
      <description>&lt;P&gt;Yes, after loading of MASTER_ECU_KEY by setAuthKey function, you can load or update other keys by loadKey only with correct parameters.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 18:29:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-using-Csec-module-the-key-failed-to-be-loaded-please-help/m-p/1628437#M21881</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-04-05T18:29:38Z</dc:date>
    </item>
  </channel>
</rss>

