Question
STM32 as bus-powered USB device: how to negotiate more power?
Posted on January 08, 2016 at 14:29
According to
http://www.beyondlogic.org/usbnutshell/usb2.shtml#PowerVbus
, a vbus powered USB device (slave) can only pull more than 100 mA after it negotiated with the host (e.g. PC): ''High power bus powered functions will draw all its power from the bus and cannot draw more than one unit load until it has been configured, after which it can then drain 5 unit loads (500mA Max) provided it asked for this in its descriptor.'' How does the STM32Cube USB device library do this? I can not find any parameter in the Configuration descriptor. Above page states this: ''A USB device specifies its power consumption expressed in 2mA units in the configuration descriptor''. Thehttp://www.st.com/st-web-ui/static/active/jp/resource/technical/document/user_manual/DM00108129.pdf
does not state anything about this.