Hi @ZY2
According to GSR register, bit 0 is set. It's flag called HSE_ERR_GENERAL. So, HSE was shut down due to some fatal error.
Most likely, it's because HSE can't access provided parameters - the access was terminated by bus error.
1. Make sure you provided correct pointers as a parameters to the service.
2. Make sure that all data objects used for communication with HSE are forced to non-cacheable SRAM or disable the data cache completely. This is the most common reason.
3. If XRDC is enabled, make sure that HSE has appropriate rights to access the memory.
As a first step, I would try to disable the data cache to see if it makes a difference.
Regards,
Lukas