<?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 is SSRAM accessible before s32_ssram_clear? in S32G</title>
    <link>https://community.nxp.com/t5/S32G/When-is-SSRAM-accessible-before-s32-ssram-clear/m-p/2065878#M13031</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218967"&gt;@Jeff-CF-Huang&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Checking the reference manual for the registers value for reset (MC_RGM_DES and&amp;nbsp;MC_RGM_DES) which are read in function&amp;nbsp;&amp;nbsp;static enum reset_cause get_reset_cause(void) [.../arm-trusted-firmware/plat/nxp/s32/s32cc/s32g/s32g_bl2_el3.c][page 1139, S32G2 Reference Manual, Rev. 8, February 2024] (please check the full table in the document for better reference):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_0-1742509028803.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329159iCAF00EEF4C5DCE2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_0-1742509028803.png" alt="alejandro_e_0-1742509028803.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I was not able to find any error directly related to the a SSRAM access. Please provide the following information to have better context of your setup:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Have you experienced problems when accessing the SSRAM before clearing it?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Are you using a S32G2 or S32G3?&lt;/LI&gt;
&lt;LI&gt;Which version of the BSP are you using?&lt;/LI&gt;
&lt;LI&gt;Are you using a multicore setup? this is M7 and A53 cores&lt;/LI&gt;
&lt;LI&gt;which boot type are you using? QSPI, SD, eMMC, serial&lt;/LI&gt;
&lt;LI&gt;Are you using a custom board or a RDB board?&lt;/LI&gt;
&lt;LI&gt;Are you using the GCC version indicated in your BSP user manual?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks for the information in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Mar 2025 22:24:20 GMT</pubDate>
    <dc:creator>alejandro_e</dc:creator>
    <dc:date>2025-03-20T22:24:20Z</dc:date>
    <item>
      <title>When is SSRAM accessible before s32_ssram_clear?</title>
      <link>https://community.nxp.com/t5/S32G/When-is-SSRAM-accessible-before-s32-ssram-clear/m-p/2065491#M13028</link>
      <description>&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;enum&lt;/SPAN&gt; &lt;SPAN&gt;reset_cause&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CAUSE_POR&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CAUSE_DESTRUCTIVE_RESET_DURING_RUN&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CAUSE_DESTRUCTIVE_RESET_DURING_STANDBY&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CAUSE_FUNCTIONAL_RESET_DURING_RUN&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CAUSE_FUNCTIONAL_RESET_DURING_STANDBY&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CAUSE_WAKEUP_DURING_STANDBY&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CAUSE_ERROR&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CAUSE_MAX_NUM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Which reset reason is SSRAM accessible before s32_ssram_clear function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jeff Huang&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 10:31:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/When-is-SSRAM-accessible-before-s32-ssram-clear/m-p/2065491#M13028</guid>
      <dc:creator>Jeff-CF-Huang</dc:creator>
      <dc:date>2025-03-20T10:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: When is SSRAM accessible before s32_ssram_clear?</title>
      <link>https://community.nxp.com/t5/S32G/When-is-SSRAM-accessible-before-s32-ssram-clear/m-p/2065878#M13031</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218967"&gt;@Jeff-CF-Huang&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Checking the reference manual for the registers value for reset (MC_RGM_DES and&amp;nbsp;MC_RGM_DES) which are read in function&amp;nbsp;&amp;nbsp;static enum reset_cause get_reset_cause(void) [.../arm-trusted-firmware/plat/nxp/s32/s32cc/s32g/s32g_bl2_el3.c][page 1139, S32G2 Reference Manual, Rev. 8, February 2024] (please check the full table in the document for better reference):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_0-1742509028803.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329159iCAF00EEF4C5DCE2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_0-1742509028803.png" alt="alejandro_e_0-1742509028803.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I was not able to find any error directly related to the a SSRAM access. Please provide the following information to have better context of your setup:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Have you experienced problems when accessing the SSRAM before clearing it?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Are you using a S32G2 or S32G3?&lt;/LI&gt;
