Hey Mughees,
We are trying to achieve something similar on the imx8m nano. Our goal is to implement usb audio class 2 device on the cortex m7. Our only reference was those from the imx RT series examples and its usb stack.
Currently, it seems that the host computer is not able to enumerate the usb device, and the device only gets bus resets. My main concerns are:
1. What are the various clocks which need to be enalbed and at what freq (such as USB_CORE, USB_BUS and USB PHY)
2. Is there any power domain setting i need to ensure that they are correct.
3. Is the imx RT usb stack (i.e the ehci controller driver) compatible with the imx8 nano.
It will be great if you direct me to any possible examples such as a simple hid device or something which can help us in this situation.