I configure usb as mass storage device. I don't know how I can detect PC connection to my usb port.
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