1 2 Previous Next 16 Replies Latest reply on Sep 16, 2018 5:24 AM by yyca

    The new project  UART can't work

    michael.song_3688011

      I create a new project, but the uart is no output, i have set useUart = CyTrue, and useSpi = CyFalse, but still no uart log, is there something wrong about it?

       

          io_cfg.isDQ32Bit = CyFalse;

          io_cfg.useUart   = CyTrue;

          io_cfg.useI2C    = CyTrue;

          io_cfg.useI2S    = CyFalse;

          io_cfg.useSpi    = CyFalse;    

        • 1. Re: The new project  UART can't work
          aani

          Hello Michael,

           

          -are you using UART Configuration. If yes, please set to UART Configuration only and remaining configurations are disabled.

           

           

          Regards,

          Anil Srinivas.

          • 2. Re: The new project  UART can't work
            michael.song_3688011

            Hi, Anil,

             

                I still can't reply on the website, it is always loading, like this. I didn't use the UART Configuration, can you tell me how to use it?

             

                 

             

             

             

            Michael Song| 宋琪

            Senior System Engineer | 高级系统工程师

            Mantis Vision China | 螳螂慧视科技有限公司

            M | +86 131 6610 2886   E | michael.song@mantis-vision.com.cn

             

            Sender: aani

            Send Time: 2018-09-11 12:38

            Receiver: michael song

            Subject: Re:  - The new project  UART can't work

            Cypress Developer Community

            The new project  UART can't work

            reply from aani in USB Superspeed Peripherals - View the full discussion

             

             

            Hello Michael,

             

            -are you using UART Configuration. If yes, please set to UART Configuration only and remaining configurations are disabled.

             

             

            Regards,

            Anil Srinivas.

            Reply to this message by replying to this email, or go to the message on Cypress Developer Community

            Start a new discussion in USB Superspeed Peripherals by email or at Cypress Developer Community

            Following The new project  UART can't work in these streams: Inbox

            This email was sent by Cypress Developer Community because you are a registered user.

            You may unsubscribe instantly from Cypress Developer Community, or adjust email frequency in your email preferences

            • 3. Re: The new project  UART can't work
              michael.song_3688011

              Hi, Anil,

               

                  I still can't reply on the website, it is always loading, like this. I didn't use the UART Configuration, can you tell me how to use it?

               

                   

               

               

               

              Michael Song| 宋琪

              Senior System Engineer | 高级系统工程师

              Mantis Vision China | 螳螂慧视科技有限公司

              M | +86 131 6610 2886   E | michael.song@mantis-vision.com.cn

               

              Sender: aani

              Send Time: 2018-09-11 12:38

              Receiver: michael song

              Subject: Re:  - The new project  UART can't work

              Cypress Developer Community

              The new project  UART can't work

              reply from aani in USB Superspeed Peripherals - View the full discussion

               

               

              Hello Michael,

               

              -are you using UART Configuration. If yes, please set to UART Configuration only and remaining configurations are disabled.

               

               

              Regards,

              Anil Srinivas.

              Reply to this message by replying to this email, or go to the message on Cypress Developer Community

              Start a new discussion in USB Superspeed Peripherals by email or at Cypress Developer Community

              Following The new project  UART can't work in these streams: Inbox

              This email was sent by Cypress Developer Community because you are a registered user.

              You may unsubscribe instantly from Cypress Developer Community, or adjust email frequency in your email preferences

              • 4. Re: The new project  UART can't work
                lk960825_3660966

                     串口需要配置的,你都没配置,怎么会有输出呢?

                • 5. Re: The new project  UART can't work
                  michael.song_3688011

                  Hello,

                   

                      I have configured the UART before, like this. Is ther any problem?

                   

                   

                  static void

                  CyFxUVCApplnDebugInit (

                          void)

                  {

                      CyU3PUartConfig_t uartConfig;

                      CyU3PReturnStatus_t apiRetStatus;

                   

                      /* Initialize the UART for printing debug messages */

                      apiRetStatus = CyU3PUartInit ();

                      if (apiRetStatus != CY_U3P_SUCCESS)

                      {

                          CyU3PDebugPrint (4, "UART initialization failed!\n");

                          CyFxAppErrorHandler (apiRetStatus);

                      }

                   

                      /* Set UART Configuration */

                      uartConfig.baudRate = CY_U3P_UART_BAUDRATE_115200;

                      uartConfig.stopBit  = CY_U3P_UART_ONE_STOP_BIT;

                      uartConfig.parity   = CY_U3P_UART_NO_PARITY;

                      uartConfig.txEnable = CyTrue;

                      uartConfig.rxEnable = CyFalse;

                      uartConfig.flowCtrl = CyFalse;

                      uartConfig.isDma    = CyTrue;

                   

                      /* Set the UART configuration */

                      apiRetStatus = CyU3PUartSetConfig (&uartConfig, NULL);

                      if (apiRetStatus != CY_U3P_SUCCESS)

                      {

                          CyFxAppErrorHandler (apiRetStatus);

                      }

                   

                      /* Set the UART transfer */

                      apiRetStatus = CyU3PUartTxSetBlockXfer (0xFFFFFFFF);

                      if (apiRetStatus != CY_U3P_SUCCESS)

                      {

                          CyFxAppErrorHandler (apiRetStatus);

                      }

                   

                      /* Initialize the Debug logger module. */

                      apiRetStatus = CyU3PDebugInit (CY_U3P_LPP_SOCKET_UART_CONS, 8);

                      if (apiRetStatus != CY_U3P_SUCCESS)

                      {

                          CyFxAppErrorHandler (apiRetStatus);

                      }

                   

                      /* Disable log message headers. */

                      CyU3PDebugPreamble (CyFalse);

                  }

                   

                   

                   

                   

                  Michael Song| 宋琪

                  Senior System Engineer | 高级系统工程师

                  Mantis Vision China | 螳螂慧视科技有限公司

                  M | +86 131 6610 2886   E | michael.song@mantis-vision.com.cn

                   

                  Sender: lk960825_3660966

                  Send Time: 2018-09-12 10:41

                  Receiver: michael song

                  Subject: Re:  - The new project  UART can't work

                  Cypress Developer Community

                  The new project  UART can't work

                  reply from lk960825_3660966 in USB Superspeed Peripherals - View the full discussion

                   

                   

                       串口需要配置的,你都没配置,怎么会有输出呢?

                  Reply to this message by replying to this email, or go to the message on Cypress Developer Community

                  Start a new discussion in USB Superspeed Peripherals by email or at Cypress Developer Community

                  Following The new project  UART can't work in these streams: Inbox

                  This email was sent by Cypress Developer Community because you are a registered user.

                  You may unsubscribe instantly from Cypress Developer Community, or adjust email frequency in your email preferences

                  • 6. Re: The new project  UART can't work
                    aani

                    Hi,

                    Your UART set configurations are fine.

                    Please you can modify  io_cfg.useI2C    = CyFalse.

                     

                    Regards,

                    Anil Srinivas.

                    • 7. Re: The new project  UART can't work
                      michael.song_3688011

                      Hi,

                       

                               Modify  io_cfg.useI2C    = CyFalse,  it is still no output of the UART.

                       

                              I wonder that should i configure the GPIO pin of UART manually? Or it is used the default configuration.

                       

                       

                       

                      Michael Song| 宋琪

                      Senior System Engineer | 高级系统工程师

                      Mantis Vision China | 螳螂慧视科技有限公司

                      M | +86 131 6610 2886   E | michael.song@mantis-vision.com.cn

                       

                      Sender: aani

                      Send Time: 2018-09-12 20:37

                      Receiver: michael song

                      Subject: Re:  - The new project  UART can't work

                      Cypress Developer Community

                      The new project  UART can't work

                      reply from aani in USB Superspeed Peripherals - View the full discussion

                       

                       

                      Hi,

                      Your UART set configurations are fine.

                      Please you can modify  io_cfg.useI2C    = CyFalse.

                       

                      Regards,

                      Anil Srinivas.

                      Reply to this message by replying to this email, or go to the message on Cypress Developer Community

                      Start a new discussion in USB Superspeed Peripherals by email or at Cypress Developer Community

                      Following The new project  UART can't work in these streams: Inbox

                      This email was sent by Cypress Developer Community because you are a registered user.

                      You may unsubscribe instantly from Cypress Developer Community, or adjust email frequency in your email preferences

                      • 8. Re: The new project  UART can't work
                        lk960825_3660966

                             不仅仅是串口配置,因为你串口用的DMA模式,因此还需要DMA通道配置,如果你是想用debug模式配置串口的话,建议看一下AN75779给的例程。

                        • 9. Re: The new project  UART can't work
                          michael.song_3688011

                          你好,

                           

                                      我看AN75779也是没有串口log输出的,MDA配置如下。

                           

                          /* Create a DMA Manual channel for sending the video data to the USB host. */

                              dmaMultiConfig.size           = CY_FX_UVC_STREAM_BUF_SIZE;

                              dmaMultiConfig.count          = CY_FX_UVC_STREAM_BUF_COUNT;

                              dmaMultiConfig.validSckCount  = 2;

                              dmaMultiConfig.prodSckId   = (CyU3PDmaSocketId_t)CY_U3P_PIB_SOCKET_0;

                              dmaMultiConfig.prodSckId   = (CyU3PDmaSocketId_t)CY_U3P_PIB_SOCKET_1;

                              dmaMultiConfig.consSckId   = (CyU3PDmaSocketId_t)(CY_U3P_UIB_SOCKET_CONS_0 | CY_FX_EP_VIDEO_CONS_SOCKET);

                              dmaMultiConfig.prodAvailCount = 0;

                              dmaMultiConfig.prodHeader     = 12;                 /* 12 byte UVC header to be added. */

                              dmaMultiConfig.prodFooter     = 4;                  /* 4 byte footer to compensate for the 12 byte header. */

                              dmaMultiConfig.consHeader     = 0;

                              dmaMultiConfig.dmaMode        = CY_U3P_DMA_MODE_BYTE;

                              dmaMultiConfig.notification   = CY_U3P_DMA_CB_PROD_EVENT | CY_U3P_DMA_CB_CONS_EVENT;

                              dmaMultiConfig.cb             = CyFxUvcApplnDmaCallback;

                              apiRetStatus = CyU3PDmaMultiChannelCreate (&glChHandleUVCStream, CY_U3P_DMA_TYPE_MANUAL_MANY_TO_ONE,

                                      &dmaMultiConfig);

                           

                           

                           

                          Michael Song| 宋琪

                          Senior System Engineer | 高级系统工程师

                          Mantis Vision China | 螳螂慧视科技有限公司

                          M | +86 131 6610 2886   E | michael.song@mantis-vision.com.cn

                           

                          Sender: lk960825_3660966

                          Send Time: 2018-09-13 14:30

                          Receiver: michael song

                          Subject: Re:  - The new project  UART can't work

                          Cypress Developer Community

                          The new project  UART can't work

                          reply from lk960825_3660966 in USB Superspeed Peripherals - View the full discussion

                           

                           

                               不仅仅是串口配置,因为你串口用的DMA模式,因此还需要DMA通道配置,如果你是想用debug模式配置串口的话,建议看一下AN75779给的例程。

                          Reply to this message by replying to this email, or go to the message on Cypress Developer Community

                          Start a new discussion in USB Superspeed Peripherals by email or at Cypress Developer Community

                          Following The new project  UART can't work in these streams: Inbox

                          This email was sent by Cypress Developer Community because you are a registered user.

                          You may unsubscribe instantly from Cypress Developer Community, or adjust email frequency in your email preferences

                          • 10. Re: The new project  UART can't work
                            yyca

                            I don't know what project you created. The example of how to use UART port locate at the install path of SDK(almost every example project).

                            UART port in AN75779 could work normally.

                            • 11. Re: The new project  UART can't work
                              michael.song_3688011

                              Hi, anni

                               

                                      Attachment is my local AN75779 source code, it is certain no uart log, is it same to yours?

                                   

                                      I test it base on CX3 board, is there anythig to configure?

                               

                               

                               

                              Michael Song| 宋琪

                              Senior System Engineer | 高级系统工程师

                              Mantis Vision China | 螳螂慧视科技有限公司

                              M | +86 131 6610 2886   E | michael.song@mantis-vision.com.cn

                               

                              Sender: yyca

                              Send Time: 2018-09-14 14:10

                              Receiver: michael song

                              Subject: Re:  - The new project  UART can't work

                              Cypress Developer Community

                              The new project  UART can't work

                              reply from yyca in USB Superspeed Peripherals - View the full discussion

                               

                               

                              I don't know what project you created. The example of how to use UART port locate at the install path of SDK(almost every example project).

                              UART port in AN75779 could work normally.

                              Reply to this message by replying to this email, or go to the message on Cypress Developer Community

                              Start a new discussion in USB Superspeed Peripherals by email or at Cypress Developer Community

                              Following The new project  UART can't work in these streams: Inbox

                              This email was sent by Cypress Developer Community because you are a registered user.

                              You may unsubscribe instantly from Cypress Developer Community, or adjust email frequency in your email preferences

                              • 12. Re: The new project  UART can't work
                                aani

                                Hi,

                                I have also same firmware.

                                Please refer to section 4.4 of EzUsbSuite_UG.pdf  "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\doc\firmware"

                                 

                                Regards,

                                Anil Srinivas.

                                • 13. Re: The new project  UART can't work
                                  michael.song_3688011

                                  Hi,Anil

                                   

                                       This  document is for mipi configuration.

                                  • 14. Re: The new project  UART can't work
                                    yyca

                                    AN75779是FX3的UVC工程,你拿这个工程烧录到CX3板子上本身就是错误的。

                                    1 2 Previous Next