user14151: I want to know when something is connected to USB port by blinking an LED. 
I suppose have to check PB10 UOTGVBOF, but how to do this ?

user7856: What I'm going to say is probably not the most efficient way to do it, but it should work: if your DUE is used as gadget and you wnat to detect the presence of a master, connect a GPIO to the +Vcc line of the usb port and either poll or program an edge triggered interrupt to detect when the line goes high.

14151: <p>I want to know when something is connected to USB port by blinking an LED. </p>

<p>I suppose have to check PB10 UOTGVBOF, but how to do this ?</p>
 7856: <p>What I'm going to say is probably not the most efficient way to do it, but it should work: if your DUE is used as gadget and you wnat to detect the presence of a master, connect a GPIO to the +Vcc line of the usb port and either poll or program an edge triggered interrupt to detect when the line goes high.</p>
