<?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: csec_keyconfig_s32k148 example run error in S32K</title>
    <link>https://community.nxp.com/t5/S32K/csec-keyconfig-s32k148-example-run-error/m-p/1212985#M9622</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; I call eraseKeys before&amp;nbsp;erase all Flash blocks use&amp;nbsp;PEmicro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if (flashSSDConfig.EEESize == 0)
{
#if ERASE_ALL_KEYS
if (eraseKeys())
{
PINS_DRV_SetPins(GPIO_PORT, 1 &amp;lt;&amp;lt; LED_RED);
PINS_DRV_SetPins(GPIO_PORT, 1 &amp;lt;&amp;lt; LED_GREEN);
}
#endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then,I can't debug the code with &lt;SPAN&gt;PEmicro&lt;/SPAN&gt;.It reports bus error.I have no io pin to &lt;SPAN&gt;indicate if it success&lt;/SPAN&gt;. Then I run example from flash, It still reports CSEC_KEY_UPDATE_ERROR, when I call&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;stat = CSEC_DRV_LoadKey(CSEC_MASTER_ECU, m1, m2, m3, m4, m5);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I use&amp;nbsp;&lt;SPAN&gt;PEmicro to watch if it runs example successfully?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jan 2021 06:10:19 GMT</pubDate>
    <dc:creator>zhigang</dc:creator>
    <dc:date>2021-01-18T06:10:19Z</dc:date>
    <item>
      <title>csec_keyconfig_s32k148 example run error</title>
      <link>https://community.nxp.com/t5/S32K/csec-keyconfig-s32k148-example-run-error/m-p/1210920#M9581</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I run&amp;nbsp;csec_keyconfig_s32k148 example to test csec nvm key.First I run csec_keyconfig_s32k148 example in flash with jlink,but it reports&amp;nbsp;STATUS_SEC_KEY_UPDATE_ERROR when run CSEC_DRV_LoadKey function.Then, I build the code in ram, and want to repart&amp;nbsp;FlexNVM and FlexRAM, but when I run&amp;nbsp;FLASH_DRV_EraseAllBlock(&amp;amp;flashSSDConfig);, it reports FSTAT-&amp;gt;ACCERR error. My SOSC clock is 16000000Hz, and I have reconfig the clock setting in ProcessorExpert.pe. and SPLL div set /2. I don't know why it reports this error.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 07:35:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/csec-keyconfig-s32k148-example-run-error/m-p/1210920#M9581</guid>
      <dc:creator>zhigang</dc:creator>
      <dc:date>2021-01-13T07:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: csec_keyconfig_s32k148 example run error</title>
      <link>https://community.nxp.com/t5/S32K/csec-keyconfig-s32k148-example-run-error/m-p/1212350#M9606</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please take a look at the SDK documentation&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1610707651120.png" style="width: 298px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134872i8B08BD08AB3B385F/image-dimensions/298x194?v=v2" width="298" height="194" role="button" title="danielmartynek_0-1610707651120.png" alt="danielmartynek_0-1610707651120.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="danielmartynek_1-1610707716571.png" style="width: 906px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134873iDD37A3244C8E52F7/image-dimensions/906x308?v=v2" width="906" height="308" role="button" title="danielmartynek_1-1610707716571.png" alt="danielmartynek_1-1610707716571.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The example must be run from SRAM first to partition the MCU for CSEc.&lt;/P&gt;
&lt;P&gt;And once it has been partitioned, the MCU cannot be mass erased until the keys are removed.&lt;/P&gt;
&lt;P&gt;Since you can't mass erase the MCU, I assume it has been partitioned, please run the example with ERASE_ALL_KEYS = 1.&lt;/P&gt;
&lt;P&gt;After that, you should be able to mass erase and partition the MCU again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 10:53:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/csec-keyconfig-s32k148-example-run-error/m-p/1212350#M9606</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-01-15T10:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: csec_keyconfig_s32k148 example run error</title>
      <link>https://community.nxp.com/t5/S32K/csec-keyconfig-s32k148-example-run-error/m-p/1212985#M9622</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; I call eraseKeys before&amp;nbsp;erase all Flash blocks use&amp;nbsp;PEmicro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if (flashSSDConfig.EEESize == 0)
{
#if ERASE_ALL_KEYS
if (eraseKeys())
{
PINS_DRV_SetPins(GPIO_PORT, 1 &amp;lt;&amp;lt; LED_RED);
PINS_DRV_SetPins(GPIO_PORT, 1 &amp;lt;&amp;lt; LED_GREEN);
}
#endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then,I can't debug the code with &lt;SPAN&gt;PEmicro&lt;/SPAN&gt;.It reports bus error.I have no io pin to &lt;SPAN&gt;indicate if it success&lt;/SPAN&gt;. Then I run example from flash, It still reports CSEC_KEY_UPDATE_ERROR, when I call&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;stat = CSEC_DRV_LoadKey(CSEC_MASTER_ECU, m1, m2, m3, m4, m5);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I use&amp;nbsp;&lt;SPAN&gt;PEmicro to watch if it runs example successfully?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 06:10:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/csec-keyconfig-s32k148-example-run-error/m-p/1212985#M9622</guid>
      <dc:creator>zhigang</dc:creator>
      <dc:date>2021-01-18T06:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: csec_keyconfig_s32k148 example run error</title>
      <link>https://community.nxp.com/t5/S32K/csec-keyconfig-s32k148-example-run-error/m-p/1217816#M9657</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can step the eraseKeys() function and the whole example to see which operation fails.&lt;/P&gt;
&lt;P&gt;Also, please make sure that the application is indeed in SRAM by reading the program counter.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 09:40:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/csec-keyconfig-s32k148-example-run-error/m-p/1217816#M9657</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-01-20T09:40:58Z</dc:date>
    </item>
  </channel>
</rss>

