8 Replies Latest reply on Mar 26, 2018 11:54 PM by srnt

    This device cannot start. (Code 10) on Win 7

    steven.yu

      My driver works fine in Windows XP, but fails in Win7. Window shows "This device cannot start.(code 10)".

         

      I use CY7C68013-128AC. My computer has 2 system XP and Win7 ( 32-bit ).

         

      Driver outputs the below result.  After the driver sends SET CONFIGURATION, return from IoCallDriver

         

      USBD is  wrong (c0000001).

         

       ............   
       Entire Configuration Descriptor is at 86127e28, bytes txferred: 25   
       enter XUsb_SelectInterfaces   
       0000 78 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    
       0010 28 7E 12 86 00 00 00 00 60 00 00 00 00 00 00 00    
       0020 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00    
       0030 00 00 00 00 FF FF FF FF 00 00 00 00 00 00 00 00    
       0040 00 00 00 00 00 00 00 00 FF FF FF FF 00 00 00 00    
       0050 00 00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF    
       0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    
       0070 FF FF FF FF 00 00 00 00    
       enter CallUSBD   
       Calling USB Driver Stack   
       XUsb_IoIncrement::3   
       return from IoCallDriver USBD: 0xc0000001   
       URB status = c0004000, status = 0, irp status = c0000001   
       XUsb_IoDecrement::2   
       exit CallUSBD (c0000001)   
       0000 78 00 00 00 00 40 00 C0 A8 70 D3 84 00 00 00 00    
       0010 28 7E 12 86 00 00 00 00 10 00 00 00 00 00 00 00    
       0020 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00    
       0030 00 00 00 00 FF FF FF FF 00 00 00 00 00 00 00 00    
       0040 00 00 00 00 00 00 00 00 FF FF FF FF 00 00 00 00    
       0050 00 00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF    
       0060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    
       0070 FF FF FF FF 00 00 00 00    
       exit XUsb_SelectInterfaces (c0000001)   
       exit XUsb_ConfigureDevice (c0000001)   

         

       

         

      Firmware is very simple.

         

       {           ...............;

         

              case usb_SET_CONFIGURATION:           

         

                   Configuration =  Xbyte[aSETUPDAT+2];           

         

                   break;       

         

       

         

                  EP0CS |= bm7

         

      }

         

       

         

      I would really appreciate some hints about this issue. Thanks!

         

      Steven