Hi @qimao-marvin,
It’s possible that the issue is due to either: The IDE memory view not being refreshed, or the effect of cache or the prefetch buffer.
Is the cache enabled?
If so, it might be affecting what you see in memory.

Prefetch buffer is enabled by default. You can disable it (from SRAM) using the following configuration:
MSCM->OCMDR[0u] |= MSCM_OCMDR_OCM1(0x3u);
MSCM->OCMDR[1u] |= MSCM_OCMDR_OCM1(0x3u);
Try reading the memory directly from the core and compare it with the flash content to verify consistency.
In our department, we don’t use the IDE, so we can’t confirm its behavior.
If the issue persists, it might be worth contacting IAR support to check whether the memory view needs to be manually refreshed.
Regards,
Daniel