cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 USB connect recognition

David.Cheng
Associate II

how to know it is a usb charger or PC connect to the stm32 USB device mass storage?​

2 REPLIES 2
Pavel A.
Evangelist III

If it enumerates the device, it is a PC.

Else, to further detect the kind of charger, google for "USB charger detection". ST has a chip for this.

-- pa

>>If it enumerates the device, it is a PC.

means that i need to check the enumerates flag in stm32 usb driver?