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.

CC2640 的UART_write()函数阻塞。。。

我们的业务逻辑是EC20组件通过UART串口发送数据和接收数据,第一次业务逻辑里面有个获取网络状态,通过UART_write()函数,是可以顺利通过的,但是当第二次调用获取网络状态时,UART_write()函数就会发生阻塞,将time_out超时时间修改成300000(300ms)也出不来。具体卡在的代码处为:

if (!Semaphore_pend(Semaphore_handle(&(object->writeSem)), object->writeTimeout))