<?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>S32KのトピックCSEc can not load key repeat</title>
    <link>https://community.nxp.com/t5/S32K/CSEc-can-not-load-key-repeat/m-p/1204262#M9391</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when i debugging CSEc part in S32K146,load master key in master ecu keyslot&amp;nbsp;after initialization CSEc ,the first time the command&amp;nbsp;CMD_LOAD_KEY function return to OK,the second time the&amp;nbsp;command&amp;nbsp;CMD_LOAD_KEY function return to Not OK,i loaded same key in these two time,and then i can not load key success after that.&lt;/P&gt;&lt;P&gt;how can i load key repeatedly? the function in the below.&lt;/P&gt;&lt;P&gt;FUNC(Crypto_Cse_ErrorCodeType, CRYPTO_CODE) Crypto_Cse_LoadKey(VAR(Crypto_Cse_KeyIdType, AUTOMATIC) keyId, P2CONST(uint8, AUTOMATIC, CRYPTO_APPL_CONST) keyM1Ptr,&lt;BR /&gt;P2CONST(uint8, AUTOMATIC, CRYPTO_APPL_CONST) keyM2Ptr, P2CONST(uint8, AUTOMATIC, CRYPTO_APPL_CONST) keyM3Ptr&lt;BR /&gt;)&lt;BR /&gt;{&lt;BR /&gt;VAR(Crypto_Cse_ErrorCodeType, AUTOMATIC) eOutResponse = CRYPTO_CSE_ERC_GENERAL_ERROR;&lt;/P&gt;&lt;P&gt;Crypto_Cse_eState = CRYPTO_CSE_BUSY;&lt;/P&gt;&lt;P&gt;/* clear ACCERR and FPVIOL flags before entering any operation */&lt;BR /&gt;Crypto_Cse_ClearErrorFlags();&lt;BR /&gt;/* write keyM1Ptr, keyM2Ptr, keyM3Ptr to CRYPTO_CSE_PRAM */&lt;BR /&gt;Crypto_Cse_WritePagesToPRAM(keyM1Ptr, CRYPTO_PRAM_PAGE1_ADDR32, CRYPTO_M1_SIZE_IN_PAGES_U16);&lt;BR /&gt;Crypto_Cse_WritePagesToPRAM(keyM2Ptr, CRYPTO_PRAM_PAGE2_ADDR32, CRYPTO_M2_SIZE_IN_PAGES_U16);&lt;BR /&gt;Crypto_Cse_WritePagesToPRAM(keyM3Ptr, CRYPTO_PRAM_PAGE4_ADDR32, CRYPTO_M3_SIZE_IN_PAGES_U16);&lt;BR /&gt;&lt;BR /&gt;/* write command header to CRYPTO_CSE_PRAM, wait for the completion of the command, read and process error code */&lt;BR /&gt;eOutResponse = Crypto_Cse_SendCommand(CRYPTO_CSE_CMD_LOAD_KEY, CRYPTO_CSE_FUNC_FORMAT_COPY, CRYPTO_CSE_CALL_SEQ_FIRST, keyId);&lt;BR /&gt;eOutResponse = Crypto_Cse_WaitCommandComplete();&lt;/P&gt;&lt;P&gt;Crypto_Cse_eState = CRYPTO_CSE_IDLE;&lt;/P&gt;&lt;P&gt;return eOutResponse;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Fri, 25 Dec 2020 07:29:25 GMT</pubDate>
    <dc:creator>BigJulie</dc:creator>
    <dc:date>2020-12-25T07:29:25Z</dc:date>
    <item>
      <title>CSEc can not load key repeat</title>
      <link>https://community.nxp.com/t5/S32K/CSEc-can-not-load-key-repeat/m-p/1204262#M9391</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when i debugging CSEc part in S32K146,load master key in master ecu keyslot&amp;nbsp;after initialization CSEc ,the first time the command&amp;nbsp;CMD_LOAD_KEY function return to OK,the second time the&amp;nbsp;command&amp;nbsp;CMD_LOAD_KEY function return to Not OK,i loaded same key in these two time,and then i can not load key success after that.&lt;/P&gt;&lt;P&gt;how can i load key repeatedly? the function in the below.&lt;/P&gt;&lt;P&gt;FUNC(Crypto_Cse_ErrorCodeType, CRYPTO_CODE) Crypto_Cse_LoadKey(VAR(Crypto_Cse_KeyIdType, AUTOMATIC) keyId, P2CONST(uint8, AUTOMATIC, CRYPTO_APPL_CONST) keyM1Ptr,&lt;BR /&gt;P2CONST(uint8, AUTOMATIC, CRYPTO_APPL_CONST) keyM2Ptr, P2CONST(uint8, AUTOMATIC, CRYPTO_APPL_CONST) keyM3Ptr&lt;BR /&gt;)&lt;BR /&gt;{&lt;BR /&gt;VAR(Crypto_Cse_ErrorCodeType, AUTOMATIC) eOutResponse = CRYPTO_CSE_ERC_GENERAL_ERROR;&lt;/P&gt;&lt;P&gt;Crypto_Cse_eState = CRYPTO_CSE_BUSY;&lt;/P&gt;&lt;P&gt;/* clear ACCERR and FPVIOL flags before entering any operation */&lt;BR /&gt;Crypto_Cse_ClearErrorFlags();&lt;BR /&gt;/* write keyM1Ptr, keyM2Ptr, keyM3Ptr to CRYPTO_CSE_PRAM */&lt;BR /&gt;Crypto_Cse_WritePagesToPRAM(keyM1Ptr, CRYPTO_PRAM_PAGE1_ADDR32, CRYPTO_M1_SIZE_IN_PAGES_U16);&lt;BR /&gt;Crypto_Cse_WritePagesToPRAM(keyM2Ptr, CRYPTO_PRAM_PAGE2_ADDR32, CRYPTO_M2_SIZE_IN_PAGES_U16);&lt;BR /&gt;Crypto_Cse_WritePagesToPRAM(keyM3Ptr, CRYPTO_PRAM_PAGE4_ADDR32, CRYPTO_M3_SIZE_IN_PAGES_U16);&lt;BR /&gt;&lt;BR /&gt;/* write command header to CRYPTO_CSE_PRAM, wait for the completion of the command, read and process error code */&lt;BR /&gt;eOutResponse = Crypto_Cse_SendCommand(CRYPTO_CSE_CMD_LOAD_KEY, CRYPTO_CSE_FUNC_FORMAT_COPY, CRYPTO_CSE_CALL_SEQ_FIRST, keyId);&lt;BR /&gt;eOutResponse = Crypto_Cse_WaitCommandComplete();&lt;/P&gt;&lt;P&gt;Crypto_Cse_eState = CRYPTO_CSE_IDLE;&lt;/P&gt;&lt;P&gt;return eOutResponse;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2020 07:29:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CSEc-can-not-load-key-repeat/m-p/1204262#M9391</guid>
      <dc:creator>BigJulie</dc:creator>
      <dc:date>2020-12-25T07:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: CSEc can not load key repeat</title>
      <link>https://community.nxp.com/t5/S32K/CSEc-can-not-load-key-repeat/m-p/1206373#M9469</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181590"&gt;@BigJulie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As my understanding, it's not possible to load the same key into CSEc PRAM. Either load another key, or erase the old key and load again is possible.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Nam&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 02:19:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CSEc-can-not-load-key-repeat/m-p/1206373#M9469</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2021-01-05T02:19:55Z</dc:date>
    </item>
  </channel>
</rss>

