The PCIe programming sequence in TRM suggests CLKSTCTRL of PCIe should beset to SW_WKUP. There are no issues when CLKSTCTRL is set to HW_AUTO in RCmode. However in EP mode, the host system is not able to access theMEMSPACE and setting the CLKSTCTRL to SW_WKUP fixes it.