none
USB device not recognized RRS feed

  • Question

  • Hi all,

    I hope on your help, because I investigated a lot of information but I have not understand why that error occurs yet.

    My platform is base on SMDK2410, I'm using windows ce 5.0. I use usb function driver from sumsung that is situated in public/common/oak/csp directory. The all work fine, but sometimes when I connect my device to PC "USB device not recognized" is occurs. I noticed interesting thing - I have this error when I attach usb cable after booting my device. If this error occured I have that every time. Reattach cable doesn't help. Only after reset of device I can connect.

    That error happens occasionaly and I don't understand the cause of that. But seems that this error more often happens under Windows 7 than Windows XP.

    I thought that I use bad usb cable and change that, but that doesn't help. I tested my device under different PC mashines, under 32 and 64-bit Windows, but the error remain.

    Why is it happen? What can be the cause of this error? Maybe something wrong with usb function driver but what? Thanks,

    Best Regards

    Dave



    Tuesday, May 31, 2011 12:54 PM

All replies

  • I think the issue could be in your USB functional driver. why don't you enable the debug messages in the driver? Capture the debug messages in working and non working conditions and compare it. Specifically initialization sequence and cable attach/detach sequence. it can give you some pointers.


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    Tuesday, May 31, 2011 1:47 PM
  • Interesting, I have seen debug messages in a USBF driver cause this kind of problem - many years ago on a ralitively slow processor.  Which leads me to ask: are debug messages are already enabled?
    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com
    Tuesday, May 31, 2011 1:58 PM
    Moderator
  • The first thanks for replies!!!

    I have tried without debug messages and with that. But, this error sometimes occurs without debug messages and, Bruce, I think the problem is not debug messages. But of course when I enabled a lot of debug messages I can problem with usb and that doesn't work! Because of that, Vinoth, I can not enable a lot of debug messages, and I can see not full view of what happens in driver when this error occurs.

    I said that this error occurs very occasionally and randomly, but seems that with some debug messages (not a lot of!) this error occuars more occasionally!!!

    What is the cause of that error? I don't understand(

    Tuesday, May 31, 2011 2:18 PM
  • I have investiagted usb traffic on PC via USB Monitor. And when I attach usb cable to device and "USB device not recognized" occurs I can see the next urb messages:

     

    000000: PnP Event: Device Connected (UP), 31.05.2011 16:44:47.666

    The USB device has just been connected to the system.

    000001: PnP Event: Surprise Removal (UP), 31.05.2011 16:44:47.666 +0.0

    The USB device has just been disconnected from the system.

     

    Here "USB device not recognized" pops up!

    And then I detattach the cable and the next message come:

     

    000002: PnP Event: Device Disconnected (UP), 31.05.2011 16:44:47.822 +0.156

    The USB device has just been removed from the system, all drivers unloaded.

     

    Please, give me any considerations about this problem! As I said I get this error under Windows 7. Under XP I am not able to get that error.

    When I enable some debug messages this error doesn't occurs!!! Why is that happens? Thanks a lot!!!

    Wednesday, June 1, 2011 10:35 AM
  • It looks as I can debug this driver under Windows 7! And I have the debug logs when my device connects to host without problem and when "not recognized" occurs. I compared these logs and I have the following results:

    1. Without problem:

     

    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 4
     EP_INT_REG_OFFSET = 0
     PWR_REG_OFFSET = 8
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 4
     EP_INT_REG_OFFSET = 0
     PWR_REG_OFFSET = 8
    USB_INT_REG = 0x04 EP_INT_REG = 0x00 PWR_REG_OFFSET = 8 EP_INT_EN_REG_OFFSET = 1f
    HandleUSBBusIrq
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
    [HandleUSBBusIrq] RESET...pContext->attachedState = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: Attached
    DeviceNotify (0x1,0x1)
    DeviceNotify (0x1,0x1) UFN_ATTACH
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: Root port reset
    DeviceNotify (0x1,0x2)
    DeviceNotify (0x1,0x2) UFN_RESET
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 4
     EP_INT_REG_OFFSET = 0
     PWR_REG_OFFSET = 8
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 4
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    USB_INT_REG = 0x04 EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFFSET = 1f
    HandleUSBBusIrq
    [HandleUSBBusIrq] RESET...pContext->attachedState = 1
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: Root port reset
    DeviceNotify (0x1,0x2)
    DeviceNotify (0x1,0x2) UFN_RESET
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x01. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: Attached to full speed bus.
    DeviceNotify (0x3,0x1)
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 80 06 0100 0000 0040
    UfnPdd_IssueTransfer
    DeviceNotify (0x5,0x4a554)
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 4
     EP_INT_REG_OFFSET = 0
     PWR_REG_OFFSET = 8
    USB_INT_REG = 0x04 EP_INT_REG = 0x00 PWR_REG_OFFSET = 8 EP_INT_EN_REG_OFFSET = 1f
    HandleUSBBusIrq
    [HandleUSBBusIrq] RESET...pContext->attachedState = 1
    [IgnoreNotification]
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
    UsbFnMdd!UfnMdd_Notify: Root port reset
    UfnPdd_AbortTransfer
    DeviceNotify (0x1,0x2)
    DeviceNotify (0x1,0x2) UFN_RESET
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x01. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: Attached to full speed bus.
    DeviceNotify (0x3,0x1)
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 80 06 0100 0000 0040
    UfnPdd_IssueTransfer
    DeviceNotify (0x5,0x4a554)
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 4
     EP_INT_REG_OFFSET = 0
     PWR_REG_OFFSET = 8
    USB_INT_REG = 0x04 EP_INT_REG = 0x00 PWR_REG_OFFSET = 8 EP_INT_EN_REG_OFFSET = 1f
    HandleUSBBusIrq
    [HandleUSBBusIrq] RESET...pContext->attachedState = 1
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: Root port reset
    UfnPdd_AbortTransfer
    DeviceNotify (0x1,0x2)
    DeviceNotify (0x1,0x2) UFN_RESET
    GetKeyThread: WAKEUP_KEY_TIMEOUT out
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x01. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: Attached to full speed bus.
    DeviceNotify (0x3,0x1)
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 00 05 0002 0000 0000
    UfnPdd_SetAddress
    DeviceNotify (0x5,0x4a554)
    UfnPdd_SendControlStatusHandshake
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
    SC2410UsbFn!UfnPdd_SendControlStatusHandshake: Sending 0 packet
    SC2410UsbFn!UfnPdd_SendControlStatusHandshake: Status - 0x01, Writing 0x48
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x01. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 80 06 0100 0000 0012
    UfnPdd_IssueTransfer
    DeviceNotify (0x5,0x4a554)
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 1
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 1
    UfnPdd_SendControlStatusHandshake
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x01. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 80 06 0200 0000 00ff
    UfnPdd_IssueTransfer
    DeviceNotify (0x5,0x4a554)
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 1
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 1
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 1
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 1
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x11. Data phase = 1
    UfnPdd_SendControlStatusHandshake
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 80 80 8080 8080 8080
    UsbFnMdd!UfnMdd_Notify: Unhandled setup packet. Passing it to client
    DeviceNotify (0x4,0x4a554)
    UfnPdd_StallEndpoint
    SC2410UsbFn!UfnPdd_StallEndpoint: Writing 0x68 to EP0_CSR_REG
    UfnPdd_SendControlStatusHandshake
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x21. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 80 06 0600 0000 000a
    DeviceNotify (0x5,0x4a554)
    UfnPdd_StallEndpoint
    SC2410UsbFn!UfnPdd_StallEndpoint: Writing 0x68 to EP0_CSR_REG
    UfnPdd_SendControlStatusHandshake
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x21. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 80 06 0100 0000 0012
    UfnPdd_IssueTransfer
    DeviceNotify (0x5,0x4a554)
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 1
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 1
    UfnPdd_SendControlStatusHandshake
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x01. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 80 06 0200 0000 0009
    UfnPdd_IssueTransfer
    DeviceNotify (0x5,0x4a554)
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 1
    UfnPdd_SendControlStatusHandshake
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x01. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 80 06 0200 0000 0020
    UfnPdd_IssueTransfer
    DeviceNotify (0x5,0x4a554)
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 1
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 1
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 1
    UfnPdd_SendControlStatusHandshake
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x01. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 80 00 0000 0000 0002
    UfnPdd_IssueTransfer
    UfnPdd_SendControlStatusHandshake
    DeviceNotify (0x5,0x4a554)
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1f
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x01. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 00 09 0001 0000 0000
    DeviceNotify (0x2,0x1)
    UfnPdd_InitEndpoint
    UfnPdd_ClearEndpointStall
    UsbFnMdd!UfnMdd_OpenPipe: Opened endpoint 0x81
    UfnPdd_InitEndpoint
    UfnPdd_ClearEndpointStall
    UsbFnMdd!UfnMdd_OpenPipe: Opened endpoint 0x2
    UfnPdd_IssueTransfer
    CUsbFuncTransfer::IssueTransfer(Handle=0x48358,flags =0x0 size=0x40)
    CUsbFuncTransfer::IssueTransfer(Handle=0x48394,flags =0x0 size=0x40)
    CUsbFuncTransfer::IssueTransfer(Handle=0x483d0,flags =0x0 size=0x40)
    CUsbFuncTransfer::IssueTransfer(Handle=0x4840c,flags =0x0 size=0x40)
    DeviceNotify (0x5,0x4a554)
    UfnPdd_SendControlStatusHandshake
    SC2410UsbFn!UfnPdd_SendControlStatusHandshake: Sending 0 packet
    SC2410UsbFn!UfnPdd_SendControlStatusHandshake: Status - 0x01, Writing 0x48
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1d
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1d
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1d
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x01. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 21 22 0001 0000 0000
    UsbFnMdd!UfnMdd_Notify: Unhandled setup packet. Passing it to client
    DeviceNotify (0x4,0x4a554)
    SET_CONTROL_LINE_STATE 1
    UfnPdd_SendControlStatusHandshake
    SC2410UsbFn!UfnPdd_SendControlStatusHandshake: Sending 0 packet
    SC2410UsbFn!UfnPdd_SendControlStatusHandshake: Status - 0x01, Writing 0x48
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1d
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1d
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x01. Data phase = 0
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: UFN_MSG_SETUP_PACKET
    UsbFnMdd!UfnMdd_Notify: Received setup packet: 21 22 0001 0000 0000
    UsbFnMdd!UfnMdd_Notify: Unhandled setup packet. Passing it to client
    DeviceNotify (0x4,0x4a554)
    SET_CONTROL_LINE_STATE 1
    UfnPdd_SendControlStatusHandshake
    SC2410UsbFn!UfnPdd_SendControlStatusHandshake: Sending 0 packet
    SC2410UsbFn!UfnPdd_SendControlStatusHandshake: Status - 0x01, Writing 0x48
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1d
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1d
     USB_INT_REG_OFFSET = 0
     EP_INT_REG_OFFSET = 1
     PWR_REG_OFFSET = 0
    SC2410UsbFn!HandleUSBEvent: EP_INT_REG = 0x01 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFF
    SET = 1d
    SC2410UsbFn!HandleEndpoint0Event: EP0_CSR_REG = 0x00. Data phase = 0
    CUsbFuncPipe::ThreadRun
    CUsbFuncPipe::ThreadRun
     About to InitApplication
    
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     About to InitInstance
    
    AUTORAS:: Dialer notifies: [1] [Dialer Start]
     The device id is 1 


     

    2. When "USB device not recognized" occurs:

     

    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 4
     EP_INT_REG_OFFSET = 0
     PWR_REG_OFFSET = 8
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 4
     EP_INT_REG_OFFSET = 0
     PWR_REG_OFFSET = 0
    USB_INT_REG = 0x04 EP_INT_REG = 0x00 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFFSET = 1f
    HandleUSBBusIrq
    [HandleUSBBusIrq] RESET...pContext->attachedState = 1
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: Root port reset
    DeviceNotify (0x1,0x2)
    DeviceNotify (0x1,0x2) UFN_RESET
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
    [IST] Interrupt reeceived!
    [IST] USB_INT_EN_REG_OFFSET = 4
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 4
     EP_INT_REG_OFFSET = 0
     PWR_REG_OFFSET = 8
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
    HandleUSBEvent
    [HandleUSBEvent] USB_INT_EN_REG_OFFSET = 0
     EP_INT_EN_REG_OFFSET = 1f
     USB_INT_REG_OFFSET = 4
     EP_INT_REG_OFFSET = 0
     PWR_REG_OFFSET = 0
    USB_INT_REG = 0x04 EP_INT_REG = 0x00 PWR_REG_OFFSET = 0 EP_INT_EN_REG_OFFSET = 1f
    HandleUSBBusIrq
    [HandleUSBBusIrq] RESET...pContext->attachedState = 1
    [IgnoreNotification]
    UsbFnMdd!UfnMdd_Notify: Root port reset
    DeviceNotify (0x1,0x2)
    DeviceNotify (0x1,0x2) UFN_RESET
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
     CPdd2410Uart::ThreadRun timeout INT=82,MASK=703
    


    These logs have only one difference, that I have set off the text in black ink. Looks like controller can not set register EP_INT_REG to 1 when interrupt occurs and there is not setup packet transfer. PWR_REG register become changed when I connect the usb cable but EP_INT_REG register doesn't set never. 

    "USB device not recognized" happens 1 time on 60-90 reboots of device. Why is it? Don't anybody meet with this problem and know how to fix it?

     

    Thanks!

    Dave

     

     

    Friday, June 10, 2011 10:20 AM