关于hi3863串口通信的问题

Viewed 99

一、描述你遇到的问题

使用3863进行键盘开发,使用移位寄存器法识别按键,发送数据时发生报错。

二、你具体做的所有步骤结果截图

相关部分代码如图,初始化检测号案件后发送

三、当前开发板状态全景照片

一切正常

四、开发板串口所有日志

请在此处粘贴串口日志
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488
UART Write Error: -2147479488
Attempting to send 7 bytes of data to UART...
UART Write Error: -2147479488

1 Answers

你的数据长度是多少?另外可以查一下错误码,看具体的错误是什么