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同时使用HAL的USB和UART问题



使用HAL的USB文件夹中的文件以支持USB功能,同时希望加入UART功能,但是发现此时只能使用UART_DMA(UART_DMA=1,UART_ISR=0)方式,若UART_ISR=1,UART_DMA=0时编译会报错。在使用DMA进行串口发送数据时,容易出现数据紊乱。

具体什么原因?