STM32L4 USB Host remote wakeup
I've implemented USB Host Suspend/Resume function. It work fine. I set USB_OTG_HPRT_PSUSP, when I want resume I set USB_OTG_HPRT_PRES and reset this bit after 20 ms, I see with an oscilloscope, the D+ and D- signals, in suspend state D+ is high and D- low (idle state), when set PRES bit, D- goes high and D+ low for 20ms (k state), when I reset PRES restart SOF and the comunitation on USB restart.
I tried to implement remote wakeup.
I set remote wakeup capability (using EP0 message).
Now I see device that signal stm32L4 Usb Host controller with a k state on bus for 3 ms, I trigger this event, on microcontroller run USB_OTG_GINTSTS_WKUINT interrupt, in agreement with reference manual, I read OTG_HPRT and I see PRES bit high.
At this point on bus I must see k state, but it isn't true. The USB not restart, the bus remain in idle state.
The reference manual say that when controller detect a remote wakeup set PRES bit (resume driven), according to USB Reference, the host take control on bus and drive the resume signal (20 ms).
I see PRES high, PSUSP low, but the resume signaling not work.
Can anyone help me?
