Hi, @jiajun_cheng
From the code side, you are right, it will clear this area.
You need to modify, and not perform any write operations to this region during startup.
Below is my suggestions:
1.remove this initialization for the retention RAM section.
or
2. You can keep those loops but skip the retention RAM range.
or
3. Ensure the initialization table does not include the retention RAM region at all.
Please let me know whether have any other concerns on this case.
Best regards,
Christine.