Hi Team,
I am trying to modify the level sensing demo codes for IWR68xx. The demo code uses 2 uarts - for data and commands. I am modifying the data uart to provide "on demand" data. This means that user will send some command on the Data Uart and get the data as a response. I have modified the code slightly as follows:
unsigned char rxBuffer[1]; int ret; ret = UART_read(uartHandle, rxBuffer, 1); printf("uart read ret: %d\n", ret); if(ret>0){ printf("received byte: %c\n", rxBuffer[0]); switch(rxBuffer[0]) { case 0x01: //send distance and magnitude data printf("sending data\n"); UART_writePolling (uartHandle, crc_array, packet_size); UART_writePolling (uartHandle, (uint8_t*)&crc, sizeof(uint8_t)); ....
"ret" variable gives value equal to -2001. I am not able to find the meaning of this code. Could you please point me to the resource for the same?
Regards,
Kamlesh