1. "tx_fifo = rt_calloc(1, TX_FIFO_SIZE); " , so deleted the line "rt_memset(tx_fifo, 0, TX_FIFO_SIZE);" 2. " rx_fifo = rt_calloc(1, TX_FIFO_SIZE); " , so deleted the line "rt_memset(rx_fifo, 0, TX_FIFO_SIZE);"