2013-10-20 02:28 PM
I have a simple task, to cause a USB disconnection and reconnection when I boot my STM32F2.
I tried using DCD_DevDisconnect after initializing the core (I am using the HS core, no DMA, not in OTG mode), but my USB analyzer (Beagle USB 12, it's hardware based and analyzes signals, not just a software filter) shows that no disconnection ever occurs.I tried setting the D+ and D- pins to output mode and then outputting logic low, but that also does not cause a disconnection event on the bus. This is very strange!The only thing I can do to cause a disconnection event is to physically unplug the cable, which I want to avoid.The device I made enumerates correctly, so all my clocks are setup correctly and initializations are done properly.What am I doing wrong with regards to DCD_DevDisconnect?If it matters, my circuit does not have a pull-up resistor on any of the USB data lines. Also my host is a Playstation 3, but I don't think this matters.2013-10-22 03:51 AM
Hi Frank,
Try to force setting the Soft disconnect bit in the device control register (SDIS bit in OTG_HS_DCTL). -Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.