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)
if (type == CY_U3P_DMA_CB_CONS_EVENT)
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.
Please change the terminal setting in Tera term (setup -> terminal), Receive : CR + LF .
Also, please open the teraterm before the firmware starts executing.