3 Replies Latest reply on Nov 22, 2019 12:57 AM by RashiV_61

    cx3 use overridemode

    haxu_299926

      I used the example of cycx3  UVC ov5640 of the cx3 to modify the DMA callback and realize an image transmission in u3v format through override mode. But I found that every other complete frame, there will be a problem that the next frame does not come for a long time, which can be solved by re start and stop the acquisition. I want to know why?

        • 1. Re: cx3 use overridemode
          RashiV_61

          Hello,

           

          Please confirm that are you getting the PROD_EVENTS.

          How many PROD_EVENTS do you get. You can increment a variable in the DMA callback and print the value in the for {}.

           

          Also, let me know the value of count parameter (second parameter) passed to CyU3PDmaMultiChannelSetXfer API and the DMA channel configuration used.

           

          Do you get any error prints in the debug logs? If yes please share your debug logs

           

          Regards,

          Rashi

          • 2. Re: cx3 use overridemode
            haxu_299926

            hello,

             

                      the attachment is the test code and the bushound capturing.I want to send 40 bytes and 20 bytes every frame ,but the test result is 40 bytes and 20 bytes every other frame,I don't know why,please help me check

            • 3. Re: cx3 use overridemode
              RashiV_61

              Hello,

               

              Please program the firmware attached and check the traces (Wireshark)

               

              I have disabled the GPIF state machine on getting one frame and then sending 10 bytes of data (DMA Override mode). When the transfers are complete enabling the GPIF state machine and sampling the next frame.

              You can add two buffers in this firmware as per you application

               

              Please let me know if it helps

               

               

              Regards,

              Rashi