Keeping data through reset

Hi everyone,

I am using nrf5340 whith ncs 2.2.0.

I would like to keep the data in the RAM during a reset and I noticed different behaviors depending on the source of the reset. Indeed, the data are kept during a soft reset (via debuger or by calling sys_reboot) but not during a pin reset.

I would like to know why the behavior is different? are the data really kept during a soft reset and not corruptible? what about during a hard fault reset? and how can I keep the ram section away from the bootloader?

If I store my data in flash memory, do I need to take precautions with the network core? I have worked with other dual core mcu and there was necessary to respect specific timing.

Thanks in advance.