3 Replies Latest reply on Jul 22, 2020 11:42 PM by YatheeshK_36

    Win10 INF file

    JoNe_4646056

      WRT FX3 Linux app to port to Windows10 , I compiled my code with the lib provided.

       

      I put the W10 PC into testmode, but I don't understand how to tie in the INF file into my environment?

      (I know basic Windows env).

       

      If I use the provided testlib.exe, i get:

      Error in opening device

      -13

      handle return failed

       

      Thanks

      John

        • 1. Re: Win10 INF file
          YatheeshK_36

          Hello John,

           

          For a easier method, you can use the Zadig tool https://zadig.akeo.ie/  for the driver binding process.

           

          Once this is successful the device (in my case FX2LP) will be bound to WinUSB driver and will be listed under "Universal Serial Bus Devices" in Device manager.

          After the device is bound to the WinUSB driver as shown above, you can use the application.

           

          Note: The VID and PID of the Cypress device that is used for testing and bound to the WinUSB driver should be present in the cysub.conf file present along with the testLib.exe. Else, you can add an entry.

           

          I have added VID 04B4 and PID 1002 as FX2LP Bulk Device 1 as shown below:

           

          Once this is done you can just run the application:

           

          Please let me know if you get stuck anywhere while following the procedure.

           

          Thanks,

          Yatheesh

          • 2. Re: Win10 INF file
            JoNe_4646056

            Thanks for that. I ran Zadig,

             

            I'm using the FX3 Bootloader (4B4/00F3).

             

            Running testlib.exe with the provided conf file:

            1

            vid  = 1204 ,  pid  = 243

            busNum  = 1 ,  devAddr  = 12

            kernel mode driver is detached

            kernel mode driver attach operation failed -12

            kernel mode driver detach operation failed -12

            kernel mode driver is detached

            Claiming an interface

            interface is claimed

            Bulk out transfer

             

            bulkout failed, error code = -5

            Bulk in transfer

             

            bulkin failed, error code = -5

            0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

            • 3. Re: Win10 INF file
              YatheeshK_36

              Hello John,

               

              Please use the Bulkloop or BulkSourceSink firmware on FX3 for the test Application.

              FX3 Bootloader cannot handle the incoming packets from the host and also it cannot source data packets when the host issues an IN token.

               

              Note that the test application I had provided is just to check if the library is working properly and for a reference for using the library.

               

              Using the library I provided, you can develop your own application to interact with Cypress FX2LP and FX3 devices and its variants on windows using the cypress cyusb_linux wrapper on top of libusb and use the APIs documented in the cyusb_linux_programmers_guide in FX3 Linux SDK.

               

              Thanks,

              Yatheesh