6 Replies Latest reply on Nov 21, 2020 2:38 AM by RashiV_61

    CYUSB3014 and MT9V034 programming problems

    QiLi_4789831

      Hi

          There is a CYUSB3014 & MT9V034 camera programming, follow the application AN75779 instructions: according to Aptina MT9V034 data sheet changed sensor.c. Update the length of the high-speed and super-speed USB configuration descriptor and the length of the video stream input header descriptor. At the same time, through the GPIF II Designer, modify the "data bus width" field to select "16 bits", recompile the GPIF project, and use the newly generated file "cyfxgpif2config.h" Replace the original file. After all the files are modified, compile the CYUSB3014 project, use the IMG file in the DEBUG directory to write CYUSB3014. insert the host, the host USB can enumerate the camera correctly. It seems to be correct to capture the USB data between the camera and the host.  See attachment USB.TXT.

           But when I open the camera with the host application, I cannot capture the image of the camera. To capture the USB data between the camera and the host, the host is always in the "SET INTERFACE" command loop. For the captured data, see Annex 9V034.TXT.

      The search data "SET INTERFACE" is a command of USB2.0, but the returned data does not know what it means. In this case, where should I look in the firmware to find the problem?

           Any help you can provide would be greatly appreciated!

       

         Qimin Liu

        • 1. Re: CYUSB3014 and MT9V034 programming problems
          RashiV_61

          Hello,

           

          Please confirm if the device is connected s a USB 3.0 device or USB 2.0 device

          Please enable the DEBUG_PRINT_FRAME_COUNT macro in the firmware and share the UART debug prints when the FX3 is programmed with the firmware.

          Also, let me know the video resolution, FPS, GPIF bus width, video format which you are trying to stream

          If possible, please share the firmware files for us to check. You can remove the sensor configuration part.

           

          Regards,

          Rashi

          • 2. Re: CYUSB3014 and MT9V034 programming problems
            QiLi_4789831

            Hi  Rashi

            This is Sensor parameters:

             

            According to the application AN75779, the configuration changes I made are as follows:

             

            GPIF:

             

             

            FOR HS USB:

             

             

             

            FOR SS USB :

             

             

            PROB FOR USB2 :

             

             

            PROB FOR USB3 :

             

             

             

              The HOST Port is USB3.0.

             

            Because it is a simple CYUSB3014 control board, there is no serial port, so the information can only be obtained through the USB port.

             

            See the attachment for the modified configuration file. Please help to check if there is a problem with the configuration.

             

            Best Regards!

            Qimin

            • 3. Re: CYUSB3014 and MT9V034 programming problems
              RashiV_61

              Hello Qimin,

               

              The changes in the firmware seems fine.

              Please let me know the host PC configuration with which the streaming is tested.

              From the traces shared earlier I found that the PC is Windows Vista (Bus Hound 6.01 capture on Windows Vista (x64). Complements of www.perisoft.net). Please confirm.

              If yes, UVC spec 1.1 is not supported by by Windows Vista USB Video Class Driver Overview - Windows drivers | Microsoft Docs so,please let me know if the macro FX3_UVC_1_0_SUPPORT is enabled in uvc.h file.

               

              Regards,

              Rashi

              • 4. Re: CYUSB3014 and MT9V034 programming problems
                QiLi_4789831

                Hi  Rashi,

                  I'm sorry that this project was suspended because of other things.

                  The information about the system I use is as follows:

                 

                 

                 

                  Before Bus Hound recognized the system as Vista (x64), it may be because its version is too old.

                 

                Best regards!

                  Qimin

                  

                • 5. Re: CYUSB3014 and MT9V034 programming problems
                  QiLi_4789831

                  Why can't I see the attached picture?

                   

                  system message:

                  win10 1909 workstation

                  • 6. Re: CYUSB3014 and MT9V034 programming problems
                    RashiV_61

                    Hello Qimin,

                     

                    Please let me know the steps you follow for streaming the video.

                     

                    As the UART port is not available on your board, I have modified the AN7577 firmware to add a CDC interface so that the Debug prints can be seen on the serial port.

                    Please make a similar change to your firmware or use the attached firmware and share the UART debug prints so that we can confirm of the Producer events are received from the below shown debug print. Please enable DEBUG_PRINT_FRAME_COUNT macro

                     

                    CyU3PDebugPrint (4, "UVC: Completed %d frames and %d buffers\r\n", glFrameCount,

                                    (glDmaDone != 0) ? (glDmaDone - 1) : 0);

                     

                    Please let me know if you are able to get the debug prints with this firmware

                     

                    Regards,

                    Rashi