STM32-X360-xinput icon indicating copy to clipboard operation
STM32-X360-xinput copied to clipboard

Can not shut down and restart after plugging in USB

Open chiyu521 opened this issue 4 years ago • 2 comments

WIN10 Enterprise Edition 2004 When shutting down or restarting, the USB device will be turned off. My keyboard and mouse have been turned off. STM32F103 will not turn off. I want to remove STM32 or press RESET on STM32. The computer will continue to restart or shut down. please help me

chiyu521 avatar Jul 13 '20 15:07 chiyu521

We found the solution to this problem, when configuring the USB device in MX Configurator. Be sure to set the setting "Self-Powered" to "Disabled". This fixed our problem. If you are not using the MX Configurator, under "usbd_conf.h" change the define #define USBD_SELF_POWERED 1U to 0U.

TannerHollis avatar Jan 09 '23 21:01 TannerHollis

Unfortunately it didn't work

chiyu521 avatar Jan 14 '23 05:01 chiyu521