USB HNP problem on STM32?
Hi,
I am trying to use Host Negotiation Protocol on STM32 boards.
Two boards are connected together stm32f4-discovery (A-device) and stm32f429i-disc1 (B-Device). VBUS sensing, HNPCAP is enabled at both side.
DHNPEN bit in GOTGCTL register is enabled after SetFeature(HNP Enable) received at B-Device and HSHNPEN is set after SetFeature(HNP Enable) ACK received at A-Device.
I see, that 7.5 ms after Suspending bus D+ goes low resulting SE0 state.
But 4 ms SE0 state D+ goes high, and no OTG interrupt fired on A-Device side.
On B-device side I see HNSSCHG interrupt, but HNGSCS flag in GOTGCTL register is 0 (HNP failed). I think the reason is, that A-Device doesn't apply Pull-up within 3 ms.
What can be the reason for this behaviour? What I missed to set up to get working HNP?
Thanks in advance.
Zoltan
