5 Replies Latest reply on Mar 11, 2013 12:33 AM by rama.sai.krishna.vakkantula

    Compiling problems with AN75779 example

    vincent.boullay

      Hi,

         

      I'm starting to discover the FX3 programation and I have encountered some problems.

         

      I want to program a frame grabber that will get the input of my omnivision camera and send it via usb 3.0.

         

      I use the AN75779 to guide me through this, even if I know this is an outdated document (SDK 1.1). 

         

      I use the 1.2 firmware called cyfxuvcinmem. 

         

       

         

      When loading this project, I had quite a number of errors. 

         

      - uint8_t and such not recognized

         

      -NULL not recognized

         

      - Bad input for some #include

         

      I think that I fixed those.

         

       

         

      Yet I still have some problems

         

      - A lot of constants are not known 

         

      in cyu3uart.c:

         

      CyU3PMutexCreate (&glUartLock, CYU3P_NO_INHERIT);

         

      in cyfxuvcinmem.c:

         

       

         

      status = CyU3PDmaChannelGetBuffer (&glChHandleUVCStream,                &dmaBuffer, CYU3P_WAIT_FOREVER);

         

       

         

      CYU3P_NO_TIME_SLICE,         /* No time slice for the application thread */

         

      CYU3P_AUTO_START             /* Start the Thread immediately */

         

       

         

       

         

      in cyfxtx.c:

         

      CyU3PDmaBufMgr_t glBufferManager = {{0}, 0, 0, 0, 0, 0};

         

      status = CyU3PByteAlloc (&glMemBytePool, (void **)&ret_p, size, CYU3P_NO_WAIT);

         

       

         

      Have I forgotten an include or something? Thanks for the help

         

      Vincent

        • 1. Re: Compiling problems with AN75779 example
          rama.sai.krishna.vakkantula

          Hi Vincent,

             

          Could you please attach the "Problems" and "Console" tab of Eclipse project.

             

          Thanks,

             

          Sai Krishna.

          • 2. Re: Compiling problems with AN75779 example
            vincent.boullay

             The program doesn't seem to fin the makefile, so the console log won't show much I think

               

             

               

             

               

            ------------------------------------------------------------------------------------------------------------------------------

               

            **** Build of configuration Default for project firmware ****

               

             

               

            make all 

               

             

               

            Cannot run program "make": Launching failed

               

            Error: Program "make" is not found in PATH

               

             

               

            PATH=[C:/Program Files/Cypress/EZ-USB FX3 SDK/1.2/jre/bin/client;C:/Program Files/Cypress/EZ-USB FX3 SDK/1.2/jre/bin;C:/Program Files/Cypress/EZ-USB FX3 SDK/1.2/jre/lib/i386;C:\Python27\Lib\site-packages\PyQt4;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\ImageMagick-6.7.1-Q16;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\system32\windowspowershell\v1.0\;c:\program files\microsoft sql server\90\tools\binn\;c:\program files\doxygen\bin;c:\program files\graphviz2.26.3\bin;C:\Program Files\MATLAB\R2006b\bin;C:\Program Files\MATLAB\R2006b\bin\win32;C:\Program Files\Windows Live\Shared;C:\OpenCV2.3\bin;C:\Program Files\QuickTime\QTSystem\;%LUXRENDER_ROOT%;C:\Program Files\Visual Leak Detector\bin\Win32;C:\Program Files\Visual Leak Detector\bin\Win64;C:\Program Files\CMake 2.8\bin;C:\Program Files\Common Files\Pleora;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Subversion\bin;D:\Aptina Imaging\;C:\Program Files\Cypress\EZ-USB FX3 SDK\1.2\bin\;jre7\bin\;C:\Program Files\Cypress\EZ-USB FX3 SDK\1.2;]

               

             

               

            **** Build Finished ****

               
                ------------------------------------------------------------------------------------------------------------------------------   
               
                    
               
                    
               
                You'll find attached screenshots of the errors I've got.    
               
                Thanks for your help,   
               
                    
               
                Vincent   
               
                    
            • 3. Re: Compiling problems with AN75779 example
              vincent.boullay

               Not sure if pictures have been attached, second try

              • 5. Re: Compiling problems with AN75779 example
                rama.sai.krishna.vakkantula

                Hi Vincent,

                   

                 

                   

                Did you follow the steps mentioned in the following thread:

                   

                http://www.cypress.com/?app=forum&id=167&rID=69878

                   

                 

                   

                I can build the project attached to AN75779, using SDK 1.2.1 by following the above steps.

                   

                Please let me know if that does not help.

                   

                 

                   

                Thanks,

                   

                Sai Krishna.