5 Replies Latest reply on Apr 5, 2012 12:12 AM by usman.sheri

    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

        • 1. Re: This device cannot start. (Code 10) on Win 7
          anand.srinivasan.asokan

          1. What is the driver being used?

             

          2. c0000001 is just operation unsuccessful as per http://msdn.microsoft.com/en-us/library/cc704588%28v=prot.10%29.aspx

             

          Regards,

             

          Anand

          • 2. Re: This device cannot start. (Code 10) on Win 7
            steven.yu

            Hi, Anand,

               

            Thanks for your answer.

               

            The driver is similar to \Cypress\USB\Drivers\ezmon\ezusbsys.c

               

            c0000001 is operation unsuccessful, but this information is still not enough for me to figure out  the problem.

               

            Thanks

               

            Steven

            • 3. Re: This device cannot start. (Code 10) on Win 7
              anand.srinivasan.asokan

              ezusb.sys was not tested with Vista/7 and from what I'm aware of it will need modification before you can get it to even load in Win 7..

                 

              When device manager says code 10 it means it doesn't have enough information to point the exact reason behind the error http://support.microsoft.com/kb/943104

                 

              Migrating to CyUSB.sys would be a good idea. Is it possible to migrate to CyUSB.sys or is the effort of migration significant?

                 

              Regards,

                 

              Anand

              • 4. Re: This device cannot start. (Code 10) on Win 7
                steven.yu

                Hi, Anand,

                   

                I did some test.  My driver is Xvpusb.sys. 

                   

                 

                   

                If I rename Xvpusb.sys to cyusb.sys and overwrite \system32\drivers\cyusb.sys. It works in Win7. Cypress USB Console can find my device as "Cypress USB Generic Driver (3.4.7.000)".

                   

                 

                   

                If I rename cyusb.sys to Xvpusb.sys and overwrite \system32\drivers\Xvpusb.sys.  It doesn't work in win7. Even in XP, it occasionally recognizes my device. Most of time shows "This device cannot start. (Code 10) ".

                   

                 

                   

                I don't know if you can show me what is the difference between ezusbsys.c and the souce cyusb.sys in those modules:

                   

                Ezusb_CallUSBD, Ezusb_ConfigureDevice, Ezusb_SelectInterfaces.

                   

                 

                   

                Thanks!

                   

                Steven

                • 5. Re: This device cannot start. (Code 10) on Win 7
                  usman.sheri

                  hi,
                  i am using USB3FPGA and successfully installed  driver(cypress usb
                  generic driver 3.4.7000 ). i am using CYSUSB CONTROL CENTER & USB CONSOLE
                  for my communication with the USB3FPGA board and it works.
                  After i used
                  option " program FX2---->small EEPROM " of the USB control center and loaded
                  an example  "cystream.iic " file in it. After loading it , the device is not anymore detected
                  by the control center.i have also reinstall the driver but then driver installation
                  wizard shows the error msg now as :
                  "cypress USB Generic Driver
                  (3.4.7000)
                  This device cannot start.(Code 10) "

                  i have also checked the VID & PID which are correct.
                  1)Is anything happened to eeprom therefore its contents changed etc?
                  2) how can i access eeprom ,as device is not detected any more?
                  3)which file and changes i have to adopt to make the device detectable?solution?

                  Thanks

                     

                  Usman Shehryar