I configure usb as mass storage device. I don't know how I can detect PC connection to my usb port.
There's power?
I also think such, thanks
You can call USBD_Connect() over and over until and check what it returns to see if you connected:
www.keil.com/.../group__usbd__core_functions.html
I poll with USBD_Configured()
Yes, I was referring to the mdk5 middle ware network pack function. If you are using RLARM, that works.
www.keil.com/.../rlarm_usbd_configured.htm