&lt;LI&gt;Which version of the BSP are you using?&lt;/LI&gt;
&lt;LI&gt;Are you using a multicore setup? this is M7 and A53 cores&lt;/LI&gt;
&lt;LI&gt;which boot type are you using? QSPI, SD, eMMC, serial&lt;/LI&gt;
&lt;LI&gt;Are you using a custom board or a RDB board?&lt;/LI&gt;
&lt;LI&gt;Are you using the GCC version indicated in your BSP user manual?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks for the information in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 22:24:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/When-is-SSRAM-accessible-before-s32-ssram-clear/m-p/2065878#M13031</guid>
      <dc:creator>alejandro_e</dc:creator>
      <dc:date>2025-03-20T22:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: When is SSRAM accessible before s32_ssram_clear?</title>
      <link>https://community.nxp.com/t5/S32G/When-is-SSRAM-accessible-before-s32-ssram-clear/m-p/2065915#M13034</link>
      <description>&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;It seems there’s a misunderstanding.&lt;BR /&gt;The s32_ssram_clear function initializes and clears the SSRAM in BL2 of ATF.&lt;BR /&gt;If we want to retrieve data from SSRAM after an XXX reboot, we need to access SSRAM before this function is called.&lt;BR /&gt;However, we are unsure which type of reboot allows SSRAM to be safely read.&lt;BR /&gt;From what we know, reading SSRAM before s32_ssram_clear during a POR scenario results in a system fault.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Jeff Huang&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 00:59:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/When-is-SSRAM-accessible-before-s32-ssram-clear/m-p/2065915#M13034</guid>
      <dc:creator>Jeff-CF-Huang</dc:creator>
      <dc:date>2025-03-21T00:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: When is SSRAM accessible before s32_ssram_clear?</title>
      <link>https://community.nxp.com/t5/S32G/When-is-SSRAM-accessible-before-s32-ssram-clear/m-p/2066506#M13041</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218967"&gt;@Jeff-CF-Huang&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for the clarification, I did understand the question differently.&lt;/P&gt;
&lt;P&gt;To know when exactly the SSRAM content is retained please check the section&amp;nbsp;&lt;STRONG&gt;28.7 Chip status on reset exit&amp;nbsp;&lt;/STRONG&gt;of the Reference manual [page 1150, S32G2 Reference Manual, Rev. 8, February 2024]:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_0-1742578171941.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329300i26EC4A80373AFC7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_0-1742578171941.png" alt="alejandro_e_0-1742578171941.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_1-1742578194839.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329301i0D92DA5CB1B342E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_1-1742578194839.png" alt="alejandro_e_1-1742578194839.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_2-1742578226134.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329302i6EE2E8726D3C3133/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_2-1742578226134.png" alt="alejandro_e_2-1742578226134.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the reference manual for full information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the table I mentioned before you can see the resets that are of type functional:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_3-1742579199666.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329304i90BF9D0FAEC30BC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_3-1742579199666.png" alt="alejandro_e_3-1742579199666.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About the status of the SSRAM you can check the &lt;STRONG&gt;35.3.5 Platform RAM Status Register (PRAMSR)&lt;/STRONG&gt;&amp;nbsp;register to know if it was successfully initialized and therefore can be accessed [page 1436, S32G2 Reference Manual, Rev. 8, February 2024]:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_4-1742580089939.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329305i0BC8AEDA00F26F00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_4-1742580089939.png" alt="alejandro_e_4-1742580089939.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can learn more about how to initialize the SSRAM in section &lt;STRONG&gt;35.1.4 Initialization&lt;/STRONG&gt;, under&amp;nbsp;&lt;STRONG&gt;Chapter 35&amp;nbsp;SRAM Controller (SRAMC)&amp;nbsp;&lt;/STRONG&gt;[page 1427, S32G2 Reference Manual, Rev. 8, February 2024]:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_5-1742581457564.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329307i738E46F928DEC1EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_5-1742581457564.png" alt="alejandro_e_5-1742581457564.png" /&gt;&lt;/span&gt;&lt;/P&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;P&gt;My understanding is that with a functional reset (this is when the information is retained) the SSRAM should not loose the initialization status and therefore you should be able to read it without problems. Please note that the SSRAM depends on the &lt;SPAN&gt;STANDBY power domain (VDD_IO_STBY), so that voltage needs to be kept in order to retain the SSRAM data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I used the S32G2 RM as reference since I do not know which component you are using.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let me know if this information solved your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 18:43:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/When-is-SSRAM-accessible-before-s32-ssram-clear/m-p/2066506#M13041</guid>
      <dc:creator>alejandro_e</dc:creator>
      <dc:date>2025-03-21T18:43:29Z</dc:date>
    </item>
  </channel>
</rss>

