The standby RAM content will remain during reset and the value you observed should be the content before MCU reset
=======================================================================================
The RAM is integrated by the SRAM memory and the TCM. Part of the SRAM memory is available in standby
mode. This means that the content of this memory are retained after setting the MCU in standby mode. The
S32K3 product family leverages the TCM feature of ARM Cortex M7 architecture, whose main purpose is to
provide a deterministic access time to the cores to some important data avoiding any delay in the access. This
feature can be exploited in Real Time Operating Systems.
As noted, the data stored in the Standby SRAM memory sourced by Standby domain is retained when
the MCU is in standby mode and available after the wakeup. But the data in SRAM sourced by Run
domain is not available and it needs to be initialized after the wakeup to avoid ECC errors. Is important
to remark that after wakeup, the Standby SRAM doesn't need to be initialized to avoid ECC error, but
the rest of the SRAM does need it, so a proper distinction should be performed in the Startup code. An
example to make this distinction is depicted in the following code.