SPI Data Capture Users Guide

Table of Contents

Overview of SPI Data Capture

This fundamentals demo user guide will walk through the necessary steps needed in order to capture xWRL6432 radar output data via the Serial Peripheral Interface (SPI) synchronous serial communication protocol. Traditionally radar output has been sent over UART, but this has several limitations with the most impactful being a maximum transfer speed too low to support raw data transfer. With this demo you can transfer processed data and now raw ADC data as well without the use of a DCA1000 via SPI.

Prerequisite

⚠️ Run Motion and Presence Demo
Before continuing with this fundamentals demo, users should first run the out of box also known as the Motion and Presence demo for the EVM. This will enable users to gain familiarity with the sensor’s capabilities as well as the various tools and terminology used across examples found in the Radar Toolbox.

Quick Start

This section allows you to start with minimal prerequisite software and changes

📝 NOTE
The quick start section is only applicable for capturing raw ADC data with FTDI. You will need to go to the developer section of this user guide for 1D FFT or 2D FFT transfer as well as any kind of data transfer using a logic analyzer.

Software Requirements

Tool Version Download Link
TI Radar Toolbox 2.30.x Download the Radar Toolbox

Hardware Requirements

Tool Description Related Link
xWRL6432BOOST
OR
xWRL6432AOPEVM
TI Low Power mmWave Sensor IWRL6432BOOST
IWRL6432AOPEVM
(xWRL6432BOOST only) FTDI Cable xWRL6432AOPEVM has a built in FTDI chip while the xWRL6432BOOST does not. For this user guide we will reference the cable linked here as a secondary option to a FTDI chip. Example FTDI Cable
(Optional) Logic Analyzer For those who want to do SPI transfer via Logic Analyzer rather than a FTDI chip/cable Example Logic Analyzer

Flash Prebuilt Binary

Within this fundamentals demo’s prebuilt binaries folder are .appimage files that are configured for “Raw ADC data” transfer using SPI and FTDI.

📝 NOTE
Raw data when mentioned in TI mmWave Radar documentation refers to unprocessed, unfiltered, dumped real/complex ADC data straight from the buffer. For output such as a point cloud, please refer to the motion and presence demo as mentioned in the prerequisite section

Flash the appropiate radar .appimage demo file for your device using Uniflash. For more information on how to do this, please see the using Uniflash with mmWave guide.

Once done set the switches as show below to prepare for SPI raw data transfer over FTDI.

Run SPI Data Transfer Executable

Within the Radar Toolbox’s in the C:/ti/<RADAR_TOOLBOX>/tools/SPI_Data_Capture/ directory is the spi_data_capture_tool.exe executable file. Running this file will prompt you to select a configuration file and you will need to do the following steps.

Developer’s Guide

Software Requirements

Tool Version Download Link
TI Radar Toolbox Latest Download the Radar Toolbox
TI MMWAVE-L-SDK 5.4.0.1 Download the MMWAVE-L-SDK
Code Composer Studio (CCS) Latest Download Code Composer Studio
Python 3.10+ Download Python 3.10+

Hardware Requirements

Tool Description Related Link
xWRL6432BOOST
OR
IWRL6432AOPEVM
TI Low Power mmWave Sensor IWRL6432BOOST
IWRL6432AOPEVM
(xWRL6432BOOST) FTDI Cable IWRL6432AOPEVM has a built in FTDI chip while the xWRL6432BOOST does not. For this user guide we will reference the cable linked here as a secondary option to a FTDI chip. Example FTDI Cable
(Optional) Logic Analyzer For those who want to do SPI transfer via Logic Analyzer rather than a FTDI chip/cable Example Logic Analyzer

Python Libraries

These libraries are needed if running the tool from source as opposed to the executable.

Library Version
ftd2xx 1.3.8
numpy 2.1.2
readchar 4.2.0
pyserial 3.5

Prepare for SPI based Data Capture

📝 NOTE
Requirements in Configuration file

FTDI Chip Data Capture

The IWRL6432AOPEVM has an FTDI chip built into it. The xWRL6432BOOST does not have an FTDI chip and will require separate hardware to do FTDI transfer. For this users guide, we will be referencing the C232HM FTDI cable when discussing FTDI capture with xWRL6432BOOST.

📝 NOTE
Data format in FTDI Chip Capture

Logic Analyzer Data Capture

📝 NOTE
Data format in Logic Analyzer Capture

Parsing Data Text File

Raw Data

Within the MMWAVE-L-SDK, the path <MMWAVE_SDK5_INSTALL_DIR>/tools/ADC_parser includes MATLAB based parsing and post processing scripts for interpreting raw ADC data acquired through SPI. This is done in Test_read_adc_data_xWRLx432.m and some adjustments are needed before the script is ran

1D (Radar Cube) and 2D (Detection Matrix) FFTs

There are no MATLAB parsing scripts provided for doing the processing on the .txt files for Radar Cube or Detection Matrix as done in the Motion and Presence demo. However the raw data MATLAB script can be used as a starting point and changed to support the respective formats found below.

Format Name Declaration Content
DPIF_RADARCUBE_FORMAT_6 cmplx16ImRe_t x[numChirps][numTxAnt][numRxAnt][numRangeBins] 1D Range FFT output
DPC_DPU_DPIF_DETMATRIX_FORMAT_2 uint16_t x[numRangeBins][azimuthFFTsize] Range-Azimuth Detection Matrix

Need More Help?