Hello Nandan,
Make sure your USBFS INT interrupt is enabled in sf_el_ux. Also, make sure the USB is actually connected, as this API will wait until USB communication is established. It's always best to have a dedicated thread that handles communications, so in cases such as this one, main application processing is not held up.
Regards