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.

PC接收不到CC2540串口数据可能出现的问题

Other Parts Discussed in Thread: CC2540

我想用串口打印,但是出现了一个难题,就是串口能接收到PC发出的数,也就是void sbpSerialAppCallback(uint8 port, uint8 event)能用,并且让数据显示在LCD上没错。可是我用到void SerialPrintString(uint8 str[])和void SerialPrintValue(char *title, uint16 value, uint8 format)想把数据显示在PC的串口助手上就不能显示。我觉得可能是配置没有配置好。因为我用例程SimpleBLECentral_SerialControl的例程就可以。宏定义加了HAL_UART=TRUE和HAL_UART_TRANS=TRUE也不行。

希望得到大家的意见,谢谢!