Hello @xinping,
1.
Please have a look at the Reset escalation in the RM,
Section 31.4.3.4.2 Reset escalation
You mentioned the WDOG (SWT) which is a functional reset.
33.7.7 Functional reset escalation
"If the counter reaches the value in the FRET field of the RGM_FRET register, MC_RGM asserts a destructive reset."
The reset counter can be cleared by writing 0xF to FREC between reset events.
2.
This is the purpose of the cache, the data are read from the cache and not the actual flash memory on a hit.
Seems like you are using the IP RTD drivers.
The Cache_Ip driver has this APIs that can be used for the purpose.
Cache_Ip_Invalidate()
Cache_Ip_InvalidateByAddr()
Cache_Ip_Clean()
Cache_Ip_CleanByAddr()
The description of the functions can be found in Cache_Ip.h
Regards,
Daniel