<?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のトピックRe: S32K3 Standby RAM data modified before Reset_Handler</title>
    <link>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2413844#M61038</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Sorry for the late reply.&lt;BR /&gt;&lt;BR /&gt;In my test, I did not perform any sleep/wake-up operation. I only performed a reset through S32DS, and this caused the data in the standby RAM area to change. Checking the map file, the variable is indeed located in standby RAM (0x20400000). I checked the link you provided, and it seems to be unrelated to the issue in that link.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Jason</description>
    <pubDate>Wed, 16 Sep 2026 03:28:27 GMT</pubDate>
    <dc:creator>Jason07</dc:creator>
    <dc:date>2026-09-16T03:28:27Z</dc:date>
    <item>
      <title>S32K3 Standby RAM data modified before Reset_Handler</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2406767#M60576</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I debug S32K344 with PE Micro, I found that an array(__attribute__ ((section(".standby_data"))) volatile uint32_t WkupSourcestatus1[64];) located in the standby RAM section &amp;nbsp;is unexpectedly modified when entering main(). Then, as shown in the attached video, I manually modified the registers to reinitialize the standby RAM area. The data was correctly initialized to 0, and after entering main(), everything ran fine. However, after a reset, when I enter the Reset_Handler, the data in the WkupSourcestatus1 array is modified again. Why is this happening? I noticed that a large number of 0x5AA55AA5 values appear in the array. Is this related to the SBAF_BOOT_MARKER? I tested this on another board and the phenomenon is the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8.png" style="width: 891px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/394990i5FC8B0B13E29EF08/image-size/large?v=v2&amp;amp;px=999" role="button" title="8.png" alt="8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then I switched to using J-Link for debugging and found that no abnormality occurs during a reset while debugging. However, after a debug session is restarted, all data in the standby RAM area becomes 0xDEADBEEF. Is this expected behavior?&lt;/P&gt;&lt;P&gt;S32K344&lt;/P&gt;&lt;P&gt;S32DS3.6.4&lt;/P&gt;&lt;P&gt;RTD700&lt;/P&gt;&lt;P&gt;PE v.6.0.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2026 03:35:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2406767#M60576</guid>
      <dc:creator>Jason07</dc:creator>
      <dc:date>2026-08-20T03:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 Standby RAM data modified before Reset_Handler</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2407695#M60623</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Sorry for the late reply; I've had a lot of inquiries to handle lately.&lt;/P&gt;
&lt;P&gt;I suggest you refer to the discussion on &lt;A href="https://community.nxp.com/t5/S32K/S32K311-standby-ram-retention/td-p/2254888" target="_self"&gt;S32K311 standby RAM retention&lt;/A&gt; for how to use standby RAM.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2026 07:41:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2407695#M60623</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2026-08-24T07:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 Standby RAM data modified before Reset_Handler</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2408101#M60656</link>
      <description>&lt;P&gt;The standby RAM content will remain during reset and the value you observed should be the content before MCU reset&lt;/P&gt;&lt;P&gt;=======================================================================================&lt;/P&gt;&lt;P&gt;The RAM is integrated by the SRAM memory and the TCM. Part of the SRAM memory is available in standby&lt;BR /&gt;mode. This means that the content of this memory are retained after setting the MCU in standby mode. The&lt;BR /&gt;S32K3 product family leverages the TCM feature of ARM Cortex M7 architecture, whose main purpose is to&lt;BR /&gt;provide a deterministic access time to the cores to some important data avoiding any delay in the access. This&lt;BR /&gt;feature can be exploited in Real Time Operating Systems.&lt;/P&gt;&lt;P&gt;As noted, the data stored in the Standby SRAM memory sourced by Standby domain is retained when&lt;BR /&gt;the MCU is in standby mode and available after the wakeup. But the data in SRAM sourced by Run&lt;BR /&gt;domain is not available and it needs to be initialized after the wakeup to avoid ECC errors. Is important&lt;BR /&gt;to remark that after wakeup, the Standby SRAM doesn't need to be initialized to avoid ECC error, but&lt;BR /&gt;the rest of the SRAM does need it, so a proper distinction should be performed in the Startup code. An&lt;BR /&gt;example to make this distinction is depicted in the following code.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2026 08:45:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2408101#M60656</guid>
      <dc:creator>db16122</dc:creator>
      <dc:date>2026-08-25T08:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 Standby RAM data modified before Reset_Handler</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2413844#M61038</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Sorry for the late reply.&lt;BR /&gt;&lt;BR /&gt;In my test, I did not perform any sleep/wake-up operation. I only performed a reset through S32DS, and this caused the data in the standby RAM area to change. Checking the map file, the variable is indeed located in standby RAM (0x20400000). I checked the link you provided, and it seems to be unrelated to the issue in that link.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Jason</description>
      <pubDate>Wed, 16 Sep 2026 03:28:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2413844#M61038</guid>
      <dc:creator>Jason07</dc:creator>
      <dc:date>2026-09-16T03:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 Standby RAM data modified before Reset_Handler</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2414463#M61090</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Jason,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;J-Link&lt;/STRONG&gt;: &lt;STRONG&gt;0xDEADBEEF&lt;/STRONG&gt; — ECC initialization from JLinkScript&lt;/P&gt;
