This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

platform_test_evmc例程中uart串口输入读字节个数限制问题



部分代码如下

    while (1) {

        //读取32个16进制字符
        for (i = 0; i < 32; i++) {
            platform_errno = PLATFORM_ERRNO_RESET;
            if (platform_uart_read(&buf, 30 * 100000000) == Platform_EOK) {
                platform_write("Char %d = %c\n", i, buf);
                hexstr[i] = buf;
            } else {
                platform_write("Char %d = %c (errno: 0x%x)\n", i, buf,
                        platform_errno);
            }
        }
}

用串口助手输入32个字符,但是最多只能收到17个字符,之后的就收不到了,不清楚是不是因为FIFO有限制还是什么原因,急切希望得到斑竹的回复。