currently I am experimenting with the STM32‘ demo usb stack (COPYRIGHT 2012 STMicroelectronics) to use it as a mass storage device. This works so far. However I wanted also to use the power delivered by the usb interface to power my custom mass storage device. By default the current is restricted to 250 mA only which is unfortunately not enough. However accordingly to the USB standard there is also a high power mode capable to deliver 500 mA. Did anybody know where to set the power mode ?