1 Reply Latest reply on Mar 12, 2020 10:12 PM by YatheeshK_36

    Serial port debug strange character

    WGT_4383351

       

      void

      CyFxBulkLpDmaCallback (

              CyU3PDmaChannel   *chHandle, /* Handle to the DMA channel. */

              CyU3PDmaCbType_t  type,      /* Callback type.             */

              CyU3PDmaCBInput_t *input)    /* Callback status.           */

      {

       

          if (type == CY_U3P_DMA_CB_PROD_EVENT)

          {

          CyU3PDebugPrint(4,"PROD_EVENT\n");

          }

       

          if (type == CY_U3P_DMA_CB_CONS_EVENT)

          {

          CyU3PDebugPrint(4,"CONS_EVENT\n");

          }

      }

       

      1.jpg

       

      Another problem is, if use \n then the text on the next line will begin after the last text of the previous line, if use \r\n then it will alwasy scroll down.