3 Replies Latest reply on Feb 1, 2017 10:23 AM by user_476342941

    PSoC 5LP USBUART CDC Problem

    daniellenz_1686746

      Hello community,

         

      I use the PSoC 5LP and I would like to send datas from the PSoC to my PC.

         

      The example project "HID Mouse" works fine.
      This is my code:

         

      #include <project.h>
      #include <USBUART_cdc.h>

         

      static int8 Data[3] = {0x01, 0x02, 0x03};
      uint8 length = 3, x;

         

      void main()
      {
          CyGlobalIntEnable; /* Enable global interrupts. */
          USBUART_Start(0, USBUART_5V_OPERATION);
          while(USBUART_GetConfiguration()==0)
          {}
          USBUART_CDC_Init();
          
         for (;;)

         

          {
             while(USBUART_CDCIsReady()==0)
             {
             }
             USBUART_PutData((uint8*) Data, (uint8) length);
          }
      }

         

       

         

      I also have already installed the windows driver.
      On my device manager I can see the new COM-Port.

         

      The problem:
      I cannot see anythink on a terminal program.

         

      Whats wrong?