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.

关于CC2540的串口发送 用HalUARTWrite 为什么上位机没有接收到数据?



我在option   里面加了 HAL_UART=TRUE   ,然后定义了一个 周期事件 时间为一秒 事件里,我执行串口数据发送

if(events & SBP_USART_EVT)  //串口发送数据事件  

{    uint8 *txBuffer = "I am uartCallBack";    

 HalUARTWrite(HAL_UART_PORT_0,txBuffer,17);   

 osal_start_timerEx( simpleBLEPeripheral_TaskID, SBP_USART_EVT, SBP_USART_EVT_PERIOD );//10毫秒   

 return (events ^ SBP_USART_EVT);     }

但是上位机就是没有接收到数据。我开发板上 用的是MINI-USB       USB转串口  用其他的程序可以实现。但是不知道这个为什么不能。

本人是 新人,求大哥大姐们指导。谢谢。