<?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: The program is stuck while CSEC_DRV_GenerateRND function in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1660372#M3121</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;CSE_PRAM cannot be accessed because of insufficient permissions. How to set access permissions？&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 03:30:46 GMT</pubDate>
    <dc:creator>ZEROOO</dc:creator>
    <dc:date>2023-05-31T03:30:46Z</dc:date>
    <item>
      <title>CSEc: The program is stuck while CSEC_DRV_GenerateRND function</title>
      <link>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1658942#M3113</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;When using the CSEc module CSEC_DRV_GenerateRND function to generate random numbers, the program will get stuck at the position where the command is sent. What is the specific reason for this phenomenon?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_0-1685343256504.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225164i19B1A3E85A431947/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_0-1685343256504.png" alt="ZEROooo_0-1685343256504.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_1-1685343293434.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225165i44818DE6F95BDF33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_1-1685343293434.png" alt="ZEROooo_1-1685343293434.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, 29 May 2023 06:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1658942#M3113</guid>
      <dc:creator>ZEROOO</dc:creator>
      <dc:date>2023-05-29T06:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: CSEc: The program is stuck while CSEC_DRV_GenerateRND function</title>
      <link>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1659227#M3114</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;I saw something similar when the device was not partitioned yet. Was the CSEc enabled by partition on this device?&lt;/P&gt;
&lt;P&gt;What is the content of FSTAT, FCSESTAT0 and FERSTAT registers? &lt;/P&gt;
&lt;P&gt;Do you use EEPROM at the same time?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 14:38:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1659227#M3114</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-05-29T14:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: CSEc: The program is stuck while CSEC_DRV_GenerateRND function</title>
      <link>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1659356#M3116</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I am sure that the CSEc module has been started, because I executed CSEC_DRV_GenerateRND directly after initializing the driver module, which can generate random numbers normally. I don't quite understand what you said about using eeprom, we configured flexram to simulate eeprom, is there any problem.&lt;/P&gt;&lt;P&gt;Partition code:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;status&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;FLASH_DRV_DEFlashPartition&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;flashSSDConfig&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0x3&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0x3&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0x1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_0-1685409479522.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225265iD414B5A7604FD33D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_0-1685409479522.png" alt="ZEROooo_0-1685409479522.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_1-1685409484104.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225266i2A0CCBCAD1355450/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_1-1685409484104.png" alt="ZEROooo_1-1685409484104.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_2-1685409489274.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225267i51EC828AE7D4DBBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_2-1685409489274.png" alt="ZEROooo_2-1685409489274.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 May 2023 01:20:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1659356#M3116</guid>
      <dc:creator>ZEROOO</dc:creator>
      <dc:date>2023-05-30T01:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: CSEc: The program is stuck while CSEC_DRV_GenerateRND function</title>
      <link>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1659624#M3117</link>
      <description>&lt;P&gt;Ok, there's nothing wrong in the registers.&lt;/P&gt;
&lt;P&gt;Regarding CSEc and EEE:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1685432699263.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225335iC9D4AFCA924FCF0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1685432699263.png" alt="lukaszadrapa_0-1685432699263.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Also the device can't run in high speed mode:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_1-1685432736387.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225336i51A054D26C2C1870/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1685432736387.png" alt="lukaszadrapa_1-1685432736387.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Notice that SDK drivers do not check if EEE/flash operation is running when CSEc functions are going to be executed. I was already asking for this but it is not implemented yet. Currently it is up to user to check this.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 07:47:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1659624#M3117</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-05-30T07:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: CSEc: The program is stuck while CSEC_DRV_GenerateRND function</title>
      <link>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1659681#M3118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Lukas，&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I assume that if the CSEc command conflicts with other memory operations, the corresponding register will report a failure.There is code in the SDK to detect if the EEE/flash operation is executing.CSEC_DRV_GenerateRND can be called directly after initialization. If it is placed in a periodic task, it will get stuck.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;/*!&lt;BR /&gt;* @brief Waits for the completion of a CSEc command.&lt;BR /&gt;*&lt;BR /&gt;* This function waits for the completion of a CSEc command.&lt;BR /&gt;*/&lt;BR /&gt;static inline void CSEC_WaitCommandCompletion(void)&lt;BR /&gt;{&lt;BR /&gt;while ((FTFC-&amp;gt;FSTAT &amp;amp; FTFC_FSTAT_CCIF_MASK) == 0U)&lt;BR /&gt;{&lt;BR /&gt;/* Wait until the CCIF flag is set */&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 08:21:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1659681#M3118</guid>
      <dc:creator>ZEROOO</dc:creator>
      <dc:date>2023-05-30T08:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: CSEc: The program is stuck while CSEC_DRV_GenerateRND function</title>
      <link>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1660295#M3120</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;This problem is urgent, please provide help.I would like to know if calling CSEC_DRV_GenerateRND generates random numbers to determine whether partitioning is successful. If checking CSE_PRAM is always "can not access" and "skipped", is this normal? How to determine partitioning is successful?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_0-1685496861858.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225525iCC9C4E45388BCEAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_0-1685496861858.png" alt="ZEROooo_0-1685496861858.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 01:34:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1660295#M3120</guid>
      <dc:creator>ZEROOO</dc:creator>
      <dc:date>2023-05-31T01:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: CSEc: The program is stuck while CSEC_DRV_GenerateRND function</title>
      <link>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1660372#M3121</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;CSE_PRAM cannot be accessed because of insufficient permissions. How to set access permissions？&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 03:30:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1660372#M3121</guid>
      <dc:creator>ZEROOO</dc:creator>
      <dc:date>2023-05-31T03:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: CSEc: The program is stuck while CSEC_DRV_GenerateRND function</title>
      <link>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1660443#M3122</link>
      <description>&lt;P&gt;The problem is that CSEC functions check only if another CSEC function is running using SW flag cmdInProgress. It does not check CCIF bit:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1685513193546.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225563i36AD006E2F50F795/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1685513193546.png" alt="lukaszadrapa_0-1685513193546.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;CCIF flag is checked after triggering of the command. So, this function will not recognize if another flash operation is running. That's what I was talking about.&lt;/P&gt;
&lt;P&gt;I would try to call CSEC_WaitCommandCompletion() function before calling the function to be sure all flash operations are finished. You can also try to disable interrupts for test purposes.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 06:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1660443#M3122</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-05-31T06:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: CSEc: The program is stuck while CSEC_DRV_GenerateRND function</title>
      <link>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1660471#M3123</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I have tried this, checking the CCIF bit before executing the command, but I still have problems writing to the command header, and turning off the interrupt doesn't help.Are there any other lines of inquiry.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_0-1685514743810.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225572i158634DD6813398E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_0-1685514743810.png" alt="ZEROooo_0-1685514743810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 06:34:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/CSEc-The-program-is-stuck-while-CSEC-DRV-GenerateRND-function/m-p/1660471#M3123</guid>
      <dc:creator>ZEROOO</dc:creator>
      <dc:date>2023-05-31T06:34:28Z</dc:date>
    </item>
  </channel>
</rss>

