CubeMX bug: USB devices wrongly enable host power switch on Discovery boards
Posted on June 30, 2016 at 23:08 As the USB host power switch, most of Discovery boards mount STMPS2141STR, whose Enable pin is active low. For USB device-only applications, CubeMX generates bad initialization code, which wrongly enables this po...