Part Number:LAUNCHXL-CC2650
Tool/software:TI-RTOS
Hi all,
I try to make an application where a cc2650 and a MCU talk together by UART with CCS 6.1.1.
The goal is to give a bluetooth intruction to the cc2650 with a phone, then the cc2650 send this instruction to the MCU by UART, and the MCU give an answer to the cc2650 by UART.
the problem is the answer from the MCU to the cc2650. In fact, the answer is detected but not read.
code below:
void receiveUART(){ int ret; ret = UART_read(hUart, UART_rxBuf, DS_STREAM_LEN); printf("The UART read %d bytes\n", ret); //after some tests, ret = 0 _nop(); //empty instruction (to make test) } UART_Params* UART_Init(){ UART_Params_init(¶msUart); paramsUart.readMode = UART_MODE_CALLBACK; paramsUart.readCallback = readCallback; paramsUart.readEcho = UART_ECHO_OFF; paramsUart.readDataMode = UART_DATA_BINARY; paramsUart.baudRate = 115200; paramsUart.readReturnMode = UART_RETURN_FULL; hUart = UART_open(Board_UART, ¶msUart); if (!hUart){ printf("UART did not open"); } return ¶msUart; }
after some tests, I can say that I go into the receiveUART function(), that all initialization are good (I think but I'm maybe wrong) and I don't think that this is an electronical problem.
This application belongs to a company, so i can't give you all the sources.
Thanks.