&lt;P&gt;This is expected behavior, performed by the `&lt;STRONG&gt;SetupTarget&lt;/STRONG&gt;()` function built into J-Link's `S32K344.jlinkscript`. Please check for log entries similar to the following:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SetupTarget() start
Initializing ECC RAM...
RAMCodeAddr: 0x20000000 RAMInitAddr: 0x20000010 RAMInitSize: 0x00007FF0
InitPattern: 0xDEADBEEF ECC RAM initialized successfully

Initializing ECC RAM...
RAMCodeAddr: 0x20000000 RAMInitAddr: 0x20400000 RAMInitSize: 0x00004000
InitPattern: 0xDEADBEEF ECC RAM initialized successfully ← Standby RAM!
SetupTarget() end - Took 25.3ms&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if &lt;STRONG&gt;PEMicro&lt;/STRONG&gt; has a similar mechanism, but the console log below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;;begin_cs device=$00400000, length=$003F4000, ram=$20400000
Loading programming algorithm ...&lt;/LI-CODE&gt;
&lt;P&gt;It appears that the flash programming algorithm is temporarily loaded into RAM at address $20400000 (the starting address of the Standby RAM) for execution.&lt;/P&gt;
&lt;P&gt;You may need to verify this further with &lt;A href="https://www.pemicro.com/support/index.cfm" target="_self"&gt;PEMicro technical support&lt;/A&gt;. Do you have a PEMicro account, or would you like me to check with them?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2026 04:12:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2414463#M61090</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2026-09-18T04:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 Standby RAM data modified before Reset_Handler</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2414469#M61092</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I don't have a PEMicro account. If possible, please help me check with PEMicro technical support. Thank you very much.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Jason</description>
      <pubDate>Fri, 18 Sep 2026 05:24:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2414469#M61092</guid>
      <dc:creator>Jason07</dc:creator>
      <dc:date>2026-09-18T05:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 Standby RAM data modified before Reset_Handler</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2414830#M61116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Jason,&lt;/P&gt;
&lt;P&gt;I received a reply from a PEMicro technical support engineer:&lt;BR /&gt;PEmicro uses RAM at address 0x20400000 to perform flash programming operations.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PEmicro uses RAM at address 0x2040000 to perform flash programming.png" style="width: 743px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/396589i1FB7CF2A6B00E79E/image-size/large?v=v2&amp;amp;px=999" role="button" title="PEmicro uses RAM at address 0x2040000 to perform flash programming.png" alt="PEmicro uses RAM at address 0x2040000 to perform flash programming.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2026 02:49:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-Standby-RAM-data-modified-before-Reset-Handler/m-p/2414830#M61116</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2026-09-21T02:49:10Z</dc:date>
    </item>
  </channel>
</rss>

