Hi @ALXY_WANG1
The RTD and HSE versions are quite outdated, I would consider to upgrade the software. Latest RTD version is currently 7.0.0 and HSE firmware version is currently 0.2.55.0.
Is it possible to attach your debugger to the MCU? If so, could you read FES and DES registers in MC_RGM module? These registers contain the status of functional and destructive reset sources, so it should help to find the source of resets.
What kind of debugger do you use? In case of Trace32, I would try to use simple script like this to attach to a running target and stop the execution in order to see the current state or where it hangs:
sys.attach
break
To check if it is related to HSE, please provide content of HSE GPR register at 0x4039_C028 and also FSR and GSR registers from MU_0.
Regards,
Lukas