这个是最新3.4的 CC2540R2 SDK ,我在Board_init 执行完PIN_init()方法后调用上面图片这个方法,为什么数据发完了串口助手有显示,但是会卡死在UART_write方法中不出来?
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.
这个是最新3.4的 CC2540R2 SDK ,我在Board_init 执行完PIN_init()方法后调用上面图片这个方法,为什么数据发完了串口助手有显示,但是会卡死在UART_write方法中不出来?
在uart 配置使用的时候判断一下函数返回值,看一下是否成功。
您可以尝试使用uartecho试试
C:\ti\simplelink_cc2640r2_sdk\examples\rtos\CC2640R2_LAUNCHXL\drivers\uartecho
您现在使用的时回调模式还是阻塞模式?