I want to have an interface for USB 2 using FPGA in zynq z-turn 7020. So I used the following schematic for this.

I used USB3300 ULPI PHY to connect to the host system. The USB as mass storage device has been configured. I tested the design using the driver below.
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841745/Baremetal+Drivers+and+Libraries , AXI usb
but it stops at the following line:
/*
* Wait until the USB device is enumerated.
*/
while (!UsbInstance.DeviceConfig.CurrentConfiguration);
Can you help me pls.
Thanks