[BF70X] Deep Sleep mode with USB connection.

Dear All.

I have a question.

After waking up in Deep Sleep via USB, but the PC can't recognize BF703 by the device manager.

How can I retain the USB connection after wake up.

And, is there a way to maintain USB during Deep Sleep Mode?

And the below method does not seem to enter deep mode.

Can I get a usage or example code?

Thank you.

Below are the source codes used. ( ADSP-BF70x Blackfin+ Processor Hardware Reference )

//-----------------------------------------------------------------------

/* set deep sleep mode */
uint32_t SetDeepSleep(void)
{
ADI_PWR_RESULT result;
struct sysstate* state = getsysstate();


/* Set HIBER bit and CLEAR RESTORE bit */
*pREG_USB0_PHY_CTL |= BITM_USB_PHY_CTL_HIBER;
*pREG_USB0_PHY_CTL &= ~(BITM_USB_PHY_CTL_RESTORE);
/* Enter DeepSleep mode */

return bError ? 0 : 1;
}

void USB_SUSPEND_HANDLER()
{
/* Set HIBER bit and CLEAR RESTORE bit */
*pREG_USB0_PHY_CTL |= BITM_USB_PHY_CTL_HIBER;
*pREG_USB0_PHY_CTL &= ~(BITM_USB_PHY_CTL_RESTORE);
/* Enter DeepSleep mode */
}

void DPM0_EVT_Int_Handler() /* this is invoked when the processor comes out of Deep Sleep */
{
/* Clear the HIBER bit and Set the RESTORE bit */
*pREG_USB0_PHY_CTL &= ~(BITM_USB_PHY_CTL_HIBER);
*pREG_USB0_PHY_CTL |= BITM_USB_PHY_CTL_RESTORE;
*pREG_USB0_PHY_CTL |= BITP_USB_PHY_CTL_EN;
return;
}