Hello,
The RAM content is preserved on non destructive resets in case the MBIST is not executed.
For storing your flag is better to use core registers, which keep their value on reset.
petervlna_0-1664872488798.png
petervlna_1-1664872506367.png
See Table 7-1. Reset settings for e200z4 resources of reference manual.
Best regards,
Peter