Other Parts Discussed in Thread: IWR1443
I have a GUI sample code from TI that write target tracking data to PC via UART. Currently, I'm trying to transfer target data between 2 TI EVMs or 1 TI EVM & Rapsberry Pi via SPI/I2C then display point cloud on GUI.
My model uses 2 EVMs (Master for SPI_read & Slave for SPI_Slave). After SPI_read on Master, I want to demo point cloud on GUI. I want to test this function before implementing SPI with Wifi module.
Below is my short code on Master EVM for SPI_read. I declared spiDataMsg as a data structure to store target tracking data. After SPI_read, data will be put into spiMsg and return it to UART_write.
I tried it but I didn't see any point cloud on GUI and data frame didn't start after I sent Configuration and target data from Slave.
Please give me sample code for this purpose or any instruction will be appreciated.
spiDataMsg* Test_oobRangeProfile(void) { ... spi_Read(handle, (void *)rxBuf, SPI_DATA_BLOCK_SIZE); spiMsg = (spiDataMsg *)&rxBuf[0]; return spiMsg; } static void MmwDemo_transmitProcessedOutput ( UART_Handle uartHandle, DPC_ObjectDetection_ExecuteResult *result, MmwDemo_output_message_stats *timingInfo ) { pTestMsgOut = Test_oobRangeProfile(); UART_writePolling (uartHandle, (uint8_t*)&(pTestMsgOut->msgId), sizeof(MmwDemo_output_message_header)); UART_writePolling (uartHandle, (uint8_t*)&pTestMsgOut->data[tlvIdx], sizeof(MmwDemo_output_message_tl)); }